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.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 |
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, wait
enableSearch, getOriginalClass
isModified, isModified, isModified, isModified
cancel
public 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()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id
public java.lang.String getDisplayName()
Configurable
getDisplayName
in interface Configurable
public java.lang.String getHelpTopic()
Configurable
getHelpTopic
in interface Configurable
null
if no help is availablepublic javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
public ArtifactsStructureConfigurable getArtifactsStructureConfigurable()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
ConfigurationException
- if values cannot be appliedpublic void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public boolean isUiInitialized()
public History getHistory()
public void setHistory(History history)
setHistory
in interface Place.Navigator
public void queryPlace(Place place)
queryPlace
in interface Place.Navigator
public 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.Navigator
public 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