public class ModuleStructureConfigurable extends BaseStructureConfigurable implements Place.Navigator
BaseStructureConfigurable.AbstractAddGroup, BaseStructureConfigurable.MyRemoveActionMasterDetailsComponent.ActionGroupWithPreselection, MasterDetailsComponent.ItemsChangeListener, MasterDetailsComponent.MyActionGroupWrapper, MasterDetailsComponent.MyDeleteAction, MasterDetailsComponent.MyNode, MasterDetailsComponent.MyRootNodeSearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.ParentConfigurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependenciesDisposable.ParentmyAutoScrollEnabled, myContext, myProject, myUiDisposedCOPY_ICON, LOG, myAutoScrollHandler, myCurrentConfigurable, myHistory, myNorthPanel, myRoot, myState, myToReInitWholePanel, myTree, myWholePanel, TREE_NAME, TREE_OBJECT, TREE_UPDATERAPPLICATION_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, removeFacetNodesaddItemsChangeListener, 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, wasObjectStoredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnavigateTo, queryPlace, setHistoryenableSearch, getOriginalClassgetPreferredFocusedComponent, isModified, isModified, isModified, isModifiedcancelpublic ModuleStructureConfigurable(Project project)
protected java.lang.String getComponentStateKey()
getComponentStateKey in class MasterDetailsComponentprotected void initTree()
initTree in class BaseStructureConfigurableprotected java.lang.String getTextForSpeedSearch(MasterDetailsComponent.MyNode node)
getTextForSpeedSearch in class BaseStructureConfigurableprotected java.util.ArrayList<AnAction> getAdditionalActions()
getAdditionalActions in class MasterDetailsComponentpublic void addNode(MasterDetailsComponent.MyNode nodeToAdd, MasterDetailsComponent.MyNode parent)
addNode in class MasterDetailsComponentprotected java.util.ArrayList<AnAction> createActions(boolean fromPopup)
createActions in class BaseStructureConfigurableprotected java.util.List<? extends AnAction> createCopyActions(boolean fromPopup)
createCopyActions in class BaseStructureConfigurableprotected void loadTree()
loadTree in class BaseStructureConfigurableprotected java.util.Collection<? extends ProjectStructureElement> getProjectStructureElements()
getProjectStructureElements in class BaseStructureConfigurableprotected void updateSelection(NamedConfigurable configurable)
updateSelection in class MasterDetailsComponentprotected boolean isAutoScrollEnabled()
isAutoScrollEnabled in class MasterDetailsComponentprotected boolean updateMultiSelection(java.util.List<? extends NamedConfigurable> selectedConfigurables)
updateMultiSelection in class MasterDetailsComponentpublic boolean updateProjectTree(Module[] modules)
protected java.util.Comparator<MasterDetailsComponent.MyNode> getNodeComparator()
getNodeComparator in class MasterDetailsComponentpublic void init(StructureConfigurableContext context)
init in class BaseStructureConfigurablepublic void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablereset in class BaseStructureConfigurablepublic void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableapply in class MasterDetailsComponentConfigurationException - if values cannot be appliedpublic boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurableisModified in class MasterDetailsComponenttrue if the settings were modified, false otherwisepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurabledisposeUIResources in class BaseStructureConfigurablepublic void dispose()
Disposabledispose in interface Disposablepublic javax.swing.JComponent createComponent()
UnnamedConfigurableAlso this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent in interface UnnamedConfigurablecreateComponent in class MasterDetailsComponentnull if it cannot be createdUnnamedConfigurable.disposeUIResources()public java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic java.lang.String getHelpTopic()
ConfigurablegetHelpTopic in interface ConfigurablegetHelpTopic in class MasterDetailsComponentnull 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()
SearchableConfigurablegetId in interface SearchableConfigurableConfigurableEP.idpublic Module getModule(java.lang.String moduleName)
public StructureConfigurableContext getContext()
protected BaseStructureConfigurable.AbstractAddGroup createAddAction()
createAddAction in class BaseStructureConfigurableprotected java.util.List<RemoveConfigurableHandler<?>> getRemoveHandlers()
getRemoveHandlers in class BaseStructureConfigurableprotected java.lang.String getEmptySelectionString()
getEmptySelectionString in class MasterDetailsComponent