public class GotoFileModel extends FilteringGotoByModel<FileType> implements DumbAware, java.util.Comparator<java.lang.Object>
LOG, myProject| Constructor and Description |
|---|
GotoFileModel(Project project) |
| 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.
|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Just to remove smartness from
ChooseByNameBase.calcSelectedIndex(java.lang.Object[], java.lang.String) |
static PsiElementListCellRenderer.ItemMatchers |
convertToFileItemMatchers(PsiElementListCellRenderer.ItemMatchers defaultMatchers,
PsiFileSystemItem value,
GotoFileModel model) |
protected FileType |
filterValueFor(NavigationItem item) |
java.lang.String |
getCheckBoxName()
return null to hide checkbox panel
|
java.lang.String |
getFullName(java.lang.Object element) |
java.lang.String |
getFullName(VirtualFile file) |
java.lang.String |
getHelpId() |
ChooseByNameItemProvider |
getItemProvider(PsiElement context) |
PsiElementListCellRenderer |
getListCellRenderer() |
java.lang.String |
getNotFoundMessage() |
java.lang.String |
getNotInMessage() |
java.lang.String |
getPromptText() |
java.lang.String [] |
getSeparators() |
VirtualFile |
getTopLevelRoot(VirtualFile file) |
boolean |
isSlashlessMatchingEnabled() |
boolean |
loadInitialCheckBoxState() |
java.lang.String |
removeModelSpecificMarkup(java.lang.String pattern) |
boolean |
sameNamesForProjectAndLibraries() |
void |
saveInitialCheckBoxState(boolean state) |
boolean |
willOpenEditor() |
getFilterItems, setFilterItemsgetContributorList, getContributors, getElementName, getElementsByName, getElementsByName, getNames, getProject, isDumbAware, processContributorNames, processNames, useMiddleMatchingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLonggetItemProvider, processNamesgetCheckBoxMnemonicpublic GotoFileModel(Project project)
public boolean isSlashlessMatchingEnabled()
public ChooseByNameItemProvider getItemProvider(PsiElement context)
getItemProvider in interface ChooseByNameModelExprotected boolean acceptItem(NavigationItem item)
ContributorsBasedGotoByModelacceptItem in class FilteringGotoByModel<FileType>item - an item to filterprotected FileType filterValueFor(NavigationItem item)
filterValueFor in class FilteringGotoByModel<FileType>public java.lang.String getPromptText()
getPromptText in interface ChooseByNameModelpublic java.lang.String getCheckBoxName()
ChooseByNameModelgetCheckBoxName in interface ChooseByNameModelpublic java.lang.String getNotInMessage()
getNotInMessage in interface ChooseByNameModelpublic java.lang.String getNotFoundMessage()
getNotFoundMessage in interface ChooseByNameModelpublic boolean loadInitialCheckBoxState()
loadInitialCheckBoxState in interface ChooseByNameModelpublic void saveInitialCheckBoxState(boolean state)
saveInitialCheckBoxState in interface ChooseByNameModelpublic PsiElementListCellRenderer getListCellRenderer()
getListCellRenderer in interface ChooseByNameModelgetListCellRenderer in class ContributorsBasedGotoByModelpublic boolean sameNamesForProjectAndLibraries()
sameNamesForProjectAndLibraries in class ContributorsBasedGotoByModelpublic java.lang.String getFullName(java.lang.Object element)
getFullName in interface ChooseByNameModelpublic java.lang.String getFullName(VirtualFile file)
public VirtualFile getTopLevelRoot(VirtualFile file)
public java.lang.String [] getSeparators()
getSeparators in interface ChooseByNameModelpublic java.lang.String getHelpId()
getHelpId in interface ChooseByNameModelgetHelpId in class ContributorsBasedGotoByModelpublic boolean willOpenEditor()
willOpenEditor in interface ChooseByNameModelpublic java.lang.String removeModelSpecificMarkup(java.lang.String pattern)
removeModelSpecificMarkup in class ContributorsBasedGotoByModelpublic int compare(java.lang.Object o1,
java.lang.Object o2)
ChooseByNameBase.calcSelectedIndex(java.lang.Object[], java.lang.String)compare in interface java.util.Comparator<java.lang.Object>public static PsiElementListCellRenderer.ItemMatchers convertToFileItemMatchers(PsiElementListCellRenderer.ItemMatchers defaultMatchers, PsiFileSystemItem value, GotoFileModel model)