public class GotoActionModel extends java.lang.Object implements ChooseByNameModel, java.util.Comparator<java.lang.Object>, DumbAware
Modifier and Type | Class and Description |
---|---|
static class |
GotoActionModel.ActionWrapper |
static class |
GotoActionModel.GotoActionListCellRenderer |
static class |
GotoActionModel.GroupMapping |
static class |
GotoActionModel.MatchedValue |
static class |
GotoActionModel.MatchMode |
Modifier and Type | Field and Description |
---|---|
protected ActionManager |
myActionManager |
Constructor and Description |
---|
GotoActionModel(Project project,
java.awt.Component component,
Editor editor) |
GotoActionModel(Project project,
java.awt.Component component,
Editor editor,
ModalityState modalityState) |
Modifier and Type | Method and Description |
---|---|
protected GotoActionModel.MatchMode |
actionMatches(java.lang.String pattern,
Matcher matcher,
AnAction anAction) |
int |
compare(java.lang.Object o1,
java.lang.Object o2) |
static java.awt.Color |
defaultActionForeground(boolean isSelected,
boolean hasFocus,
Presentation presentation) |
static java.awt.Color |
defaultActionForeground(boolean isSelected,
Presentation presentation)
Deprecated.
Please use
defaultActionForeground(boolean, boolean, Presentation) instead.
This method may be removed in future versions |
protected java.lang.String |
getActionId(AnAction anAction) |
java.lang.String |
getCheckBoxName()
return null to hide checkbox panel
|
protected java.awt.Component |
getContextComponent() |
java.lang.String |
getElementName(java.lang.Object mv) |
java.lang.Object [] |
getElementsByName(java.lang.String id,
boolean checkBoxState,
java.lang.String pattern) |
java.lang.String |
getFullName(java.lang.Object element) |
java.lang.String |
getGroupName(OptionDescription description) |
java.lang.String |
getHelpId() |
javax.swing.ListCellRenderer |
getListCellRenderer() |
java.lang.String [] |
getNames(boolean checkBoxState)
Returns the list of names to show in the chooser.
|
java.lang.String |
getNotFoundMessage() |
java.lang.String |
getNotInMessage() |
protected Project |
getProject() |
java.lang.String |
getPromptText() |
java.lang.String [] |
getSeparators() |
boolean |
loadInitialCheckBoxState() |
void |
rebuildActions() |
void |
saveInitialCheckBoxState(boolean state) |
java.util.SortedSet<java.lang.Object> |
sortItems(java.util.Set<java.lang.Object> elements) |
static AnActionEvent |
updateActionBeforeShow(AnAction anAction,
DataContext dataContext) |
boolean |
useMiddleMatching() |
boolean |
willOpenEditor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCheckBoxMnemonic
protected final ActionManager myActionManager
public GotoActionModel(Project project, java.awt.Component component, Editor editor)
public GotoActionModel(Project project, java.awt.Component component, Editor editor, ModalityState modalityState)
public java.lang.String getPromptText()
getPromptText
in interface ChooseByNameModel
public java.lang.String getCheckBoxName()
ChooseByNameModel
getCheckBoxName
in interface ChooseByNameModel
public java.lang.String getNotInMessage()
getNotInMessage
in interface ChooseByNameModel
public java.lang.String getNotFoundMessage()
getNotFoundMessage
in interface ChooseByNameModel
public boolean loadInitialCheckBoxState()
loadInitialCheckBoxState
in interface ChooseByNameModel
public void saveInitialCheckBoxState(boolean state)
saveInitialCheckBoxState
in interface ChooseByNameModel
public void rebuildActions()
public javax.swing.ListCellRenderer getListCellRenderer()
getListCellRenderer
in interface ChooseByNameModel
protected java.lang.String getActionId(AnAction anAction)
public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator<java.lang.Object>
public static AnActionEvent updateActionBeforeShow(AnAction anAction, DataContext dataContext)
@Deprecated public static java.awt.Color defaultActionForeground(boolean isSelected, Presentation presentation)
defaultActionForeground(boolean, boolean, Presentation)
instead.
This method may be removed in future versionspublic static java.awt.Color defaultActionForeground(boolean isSelected, boolean hasFocus, Presentation presentation)
public java.lang.String [] getNames(boolean checkBoxState)
ChooseByNameModel
getNames
in interface ChooseByNameModel
checkBoxState
- the current state of the chooser checkbox (for example, [x] Include non-project classes for Ctrl-N)public java.lang.Object [] getElementsByName(java.lang.String id, boolean checkBoxState, java.lang.String pattern)
getElementsByName
in interface ChooseByNameModel
public java.lang.String getGroupName(OptionDescription description)
public java.lang.String getFullName(java.lang.Object element)
getFullName
in interface ChooseByNameModel
public java.lang.String getHelpId()
getHelpId
in interface ChooseByNameModel
public java.lang.String [] getSeparators()
getSeparators
in interface ChooseByNameModel
public java.lang.String getElementName(java.lang.Object mv)
getElementName
in interface ChooseByNameModel
protected GotoActionModel.MatchMode actionMatches(java.lang.String pattern, Matcher matcher, AnAction anAction)
protected Project getProject()
protected java.awt.Component getContextComponent()
public java.util.SortedSet<java.lang.Object> sortItems(java.util.Set<java.lang.Object> elements)
public boolean willOpenEditor()
willOpenEditor
in interface ChooseByNameModel
public boolean useMiddleMatching()
useMiddleMatching
in interface ChooseByNameModel