public class ScopeChooserConfigurable extends MasterDetailsComponent implements SearchableConfigurable
Modifier and Type | Class and Description |
---|---|
static class |
ScopeChooserConfigurable.ScopeChooserConfigurableState |
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROJECT_SCOPES |
static java.lang.String |
SCOPE_CHOOSER_CONFIGURABLE_UI_KEY |
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 |
---|
ScopeChooserConfigurable(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
protected java.util.ArrayList<AnAction> |
createActions(boolean fromPopup) |
protected java.lang.String |
getComponentStateKey() |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
protected java.lang.String |
getEmptySelectionString() |
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.
|
protected java.awt.Dimension |
getPanelPreferredSize() |
ScopeChooserConfigurable.ScopeChooserConfigurableState |
getScopesState() |
protected MasterDetailsStateService |
getStateService() |
protected void |
initTree() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
protected void |
updateSelection(NamedConfigurable configurable) |
protected boolean |
wasObjectStored(java.lang.Object editableObject) |
addItemsChangeListener, addNode, addNotify, checkForEmptyAndDuplicatedNames, clearChildren, createComponent, createToolbarActionGroup, disposeUIResources, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getAdditionalActions, getDetails, getDetailsComponent, getMaster, getNodeComparator, getSelectedConfigurable, getSelectedNode, getSelectedObject, getSplitter, getState, getToolbar, getTree, initializeConfigurable, initUi, isAutoScrollEnabled, isInitialized, loadComponentState, loadState, onItemDeleted, processRemovedItems, reInitWholePanelIfNeeded, removeNodes, removePaths, restoreLastSelection, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, setHistory, setSelectedNode, sortDescendants, updateMultiSelection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableSearch, getOriginalClass
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel, createComponent, disposeUIResources
public static final java.lang.String SCOPE_CHOOSER_CONFIGURABLE_UI_KEY
public static final java.lang.String PROJECT_SCOPES
public ScopeChooserConfigurable(Project project)
protected java.lang.String getComponentStateKey()
getComponentStateKey
in class MasterDetailsComponent
protected java.awt.Dimension getPanelPreferredSize()
getPanelPreferredSize
in class MasterDetailsComponent
protected MasterDetailsStateService getStateService()
getStateService
in class MasterDetailsComponent
protected java.util.ArrayList<AnAction> createActions(boolean fromPopup)
createActions
in class MasterDetailsComponent
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class MasterDetailsComponent
public void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
apply
in class MasterDetailsComponent
ConfigurationException
- if values cannot be appliedpublic ScopeChooserConfigurable.ScopeChooserConfigurableState getScopesState()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
isModified
in class MasterDetailsComponent
true
if the settings were modified, false
otherwiseprotected void initTree()
initTree
in class MasterDetailsComponent
protected boolean wasObjectStored(java.lang.Object editableObject)
wasObjectStored
in class MasterDetailsComponent
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 availableprotected void updateSelection(NamedConfigurable configurable)
updateSelection
in class MasterDetailsComponent
protected java.lang.String getEmptySelectionString()
getEmptySelectionString
in class MasterDetailsComponent
public java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id