public class ModuleStructureConfigurable extends BaseStructureConfigurable implements Place.Navigator
BaseStructureConfigurable.AbstractAddGroup, 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
myAutoScrollEnabled, myContext, myProject, myUiDisposed
COPY_ICON, LOG, myAutoScrollHandler, myCurrentConfigurable, myHistory, myNorthPanel, myRoot, myState, myToReInitWholePanel, myTree, myWholePanel, TREE_NAME, TREE_OBJECT, TREE_UPDATER
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Constructor and Description |
---|
ModuleStructureConfigurable(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
addLibraryOrderEntry(Module module,
Library library) |
void |
addNode(MasterDetailsComponent.MyNode nodeToAdd,
MasterDetailsComponent.MyNode parent) |
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
protected java.util.ArrayList<AnAction> |
createActions(boolean fromPopup) |
protected BaseStructureConfigurable.AbstractAddGroup |
createAddAction() |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected java.util.List<? extends AnAction> |
createCopyActions(boolean fromPopup) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
MasterDetailsComponent.MyNode |
findModuleNode(Module module) |
protected java.util.ArrayList<AnAction> |
getAdditionalActions() |
protected java.lang.String |
getComponentStateKey() |
StructureConfigurableContext |
getContext() |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
protected java.lang.String |
getEmptySelectionString() |
ProjectFacetsConfigurator |
getFacetConfigurator() |
FacetEditorFacadeImpl |
getFacetEditorFacade() |
java.lang.String |
getHelpTopic()
Returns the topic in the help file which is shown when help for the configurable is requested.
|
java.lang.String |
getId()
Unique configurable id.
|
static ModuleStructureConfigurable |
getInstance(Project project) |
Module |
getModule(java.lang.String moduleName) |
Module[] |
getModules() |
protected java.util.Comparator<MasterDetailsComponent.MyNode> |
getNodeComparator() |
Project |
getProject() |
protected java.util.Collection<? extends ProjectStructureElement> |
getProjectStructureElements() |
protected java.util.List<RemoveConfigurableHandler<?>> |
getRemoveHandlers() |
Module |
getSelectedModule() |
protected java.lang.String |
getTextForSpeedSearch(MasterDetailsComponent.MyNode node) |
void |
init(StructureConfigurableContext context) |
protected void |
initTree() |
protected boolean |
isAutoScrollEnabled() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
protected void |
loadTree() |
void |
removeLibraryOrderEntry(Module module,
Library library) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
ActionCallback |
selectOrderEntry(Module module,
OrderEntry orderEntry) |
protected boolean |
updateMultiSelection(java.util.List<? extends NamedConfigurable> selectedConfigurables) |
boolean |
updateProjectTree(Module[] modules) |
protected void |
updateSelection(NamedConfigurable configurable) |
addCollapseExpandActions, checkCanApply, getSelectedElement, getStateService, navigateTo, onStructureSelected, onStructureUnselected, queryPlace, reloadTreeNodes, removeFacetNodes
addItemsChangeListener, addNotify, checkForEmptyAndDuplicatedNames, clearChildren, createToolbarActionGroup, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getDetails, getDetailsComponent, getMaster, getPanelPreferredSize, getSelectedConfigurable, getSelectedNode, getSelectedObject, getSplitter, getState, getToolbar, getTree, initializeConfigurable, initUi, isInitialized, loadComponentState, loadState, onItemDeleted, processRemovedItems, reInitWholePanelIfNeeded, removeNodes, removePaths, restoreLastSelection, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, setHistory, setSelectedNode, sortDescendants, wasObjectStored
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
navigateTo, queryPlace, setHistory
enableSearch, getOriginalClass
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel
public ModuleStructureConfigurable(Project project)
protected java.lang.String getComponentStateKey()
getComponentStateKey
in class MasterDetailsComponent
protected void initTree()
initTree
in class BaseStructureConfigurable
protected java.lang.String getTextForSpeedSearch(MasterDetailsComponent.MyNode node)
getTextForSpeedSearch
in class BaseStructureConfigurable
protected java.util.ArrayList<AnAction> getAdditionalActions()
getAdditionalActions
in class MasterDetailsComponent
public void addNode(MasterDetailsComponent.MyNode nodeToAdd, MasterDetailsComponent.MyNode parent)
addNode
in class MasterDetailsComponent
protected java.util.ArrayList<AnAction> createActions(boolean fromPopup)
createActions
in class BaseStructureConfigurable
protected java.util.List<? extends AnAction> createCopyActions(boolean fromPopup)
createCopyActions
in class BaseStructureConfigurable
protected void loadTree()
loadTree
in class BaseStructureConfigurable
protected java.util.Collection<? extends ProjectStructureElement> getProjectStructureElements()
getProjectStructureElements
in class BaseStructureConfigurable
protected void updateSelection(NamedConfigurable configurable)
updateSelection
in class MasterDetailsComponent
protected boolean isAutoScrollEnabled()
isAutoScrollEnabled
in class MasterDetailsComponent
protected boolean updateMultiSelection(java.util.List<? extends NamedConfigurable> selectedConfigurables)
updateMultiSelection
in class MasterDetailsComponent
public boolean updateProjectTree(Module[] modules)
protected java.util.Comparator<MasterDetailsComponent.MyNode> getNodeComparator()
getNodeComparator
in class MasterDetailsComponent
public void init(StructureConfigurableContext context)
init
in class BaseStructureConfigurable
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class BaseStructureConfigurable
public void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
apply
in class MasterDetailsComponent
ConfigurationException
- if values cannot be appliedpublic boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
isModified
in class MasterDetailsComponent
true
if the settings were modified, false
otherwisepublic void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
disposeUIResources
in class BaseStructureConfigurable
public void dispose()
Disposable
dispose
in interface Disposable
public javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
createComponent
in class MasterDetailsComponent
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
public java.lang.String getDisplayName()
Configurable
getDisplayName
in interface Configurable
public java.lang.String getHelpTopic()
Configurable
getHelpTopic
in interface Configurable
getHelpTopic
in class MasterDetailsComponent
null
if no help is availablepublic ActionCallback selectOrderEntry(Module module, OrderEntry orderEntry)
public static ModuleStructureConfigurable getInstance(Project project)
public Project getProject()
public Module[] getModules()
public void removeLibraryOrderEntry(Module module, Library library)
public void addLibraryOrderEntry(Module module, Library library)
public MasterDetailsComponent.MyNode findModuleNode(Module module)
public FacetEditorFacadeImpl getFacetEditorFacade()
public ProjectFacetsConfigurator getFacetConfigurator()
public Module getSelectedModule()
public java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id
public Module getModule(java.lang.String moduleName)
public StructureConfigurableContext getContext()
protected BaseStructureConfigurable.AbstractAddGroup createAddAction()
createAddAction
in class BaseStructureConfigurable
protected java.util.List<RemoveConfigurableHandler<?>> getRemoveHandlers()
getRemoveHandlers
in class BaseStructureConfigurable
protected java.lang.String getEmptySelectionString()
getEmptySelectionString
in class MasterDetailsComponent