generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Noninclusive marking mode toggle command (Alt+A).
- Loading branch information
1 parent
521a064
commit 2c2d306
Showing
10 changed files
with
315 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
453 changes: 219 additions & 234 deletions
453
src/main/java/net/ddns/rkdawenterprises/brief4ijidea/Marking_component.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
src/main/java/net/ddns/rkdawenterprises/brief4ijidea/actions/Noninclusive_mark_action.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (c) 2019-2022 RKDAW Enterprises and Ralph Williamson | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
@file:Suppress("ClassName", | ||
"FunctionName", | ||
"RedundantSemicolon", | ||
"PrivatePropertyName", | ||
"LocalVariableName", | ||
"PropertyName", | ||
"PackageName", | ||
"UnnecessaryVariable", | ||
"ArrayInDataClass", | ||
"ComponentNotRegistered") | ||
|
||
package net.ddns.rkdawenterprises.brief4ijidea.actions | ||
|
||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
import com.intellij.openapi.actionSystem.CommonDataKeys | ||
import net.ddns.rkdawenterprises.brief4ijidea.toggle_marking_mode | ||
|
||
@Suppress("unused") | ||
class Noninclusive_mark_action | ||
(text: String?, | ||
description: String?) : Plugin_action(text, | ||
description) | ||
{ | ||
/** | ||
* Implement this method to provide your action handler. | ||
* | ||
* @param e Carries information on the invocation place | ||
*/ | ||
override fun actionPerformed(e: AnActionEvent) | ||
{ | ||
val editor = e.getData(CommonDataKeys.EDITOR) | ||
?: return | ||
|
||
toggle_marking_mode(editor, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters