public abstract class BaseStructureConfigurable extends MasterDetailsComponent implements SearchableConfigurable, Disposable, Place.Navigator
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseStructureConfigurable.AbstractAddGroup |
protected class |
BaseStructureConfigurable.MyRemoveAction |
MasterDetailsComponent.ActionGroupWithPreselection, MasterDetailsComponent.ItemsChangeListener, MasterDetailsComponent.MyActionGroupWrapper, MasterDetailsComponent.MyDeleteAction, MasterDetailsComponent.MyNode, MasterDetailsComponent.MyRootNode
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.Parent
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected boolean |
myAutoScrollEnabled |
protected StructureConfigurableContext |
myContext |
protected Project |
myProject |
protected boolean |
myUiDisposed |
COPY_ICON, LOG, myAutoScrollHandler, myCurrentConfigurable, myHistory, myNorthPanel, myRoot, myState, myToReInitWholePanel, myTree, myWholePanel, TREE_NAME, TREE_OBJECT, TREE_UPDATER
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Modifier | Constructor and Description |
---|---|
protected |
BaseStructureConfigurable(Project project) |
protected |
BaseStructureConfigurable(Project project,
MasterDetailsState state) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCollapseExpandActions(java.util.List<? super AnAction> result) |
void |
checkCanApply() |
protected java.util.ArrayList<AnAction> |
createActions(boolean fromPopup) |
protected abstract BaseStructureConfigurable.AbstractAddGroup |
createAddAction() |
protected java.util.List<? extends AnAction> |
createCopyActions(boolean fromPopup) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
protected java.util.Collection<? extends ProjectStructureElement> |
getProjectStructureElements() |
protected java.util.List<? extends RemoveConfigurableHandler<?>> |
getRemoveHandlers() |
ProjectStructureElement |
getSelectedElement() |
protected MasterDetailsStateService |
getStateService() |
protected java.lang.String |
getTextForSpeedSearch(MasterDetailsComponent.MyNode node) |
void |
init(StructureConfigurableContext context) |
protected void |
initTree() |
protected abstract void |
loadTree() |
ActionCallback |
navigateTo(Place place,
boolean requestFocus) |
void |
onStructureSelected() |
void |
onStructureUnselected() |
void |
queryPlace(Place place) |
protected void |
reloadTreeNodes() |
protected void |
removeFacetNodes(java.util.List<? extends Facet> facets) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
addItemsChangeListener, addNode, addNotify, apply, checkForEmptyAndDuplicatedNames, clearChildren, createComponent, createToolbarActionGroup, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getAdditionalActions, getComponentStateKey, getDetails, getDetailsComponent, getEmptySelectionString, getHelpTopic, getMaster, getNodeComparator, getPanelPreferredSize, getSelectedConfigurable, getSelectedNode, getSelectedObject, getSplitter, getState, getToolbar, getTree, initializeConfigurable, initUi, isAutoScrollEnabled, isInitialized, isModified, loadComponentState, loadState, onItemDeleted, processRemovedItems, reInitWholePanelIfNeeded, removeNodes, removePaths, restoreLastSelection, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, setHistory, setSelectedNode, sortDescendants, updateMultiSelection, updateSelection, wasObjectStored
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableSearch, getId, getOriginalClass
getDisplayName, getHelpTopic, getPreferredFocusedComponent, isModified, isModified, isModified, isModified
apply, cancel, createComponent, isModified
dispose
setHistory
protected StructureConfigurableContext myContext
protected final Project myProject
protected boolean myUiDisposed
protected boolean myAutoScrollEnabled
protected BaseStructureConfigurable(Project project, MasterDetailsState state)
protected BaseStructureConfigurable(Project project)
public void init(StructureConfigurableContext context)
protected MasterDetailsStateService getStateService()
getStateService
in class MasterDetailsComponent
public ActionCallback navigateTo(Place place, boolean requestFocus)
navigateTo
in interface Place.Navigator
public void queryPlace(Place place)
queryPlace
in interface Place.Navigator
protected void initTree()
initTree
in class MasterDetailsComponent
protected java.lang.String getTextForSpeedSearch(MasterDetailsComponent.MyNode node)
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
disposeUIResources
in class MasterDetailsComponent
public void checkCanApply() throws ConfigurationException
ConfigurationException
protected void addCollapseExpandActions(java.util.List<? super AnAction> result)
public ProjectStructureElement getSelectedElement()
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class MasterDetailsComponent
protected final void reloadTreeNodes()
protected java.util.Collection<? extends ProjectStructureElement> getProjectStructureElements()
protected abstract void loadTree()
protected java.util.ArrayList<AnAction> createActions(boolean fromPopup)
createActions
in class MasterDetailsComponent
protected java.util.List<? extends AnAction> createCopyActions(boolean fromPopup)
public void onStructureUnselected()
public void onStructureSelected()
protected abstract BaseStructureConfigurable.AbstractAddGroup createAddAction()
protected java.util.List<? extends RemoveConfigurableHandler<?>> getRemoveHandlers()
protected void removeFacetNodes(java.util.List<? extends Facet> facets)