kawigi.cmd
Enum ActID
java.lang.Object
java.lang.Enum<ActID>
kawigi.cmd.ActID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<ActID>
public enum ActID
- extends java.lang.Enum<ActID>
ActID enum - The master list of KawigiEdit commands.
My idea is to use these to identify Action objects semi-uniquely (non-global
commands may not quite be unique) in such a way that they will behave
consistently on different UI or using different keystrokes, or even using
automation or macros/scripts of some kind (just call a bunch of ActIDs on
the global dispatcher on open, for instance, or create a list of automated
tasks behind some kind of macro-driven button). We'll see how much of my
vision actually turns into anything practical. The perfect editor plugin is
useful and useable when left in the jar, with no modifications or extra
work, and also flexible, powerful and maleable to the power user, without
being too hard to port over old changes (I'm making an exception when it
comes to porting old changes from KawigiEdit 1.* to KawigiEdit 2.0, since
they really aren't the same program internally, and this enum is a big
reason why).
If you want to add your own commands to KawigiEdit, this is the preferred
place to start - add a command entry here, create your own Action class
(which inherits from kawigi.cmd.DefaultAction) to control what it does.
Then add it to one of the .ui files (or make your own and make sure it shows
up somewhere), or if it's an editor command with just a keystroke, add it
to the KawigiEditKeyMap (and make sure it's set to not be global).
|
Method Summary |
boolean |
isGlobal()
Use [actid].isGlobal() to figure out if it is owned by the global
dispatcher or if it could be associated with (multiple?) sub-dispatchers. |
static ActID |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ActID[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
actCut
public static final ActID actCut
actCopy
public static final ActID actCopy
actPaste
public static final ActID actPaste
actDelete
public static final ActID actDelete
actSelectAll
public static final ActID actSelectAll
actCancelSelection
public static final ActID actCancelSelection
actUndo
public static final ActID actUndo
actRedo
public static final ActID actRedo
actScrollUp
public static final ActID actScrollUp
actScrollDown
public static final ActID actScrollDown
actDeleteNextWord
public static final ActID actDeleteNextWord
actDeletePreviousWord
public static final ActID actDeletePreviousWord
actIndent
public static final ActID actIndent
actOutdent
public static final ActID actOutdent
actNewLine
public static final ActID actNewLine
actFindDlg
public static final ActID actFindDlg
actReplaceDlg
public static final ActID actReplaceDlg
actFindNext
public static final ActID actFindNext
actReplace
public static final ActID actReplace
actReplaceAll
public static final ActID actReplaceAll
actCloseFindReplaceDlg
public static final ActID actCloseFindReplaceDlg
actFindField
public static final ActID actFindField
actReplaceField
public static final ActID actReplaceField
actCaseSensitive
public static final ActID actCaseSensitive
actWholeWord
public static final ActID actWholeWord
actLiteral
public static final ActID actLiteral
actWildCards
public static final ActID actWildCards
actRegex
public static final ActID actRegex
actGenerateCode
public static final ActID actGenerateCode
actSaveLocal
public static final ActID actSaveLocal
actLoad
public static final ActID actLoad
actRunTests
public static final ActID actRunTests
actKillProcess
public static final ActID actKillProcess
actOpenLocal
public static final ActID actOpenLocal
actLaunchConfig
public static final ActID actLaunchConfig
actCommitConfig
public static final ActID actCommitConfig
actCancelConfig
public static final ActID actCancelConfig
actLocalDirField
public static final ActID actLocalDirField
actTimeout
public static final ActID actTimeout
actTestFont
public static final ActID actTestFont
actTestBackground
public static final ActID actTestBackground
actTestForeground
public static final ActID actTestForeground
actTimerDelay
public static final ActID actTimerDelay
actTimerLEDColor
public static final ActID actTimerLEDColor
actTimerBGColor
public static final ActID actTimerBGColor
actTimerUnlitColor
public static final ActID actTimerUnlitColor
actShowTimer
public static final ActID actShowTimer
actForegroundColor
public static final ActID actForegroundColor
actBackgroundColor
public static final ActID actBackgroundColor
actSelectionColor
public static final ActID actSelectionColor
actSelectedTextColor
public static final ActID actSelectedTextColor
actSyntaxKeywordColor
public static final ActID actSyntaxKeywordColor
actSyntaxTypeColor
public static final ActID actSyntaxTypeColor
actSyntaxOperatorColor
public static final ActID actSyntaxOperatorColor
actSyntaxStringColor
public static final ActID actSyntaxStringColor
actSyntaxCommentColor
public static final ActID actSyntaxCommentColor
actSyntaxDirectiveColor
public static final ActID actSyntaxDirectiveColor
actSyntaxClassColor
public static final ActID actSyntaxClassColor
actSyntaxTagColor
public static final ActID actSyntaxTagColor
actMatchingColor
public static final ActID actMatchingColor
actDoMatching
public static final ActID actDoMatching
actTabWidth
public static final ActID actTabWidth
actCodeFont
public static final ActID actCodeFont
actJavaFileName
public static final ActID actJavaFileName
actJavaCompileCommand
public static final ActID actJavaCompileCommand
actJavaRunCommand
public static final ActID actJavaRunCommand
actCPPFileName
public static final ActID actCPPFileName
actCPPCompileCommand
public static final ActID actCPPCompileCommand
actCPPRunCommand
public static final ActID actCPPRunCommand
actCSharpFileName
public static final ActID actCSharpFileName
actCSharpCompileCommand
public static final ActID actCSharpCompileCommand
actCSharpRunCommand
public static final ActID actCSharpRunCommand
actVBFileName
public static final ActID actVBFileName
actVBCompileCommand
public static final ActID actVBCompileCommand
actVBRunCommand
public static final ActID actVBRunCommand
actOpenTemplate
public static final ActID actOpenTemplate
actSaveTemplate
public static final ActID actSaveTemplate
actSaveTemplateAs
public static final ActID actSaveTemplateAs
actOpenDefaultTemplate
public static final ActID actOpenDefaultTemplate
actJavaOverride
public static final ActID actJavaOverride
actCPPOverride
public static final ActID actCPPOverride
actCSharpOverride
public static final ActID actCSharpOverride
actVBOverride
public static final ActID actVBOverride
actAddSnippetDlg
public static final ActID actAddSnippetDlg
actAddSnippet
public static final ActID actAddSnippet
actCancelSnippet
public static final ActID actCancelSnippet
actSnippetCategory
public static final ActID actSnippetCategory
actSnippetName
public static final ActID actSnippetName
actInsertSnippet
public static final ActID actInsertSnippet
actCtxMenu
public static final ActID actCtxMenu
actInsertTestCode
public static final ActID actInsertTestCode
actEnd
public static final ActID actEnd
accelerator
public javax.swing.KeyStroke accelerator
mnemonic
public java.lang.Integer mnemonic
label
public java.lang.String label
tooltip
public java.lang.String tooltip
iconFile
public java.lang.String iconFile
preference
public java.lang.String preference
defaultValue
public java.lang.Object defaultValue
actionClass
public java.lang.Class<? extends DefaultAction> actionClass
values
public static final ActID[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(ActID c : ActID.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static ActID valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
isGlobal
public boolean isGlobal()
- Use [actid].isGlobal() to figure out if it is owned by the global
dispatcher or if it could be associated with (multiple?) sub-dispatchers.