public abstract class AbstractProjectViewPane extends java.lang.Object implements DataProvider, Disposable
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<AbstractProjectViewPane> |
EP_NAME |
protected Project |
myProject |
protected DnDAwareTree |
myTree |
protected AbstractTreeStructure |
myTreeStructure |
Modifier | Constructor and Description |
---|---|
protected |
AbstractProjectViewPane(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addToolbarActions(DefaultActionGroup actionGroup) |
protected void |
beforeDnDLeave() |
protected void |
beforeDnDUpdate() |
protected java.util.Comparator<NodeDescriptor<?>> |
createComparator() |
abstract javax.swing.JComponent |
createComponent() |
protected ToggleAction |
createFlattenModulesAction(java.util.function.BooleanSupplier isApplicable)
Deprecated.
added in
ProjectViewImpl automatically |
abstract SelectInTarget |
createSelectInTarget() |
static TreeVisitor |
createVisitor(java.lang.Object object) |
static TreeVisitor |
createVisitor(PsiElement element) |
static TreeVisitor |
createVisitor(PsiElement element,
VirtualFile file) |
static TreeVisitor |
createVisitor(VirtualFile file) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected void |
enableDnD() |
protected java.lang.Object |
exhumeElementFromNode(javax.swing.tree.DefaultMutableTreeNode node)
Deprecated.
|
void |
expand(java.lang.Object [] path,
boolean requestFocus) |
static java.lang.Object |
extractValueFromNode(java.lang.Object node) |
protected void |
fireTreeChangeListener()
Deprecated.
unused
|
javax.swing.JComponent |
getComponentToFocus() |
java.lang.Object |
getData(java.lang.String dataId)
Returns the object corresponding to the specified data identifier.
|
java.util.List<PsiElement> |
getElementsFromNode(java.lang.Object node) |
abstract javax.swing.Icon |
getIcon() |
abstract java.lang.String |
getId() |
protected java.lang.String |
getManualOrderOptionText() |
protected Module |
getNodeModule(java.lang.Object element) |
javax.swing.Icon |
getPresentableSubIdIcon(java.lang.String subId) |
java.lang.String |
getPresentableSubIdName(java.lang.String subId) |
PsiElement |
getPSIElementFromNode(javax.swing.tree.TreeNode node)
Deprecated.
|
ActionCallback |
getReady(java.lang.Object requestor) |
NodeDescriptor |
getSelectedDescriptor() |
PsiDirectory [] |
getSelectedDirectories() |
protected PsiDirectory [] |
getSelectedDirectoriesInAmbiguousCase(java.lang.Object userObject) |
java.lang.Object |
getSelectedElement() |
java.lang.Object [] |
getSelectedElements() |
javax.swing.tree.DefaultMutableTreeNode |
getSelectedNode()
Deprecated.
AbstractProjectViewPane#getSelectedPath
|
protected <T extends NodeDescriptor<?>> |
getSelectedNodes(java.lang.Class<T> nodeClass) |
javax.swing.tree.TreePath |
getSelectedPath() |
PsiElement [] |
getSelectedPSIElements() |
javax.swing.tree.TreePath[] |
getSelectionPaths() |
java.lang.String |
getSubId() |
java.lang.String [] |
getSubIds() |
abstract java.lang.String |
getTitle() |
static PsiElement [] |
getTransferedPsiElements(java.awt.datatransfer.Transferable transferable) |
static javax.swing.tree.TreeNode [] |
getTransferedTreeNodes(java.awt.datatransfer.Transferable transferable) |
javax.swing.JTree |
getTree() |
AbstractTreeBuilder |
getTreeBuilder() |
AbstractTreeStructure |
getTreeStructure() |
java.lang.Object |
getValueFromNode(java.lang.Object node) |
abstract int |
getWeight() |
void |
installComparator() |
protected void |
installComparator(AbstractTreeBuilder builder,
java.util.Comparator<? super NodeDescriptor<?>> comparator) |
void |
installComparator(java.util.Comparator<? super NodeDescriptor<?>> comparator) |
boolean |
isAutoScrollEnabledFor(VirtualFile file) |
boolean |
isDefaultPane(Project project) |
boolean |
isInitiallyVisible() |
boolean |
isVisibleAndSelected(java.lang.Object element) |
protected void |
onSubIdChange() |
Promise<javax.swing.tree.TreePath> |
promisePathToElement(java.lang.Object element)
Deprecated.
temporary API
|
void |
readExternal(Element element) |
void |
restoreExpandedPaths() |
protected void |
saveExpandedPaths() |
abstract void |
select(java.lang.Object element,
VirtualFile file,
boolean requestFocus) |
void |
selectModule(Module module,
boolean requestFocus) |
void |
selectModuleGroup(ModuleGroup moduleGroup,
boolean requestFocus) |
void |
setSubId(java.lang.String subId) |
void |
setTreeBuilder(AbstractTreeBuilder treeBuilder) |
boolean |
supportsAbbreviatePackageNames() |
boolean |
supportsCompactDirectories() |
boolean |
supportsFlattenModules() |
boolean |
supportsFoldersAlwaysOnTop() |
boolean |
supportsHideEmptyMiddlePackages() |
boolean |
supportsManualOrder() |
boolean |
supportsShowExcludedFiles() |
boolean |
supportsShowLibraryContents() |
boolean |
supportsShowModules() |
boolean |
supportsSortByType() |
void |
updateFrom(java.lang.Object element,
boolean forceResort,
boolean updateStructure) |
abstract ActionCallback |
updateFromRoot(boolean restoreExpandedPaths) |
void |
writeExternal(Element element) |
public static final ExtensionPointName<AbstractProjectViewPane> EP_NAME
protected final Project myProject
protected DnDAwareTree myTree
protected AbstractTreeStructure myTreeStructure
protected AbstractProjectViewPane(Project project)
@Deprecated protected final void fireTreeChangeListener()
public abstract java.lang.String getTitle()
public abstract javax.swing.Icon getIcon()
public abstract java.lang.String getId()
public boolean isDefaultPane(Project project)
public final java.lang.String getSubId()
public final void setSubId(java.lang.String subId)
protected void onSubIdChange()
public boolean isInitiallyVisible()
public boolean supportsManualOrder()
protected java.lang.String getManualOrderOptionText()
public java.lang.String [] getSubIds()
public java.lang.String getPresentableSubIdName(java.lang.String subId)
public javax.swing.Icon getPresentableSubIdIcon(java.lang.String subId)
public abstract javax.swing.JComponent createComponent()
public javax.swing.JComponent getComponentToFocus()
public void expand(java.lang.Object [] path, boolean requestFocus)
public void dispose()
Disposable
dispose
in interface Disposable
public abstract ActionCallback updateFromRoot(boolean restoreExpandedPaths)
public void updateFrom(java.lang.Object element, boolean forceResort, boolean updateStructure)
public abstract void select(java.lang.Object element, VirtualFile file, boolean requestFocus)
public void selectModule(Module module, boolean requestFocus)
public void selectModuleGroup(ModuleGroup moduleGroup, boolean requestFocus)
public javax.swing.tree.TreePath[] getSelectionPaths()
public void addToolbarActions(DefaultActionGroup actionGroup)
@Deprecated protected ToggleAction createFlattenModulesAction(java.util.function.BooleanSupplier isApplicable)
ProjectViewImpl
automaticallyprotected <T extends NodeDescriptor<?>> java.util.List<T> getSelectedNodes(java.lang.Class<T> nodeClass)
public boolean isAutoScrollEnabledFor(VirtualFile file)
public java.lang.Object getData(java.lang.String dataId)
DataProvider
PlatformDataKeys
class.getData
in interface DataProvider
dataId
- the data identifier for which the value is requested.public abstract int getWeight()
public abstract SelectInTarget createSelectInTarget()
public final javax.swing.tree.TreePath getSelectedPath()
public final NodeDescriptor getSelectedDescriptor()
@Deprecated public final javax.swing.tree.DefaultMutableTreeNode getSelectedNode()
TreeUtil.getUserObject(Object)
public final java.lang.Object getSelectedElement()
public final PsiElement [] getSelectedPSIElements()
public java.util.List<PsiElement> getElementsFromNode(java.lang.Object node)
@Deprecated public PsiElement getPSIElementFromNode(javax.swing.tree.TreeNode node)
getElementsFromNode(Object)
protected Module getNodeModule(java.lang.Object element)
public final java.lang.Object [] getSelectedElements()
public java.lang.Object getValueFromNode(java.lang.Object node)
@Deprecated protected java.lang.Object exhumeElementFromNode(javax.swing.tree.DefaultMutableTreeNode node)
getValueFromNode(Object)
public static java.lang.Object extractValueFromNode(java.lang.Object node)
public AbstractTreeBuilder getTreeBuilder()
public AbstractTreeStructure getTreeStructure()
public void readExternal(Element element)
public void writeExternal(Element element)
protected void saveExpandedPaths()
public final void restoreExpandedPaths()
protected java.util.Comparator<NodeDescriptor<?>> createComparator()
public void installComparator()
public void installComparator(java.util.Comparator<? super NodeDescriptor<?>> comparator)
protected void installComparator(AbstractTreeBuilder builder, java.util.Comparator<? super NodeDescriptor<?>> comparator)
public javax.swing.JTree getTree()
public PsiDirectory [] getSelectedDirectories()
protected PsiDirectory [] getSelectedDirectoriesInAmbiguousCase(java.lang.Object userObject)
public static PsiElement [] getTransferedPsiElements(java.awt.datatransfer.Transferable transferable)
public static javax.swing.tree.TreeNode [] getTransferedTreeNodes(java.awt.datatransfer.Transferable transferable)
protected void enableDnD()
protected void beforeDnDUpdate()
protected void beforeDnDLeave()
public void setTreeBuilder(AbstractTreeBuilder treeBuilder)
public boolean supportsAbbreviatePackageNames()
public boolean supportsCompactDirectories()
public boolean supportsFlattenModules()
public boolean supportsFoldersAlwaysOnTop()
public boolean supportsHideEmptyMiddlePackages()
public boolean supportsShowExcludedFiles()
public boolean supportsShowLibraryContents()
public boolean supportsShowModules()
public boolean supportsSortByType()
public ActionCallback getReady(java.lang.Object requestor)
@Deprecated public Promise<javax.swing.tree.TreePath> promisePathToElement(java.lang.Object element)
public boolean isVisibleAndSelected(java.lang.Object element)
public static TreeVisitor createVisitor(java.lang.Object object)
public static TreeVisitor createVisitor(VirtualFile file)
public static TreeVisitor createVisitor(PsiElement element)
public static TreeVisitor createVisitor(PsiElement element, VirtualFile file)