public class ProjectJdkConfigurable extends java.lang.Object implements UnnamedConfigurable
Constructor and Description |
---|
ProjectJdkConfigurable(Project project,
ProjectSdksModel jdksModel) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
Sdk |
getSelectedProjectJdk() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel
public ProjectJdkConfigurable(Project project, ProjectSdksModel jdksModel)
public Sdk getSelectedProjectJdk()
public 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 boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void apply()
UnnamedConfigurable
apply
in interface UnnamedConfigurable
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable