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, setFilterItems
getContributorList, getContributors, getElementName, getElementsByName, getElementsByName, getNames, getProject, isDumbAware, processContributorNames, processNames, useMiddleMatching
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
getItemProvider, processNames
getCheckBoxMnemonic
public GotoFileModel(Project project)
public boolean isSlashlessMatchingEnabled()
public ChooseByNameItemProvider getItemProvider(PsiElement context)
getItemProvider
in interface ChooseByNameModelEx
protected boolean acceptItem(NavigationItem item)
ContributorsBasedGotoByModel
acceptItem
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 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 PsiElementListCellRenderer getListCellRenderer()
getListCellRenderer
in interface ChooseByNameModel
getListCellRenderer
in class ContributorsBasedGotoByModel
public boolean sameNamesForProjectAndLibraries()
sameNamesForProjectAndLibraries
in class ContributorsBasedGotoByModel
public java.lang.String getFullName(java.lang.Object element)
getFullName
in interface ChooseByNameModel
public java.lang.String getFullName(VirtualFile file)
public VirtualFile getTopLevelRoot(VirtualFile file)
public java.lang.String [] getSeparators()
getSeparators
in interface ChooseByNameModel
public java.lang.String getHelpId()
getHelpId
in interface ChooseByNameModel
getHelpId
in class ContributorsBasedGotoByModel
public boolean willOpenEditor()
willOpenEditor
in interface ChooseByNameModel
public java.lang.String removeModelSpecificMarkup(java.lang.String pattern)
removeModelSpecificMarkup
in class ContributorsBasedGotoByModel
public 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)