public abstract class BaseLibrariesConfigurable extends BaseStructureConfigurable
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
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
myLevel |
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
Modifier | Constructor and Description |
---|---|
protected |
BaseLibrariesConfigurable(Project project,
java.lang.String libraryTableLevel) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
checkCanApply() |
protected BaseStructureConfigurable.AbstractAddGroup |
createAddAction() |
protected java.util.List<? extends AnAction> |
createCopyActions(boolean fromPopup) |
void |
createLibraryNode(Library library) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected abstract java.lang.String |
getAddText() |
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.
|
static BaseLibrariesConfigurable |
getInstance(Project project,
java.lang.String tableLevel) |
java.lang.String |
getLevel() |
abstract LibraryTablePresentation |
getLibraryTablePresentation() |
abstract StructureLibraryTableModifiableModelProvider |
getModelProvider() |
abstract BaseLibrariesConfigurable |
getOppositeGroup() |
protected java.util.Collection<? extends ProjectStructureElement> |
getProjectStructureElements() |
protected java.util.List<? extends RemoveConfigurableHandler<?>> |
getRemoveHandlers() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
protected void |
loadTree() |
void |
onStructureSelected() |
void |
onStructureUnselected() |
void |
removeLibraries(java.util.List<? extends LibraryProjectStructureElement> libraries) |
void |
removeLibrary(LibraryProjectStructureElement element) |
void |
removeLibraryNode(Library library) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
protected void |
updateSelection(NamedConfigurable configurable) |
addCollapseExpandActions, createActions, disposeUIResources, getSelectedElement, getStateService, getTextForSpeedSearch, init, initTree, navigateTo, queryPlace, reloadTreeNodes, removeFacetNodes
addItemsChangeListener, addNode, addNotify, checkForEmptyAndDuplicatedNames, clearChildren, createComponent, createToolbarActionGroup, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getAdditionalActions, getComponentStateKey, getDetails, getDetailsComponent, getMaster, getNodeComparator, getPanelPreferredSize, 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, wasObjectStored
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableSearch, getId, getOriginalClass
getDisplayName, getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel, createComponent
setHistory
protected BaseLibrariesConfigurable(Project project, java.lang.String libraryTableLevel)
public static BaseLibrariesConfigurable getInstance(Project project, java.lang.String tableLevel)
public abstract LibraryTablePresentation getLibraryTablePresentation()
public java.lang.String getHelpTopic()
Configurable
getHelpTopic
in interface Configurable
getHelpTopic
in class MasterDetailsComponent
null
if no help is availablepublic boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
isModified
in class MasterDetailsComponent
true
if the settings were modified, false
otherwisepublic void checkCanApply() throws ConfigurationException
checkCanApply
in class BaseStructureConfigurable
ConfigurationException
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class BaseStructureConfigurable
protected void loadTree()
loadTree
in class BaseStructureConfigurable
protected java.util.Collection<? extends ProjectStructureElement> getProjectStructureElements()
getProjectStructureElements
in class BaseStructureConfigurable
public void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
apply
in class MasterDetailsComponent
ConfigurationException
- if values cannot be appliedpublic java.lang.String getLevel()
public void createLibraryNode(Library library)
public void removeLibraryNode(Library library)
public void dispose()
Disposable
protected java.util.List<? extends AnAction> createCopyActions(boolean fromPopup)
createCopyActions
in class BaseStructureConfigurable
protected BaseStructureConfigurable.AbstractAddGroup createAddAction()
createAddAction
in class BaseStructureConfigurable
protected abstract java.lang.String getAddText()
public abstract StructureLibraryTableModifiableModelProvider getModelProvider()
public abstract BaseLibrariesConfigurable getOppositeGroup()
protected void updateSelection(NamedConfigurable configurable)
updateSelection
in class MasterDetailsComponent
public void onStructureUnselected()
onStructureUnselected
in class BaseStructureConfigurable
public void onStructureSelected()
onStructureSelected
in class BaseStructureConfigurable
public void removeLibrary(LibraryProjectStructureElement element)
public void removeLibraries(java.util.List<? extends LibraryProjectStructureElement> libraries)
protected java.util.List<? extends RemoveConfigurableHandler<?>> getRemoveHandlers()
getRemoveHandlers
in class BaseStructureConfigurable
protected java.lang.String getEmptySelectionString()
getEmptySelectionString
in class MasterDetailsComponent