public class ProjectStructureConfigurable extends java.lang.Object implements SearchableConfigurable, Place.Navigator, Configurable.NoMargin, Configurable.NoScroll
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectStructureConfigurable.UIState |
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.ParentConfigurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CATEGORY |
static DataKey<ProjectStructureConfigurable> |
KEY |
protected ProjectStructureConfigurable.UIState |
myUiState |
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE| Constructor and Description |
|---|
ProjectStructureConfigurable(Project project) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
Place |
createArtifactPlace(Artifact artifact) |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
Place |
createModulePlace(Module module) |
Place |
createModulesPlace() |
Place |
createProjectConfigurablePlace() |
Place |
createProjectOrGlobalLibraryPlace(Library library) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
ArtifactsStructureConfigurable |
getArtifactsStructureConfigurable() |
BaseLibrariesConfigurable |
getConfigurableFor(Library library) |
StructureConfigurableContext |
getContext() |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
java.lang.String |
getHelpTopic()
Returns the topic in the help file which is shown when help for the configurable is requested.
|
History |
getHistory() |
java.lang.String |
getId()
Unique configurable id.
|
static ProjectStructureConfigurable |
getInstance(Project project) |
JdkListConfigurable |
getJdkConfig() |
ModuleStructureConfigurable |
getModulesConfig() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
ProjectConfigurable |
getProjectConfig() |
ProjectSdksModel |
getProjectJdksModel() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
boolean |
isUiInitialized() |
ActionCallback |
navigateTo(Place place,
boolean requestFocus) |
void |
queryPlace(Place place) |
void |
registerObsoleteLibraryRoots(java.util.Collection<? extends VirtualFile> roots) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
ActionCallback |
select(Artifact artifact,
boolean requestFocus) |
ActionCallback |
select(Facet facetToSelect,
boolean requestFocus) |
ActionCallback |
select(LibraryOrderEntry libraryOrderEntry,
boolean requestFocus) |
ActionCallback |
select(Sdk sdk,
boolean requestFocus) |
ActionCallback |
select(java.lang.String moduleToSelect,
java.lang.String editorNameToSelect,
boolean requestFocus) |
ActionCallback |
selectGlobalLibraries(boolean requestFocus) |
ActionCallback |
selectOrderEntry(Module module,
OrderEntry orderEntry) |
ActionCallback |
selectProjectGeneralSettings(boolean requestFocus) |
ActionCallback |
selectProjectOrGlobalLibrary(Library library,
boolean requestFocus) |
void |
setHistory(History history) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableSearch, getOriginalClassisModified, isModified, isModified, isModifiedcancelpublic static final DataKey<ProjectStructureConfigurable> KEY
protected final ProjectStructureConfigurable.UIState myUiState
public static final java.lang.String CATEGORY
public ProjectStructureConfigurable(Project project)
public java.lang.String getId()
SearchableConfigurablegetId in interface SearchableConfigurableConfigurableEP.idpublic java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic java.lang.String getHelpTopic()
ConfigurablegetHelpTopic in interface Configurablenull if no help is availablepublic javax.swing.JComponent createComponent()
UnnamedConfigurableAlso this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent in interface UnnamedConfigurablenull if it cannot be createdUnnamedConfigurable.disposeUIResources()public ArtifactsStructureConfigurable getArtifactsStructureConfigurable()
public boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurabletrue if the settings were modified, false otherwisepublic void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableConfigurationException - if values cannot be appliedpublic void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic boolean isUiInitialized()
public History getHistory()
public void setHistory(History history)
setHistory in interface Place.Navigatorpublic void queryPlace(Place place)
queryPlace in interface Place.Navigatorpublic ActionCallback selectProjectGeneralSettings(boolean requestFocus)
public Place createProjectConfigurablePlace()
public ActionCallback select(java.lang.String moduleToSelect, java.lang.String editorNameToSelect, boolean requestFocus)
public Place createModulesPlace()
public ActionCallback select(Facet facetToSelect, boolean requestFocus)
public ActionCallback select(Sdk sdk, boolean requestFocus)
public ActionCallback selectGlobalLibraries(boolean requestFocus)
public ActionCallback selectProjectOrGlobalLibrary(Library library, boolean requestFocus)
public ActionCallback select(Artifact artifact, boolean requestFocus)
public ActionCallback select(LibraryOrderEntry libraryOrderEntry, boolean requestFocus)
public ActionCallback selectOrderEntry(Module module, OrderEntry orderEntry)
public ActionCallback navigateTo(Place place, boolean requestFocus)
navigateTo in interface Place.Navigatorpublic static ProjectStructureConfigurable getInstance(Project project)
public ProjectSdksModel getProjectJdksModel()
public JdkListConfigurable getJdkConfig()
public ModuleStructureConfigurable getModulesConfig()
public ProjectConfigurable getProjectConfig()
public void registerObsoleteLibraryRoots(java.util.Collection<? extends VirtualFile> roots)
public StructureConfigurableContext getContext()
public BaseLibrariesConfigurable getConfigurableFor(Library library)
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent in interface Configurable