public abstract class ProjectView
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DataKey<java.util.List<UnloadedModuleDescription>> |
UNLOADED_MODULES_CONTEXT_KEY
Use this key to get unloaded modules which content roots are selected in Project View
|
Constructor and Description |
---|
ProjectView() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addProjectPane(AbstractProjectViewPane pane) |
abstract void |
changeView() |
abstract void |
changeView(java.lang.String viewId) |
abstract void |
changeView(java.lang.String viewId,
java.lang.String subId) |
abstract ActionCallback |
changeViewCB(java.lang.String viewId,
java.lang.String subId)
Changes currently selected view and subview (if any).
|
abstract AbstractProjectViewPane |
getCurrentProjectViewPane() |
abstract java.lang.String |
getCurrentViewId()
e.g.
|
abstract java.lang.String |
getDefaultViewId() |
static ProjectView |
getInstance(Project project) |
abstract java.util.Collection<java.lang.String> |
getPaneIds() |
abstract PsiElement |
getParentOfCurrentSelection() |
abstract AbstractProjectViewPane |
getProjectViewPaneById(java.lang.String id) |
abstract java.util.Collection<SelectInTarget> |
getSelectInTargets() |
abstract boolean |
isAbbreviatePackageNames(java.lang.String paneId) |
abstract boolean |
isAutoscrollFromSource(java.lang.String paneId) |
abstract boolean |
isAutoscrollToSource(java.lang.String paneId) |
boolean |
isCompactDirectories(java.lang.String paneId) |
abstract boolean |
isFlattenModules(java.lang.String paneId) |
abstract boolean |
isFlattenPackages(java.lang.String paneId) |
boolean |
isFoldersAlwaysOnTop(java.lang.String paneId) |
abstract boolean |
isHideEmptyMiddlePackages(java.lang.String paneId) |
abstract boolean |
isManualOrder(java.lang.String paneId) |
boolean |
isShowExcludedFiles(java.lang.String paneId) |
abstract boolean |
isShowLibraryContents(java.lang.String paneId) |
abstract boolean |
isShowMembers(java.lang.String paneId) |
abstract boolean |
isShowModules(java.lang.String paneId) |
abstract boolean |
isShowURL(java.lang.String paneId) |
boolean |
isShowVisibilityIcons(java.lang.String paneId) |
abstract boolean |
isSortByType(java.lang.String paneId) |
abstract void |
refresh() |
abstract void |
removeProjectPane(AbstractProjectViewPane pane) |
abstract void |
select(java.lang.Object element,
VirtualFile file,
boolean requestFocus) |
abstract ActionCallback |
selectCB(java.lang.Object element,
VirtualFile file,
boolean requestFocus) |
abstract void |
selectPsiElement(PsiElement element,
boolean requestFocus) |
abstract void |
setAbbreviatePackageNames(java.lang.String paneId,
boolean abbreviatePackageNames) |
void |
setCompactDirectories(java.lang.String paneId,
boolean compactDirectories) |
abstract void |
setFlattenModules(java.lang.String paneId,
boolean flattenModules) |
abstract void |
setHideEmptyPackages(java.lang.String paneId,
boolean hideEmptyPackages) |
abstract void |
setManualOrder(java.lang.String paneId,
boolean enabled) |
abstract void |
setShowLibraryContents(java.lang.String paneId,
boolean showLibraryContents) |
abstract void |
setShowModules(java.lang.String paneId,
boolean showModules) |
abstract void |
setSortByType(java.lang.String paneId,
boolean sortByType) |
public static final DataKey<java.util.List<UnloadedModuleDescription>> UNLOADED_MODULES_CONTEXT_KEY
public static ProjectView getInstance(Project project)
public abstract void select(java.lang.Object element, VirtualFile file, boolean requestFocus)
public abstract ActionCallback selectCB(java.lang.Object element, VirtualFile file, boolean requestFocus)
public abstract ActionCallback changeViewCB(java.lang.String viewId, java.lang.String subId)
When default subview is requested:
- if the view had never been selected then the first subview is selected
- otherwise subview won't be changed
It's an error when a view has no subviews and subId
is not null.
public abstract PsiElement getParentOfCurrentSelection()
public abstract void changeView(java.lang.String viewId)
public abstract void changeView(java.lang.String viewId, java.lang.String subId)
changeViewCB(String, String)
public abstract void changeView()
public abstract void refresh()
public abstract boolean isAutoscrollToSource(java.lang.String paneId)
public abstract boolean isFlattenPackages(java.lang.String paneId)
public boolean isFoldersAlwaysOnTop(java.lang.String paneId)
public abstract boolean isShowMembers(java.lang.String paneId)
public abstract boolean isHideEmptyMiddlePackages(java.lang.String paneId)
public abstract void setHideEmptyPackages(java.lang.String paneId, boolean hideEmptyPackages)
public boolean isCompactDirectories(java.lang.String paneId)
public void setCompactDirectories(java.lang.String paneId, boolean compactDirectories)
public boolean isShowExcludedFiles(java.lang.String paneId)
public boolean isShowVisibilityIcons(java.lang.String paneId)
public abstract boolean isShowLibraryContents(java.lang.String paneId)
public abstract void setShowLibraryContents(java.lang.String paneId, boolean showLibraryContents)
public abstract boolean isShowModules(java.lang.String paneId)
public abstract void setShowModules(java.lang.String paneId, boolean showModules)
public abstract boolean isFlattenModules(java.lang.String paneId)
public abstract void setFlattenModules(java.lang.String paneId, boolean flattenModules)
public abstract boolean isShowURL(java.lang.String paneId)
public abstract void addProjectPane(AbstractProjectViewPane pane)
public abstract void removeProjectPane(AbstractProjectViewPane pane)
public abstract AbstractProjectViewPane getProjectViewPaneById(java.lang.String id)
public abstract boolean isAutoscrollFromSource(java.lang.String paneId)
public abstract boolean isAbbreviatePackageNames(java.lang.String paneId)
public abstract void setAbbreviatePackageNames(java.lang.String paneId, boolean abbreviatePackageNames)
public abstract java.lang.String getCurrentViewId()
ProjectViewPane.ID
AbstractProjectViewPane.getId()
public abstract void selectPsiElement(PsiElement element, boolean requestFocus)
public abstract boolean isManualOrder(java.lang.String paneId)
public abstract void setManualOrder(java.lang.String paneId, boolean enabled)
public abstract boolean isSortByType(java.lang.String paneId)
public abstract void setSortByType(java.lang.String paneId, boolean sortByType)
public abstract AbstractProjectViewPane getCurrentProjectViewPane()
public abstract java.util.Collection<java.lang.String> getPaneIds()
public abstract java.util.Collection<SelectInTarget> getSelectInTargets()
public abstract java.lang.String getDefaultViewId()