public abstract class ContributorsBasedGotoByModel extends java.lang.Object implements ChooseByNameModelEx, PossiblyDumbAware
Modifier and Type | Field and Description |
---|---|
static Logger |
LOG |
protected Project |
myProject |
Modifier | Constructor and Description |
---|---|
protected |
ContributorsBasedGotoByModel(Project project,
ChooseByNameContributor [] contributors) |
protected |
ContributorsBasedGotoByModel(Project project,
java.util.List<ChooseByNameContributor> contributors) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptItem(NavigationItem item)
This method allows extending classes to introduce additional filtering criteria to model
beyond pattern and project/non-project files.
|
protected java.util.List<ChooseByNameContributor> |
getContributorList() |
protected ChooseByNameContributor[] |
getContributors() |
java.lang.String |
getElementName(java.lang.Object element) |
java.lang.Object [] |
getElementsByName(java.lang.String name,
boolean checkBoxState,
java.lang.String pattern)
Get elements by name from contributors.
|
java.lang.Object [] |
getElementsByName(java.lang.String name,
FindSymbolParameters parameters,
ProgressIndicator canceled) |
java.lang.String |
getHelpId() |
javax.swing.ListCellRenderer |
getListCellRenderer() |
java.lang.String [] |
getNames(boolean checkBoxState)
Returns the list of names to show in the chooser.
|
Project |
getProject() |
boolean |
isDumbAware() |
void |
processContributorNames(ChooseByNameContributor contributor,
FindSymbolParameters parameters,
Processor<? super java.lang.String> nameProcessor) |
void |
processNames(Processor<? super java.lang.String> nameProcessor,
FindSymbolParameters parameters) |
java.lang.String |
removeModelSpecificMarkup(java.lang.String pattern) |
boolean |
sameNamesForProjectAndLibraries() |
boolean |
useMiddleMatching() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItemProvider, getItemProvider, processNames
getCheckBoxMnemonic, getCheckBoxName, getFullName, getNotFoundMessage, getNotInMessage, getPromptText, getSeparators, loadInitialCheckBoxState, saveInitialCheckBoxState, willOpenEditor
protected ContributorsBasedGotoByModel(Project project, ChooseByNameContributor [] contributors)
protected ContributorsBasedGotoByModel(Project project, java.util.List<ChooseByNameContributor> contributors)
public boolean isDumbAware()
isDumbAware
in interface PossiblyDumbAware
public javax.swing.ListCellRenderer getListCellRenderer()
getListCellRenderer
in interface ChooseByNameModel
public boolean sameNamesForProjectAndLibraries()
public void processNames(Processor<? super java.lang.String> nameProcessor, FindSymbolParameters parameters)
processNames
in interface ChooseByNameModelEx
public void processContributorNames(ChooseByNameContributor contributor, FindSymbolParameters parameters, Processor<? super java.lang.String> nameProcessor)
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 name, FindSymbolParameters parameters, ProgressIndicator canceled)
public java.lang.Object [] getElementsByName(java.lang.String name, boolean checkBoxState, java.lang.String pattern)
getElementsByName
in interface ChooseByNameModel
name
- a namecheckBoxState
- if true, non-project files are considered as wellpattern
- a pattern to usepublic java.lang.String getElementName(java.lang.Object element)
getElementName
in interface ChooseByNameModel
public java.lang.String getHelpId()
getHelpId
in interface ChooseByNameModel
protected java.util.List<ChooseByNameContributor> getContributorList()
protected ChooseByNameContributor[] getContributors()
protected boolean acceptItem(NavigationItem item)
item
- an item to filterpublic boolean useMiddleMatching()
useMiddleMatching
in interface ChooseByNameModel
public java.lang.String removeModelSpecificMarkup(java.lang.String pattern)
public Project getProject()