public class ProjectJdksConfigurable extends MasterDetailsComponent
MasterDetailsComponent.ActionGroupWithPreselection, MasterDetailsComponent.ItemsChangeListener, MasterDetailsComponent.MyActionGroupWrapper, MasterDetailsComponent.MyDeleteAction, MasterDetailsComponent.MyNode, MasterDetailsComponent.MyRootNode
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies
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 |
---|
ProjectJdksConfigurable(Project project) |
ProjectJdksConfigurable(Project project,
ProjectSdksModel sdksModel) |
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) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
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.
|
Sdk |
getSelectedJdk() |
protected MasterDetailsStateService |
getStateService() |
protected void |
initTree() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
protected void |
processRemovedItems() |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
selectJdk(Sdk projectJdk) |
void |
selectJdkVersion(JavaSdkVersion requiredJdkVersion) |
protected boolean |
wasObjectStored(java.lang.Object editableObject) |
addItemsChangeListener, addNode, addNotify, checkForEmptyAndDuplicatedNames, clearChildren, createComponent, createToolbarActionGroup, ensureInitialized, findNodeByCondition, findNodeByName, findNodeByObject, forAll, getAdditionalActions, getDetails, getDetailsComponent, getMaster, getNodeComparator, getPanelPreferredSize, getSelectedConfigurable, getSelectedNode, getSelectedObject, getSplitter, getState, getToolbar, getTree, initializeConfigurable, initUi, isAutoScrollEnabled, isInitialized, loadComponentState, loadState, onItemDeleted, reInitWholePanelIfNeeded, removeNodes, removePaths, restoreLastSelection, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, selectNodeInTree, setHistory, setSelectedNode, sortDescendants, updateMultiSelection, updateSelection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel
public ProjectJdksConfigurable(Project project)
public ProjectJdksConfigurable(Project project, ProjectSdksModel sdksModel)
protected java.lang.String getComponentStateKey()
getComponentStateKey
in class MasterDetailsComponent
protected MasterDetailsStateService getStateService()
getStateService
in class MasterDetailsComponent
protected void initTree()
initTree
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 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 MasterDetailsComponent
protected java.util.ArrayList<AnAction> createActions(boolean fromPopup)
createActions
in class MasterDetailsComponent
protected void processRemovedItems()
processRemovedItems
in class MasterDetailsComponent
protected boolean wasObjectStored(java.lang.Object editableObject)
wasObjectStored
in class MasterDetailsComponent
public Sdk getSelectedJdk()
public void selectJdk(Sdk projectJdk)
public java.lang.String getDisplayName()
Configurable
public java.lang.String getHelpTopic()
Configurable
getHelpTopic
in interface Configurable
getHelpTopic
in class MasterDetailsComponent
null
if no help is availableprotected java.lang.String getEmptySelectionString()
getEmptySelectionString
in class MasterDetailsComponent
public void selectJdkVersion(JavaSdkVersion requiredJdkVersion)