public abstract class InspectionToolsConfigurable extends java.lang.Object implements ErrorsConfigurable, SearchableConfigurable, Configurable.NoScroll
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 |
ID |
protected BaseInspectionProfileManager |
myApplicationProfileManager |
protected ProjectInspectionProfileManager |
myProjectProfileManager |
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Constructor and Description |
---|
InspectionToolsConfigurable(ProjectInspectionProfileManager projectProfileManager) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
acceptTool(InspectionToolWrapper entry) |
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
protected abstract void |
applyRootProfile(java.lang.String name,
boolean isProjectLevel) |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
SingleInspectionProfilePanel |
createPanel(InspectionProfileModifiableModel profile) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
java.lang.Runnable |
enableSearch(java.lang.String option) |
protected abstract InspectionProfileImpl |
getCurrentProfile() |
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.
|
java.lang.String |
getId()
Unique configurable id.
|
static java.lang.String |
getInspectionsDisplayName() |
javax.swing.JComponent |
getPreferredFocusedComponent() |
InspectionProfileModifiableModel |
getSelectedObject() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
selectInspectionGroup(java.lang.String[] groupPath) |
void |
selectInspectionTool(java.lang.String selectedToolShortName) |
void |
selectProfile(InspectionProfileImpl profile) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOriginalClass
isModified, isModified, isModified, isModified
cancel
public static final java.lang.String ID
protected final BaseInspectionProfileManager myApplicationProfileManager
protected final ProjectInspectionProfileManager myProjectProfileManager
public InspectionToolsConfigurable(ProjectInspectionProfileManager projectProfileManager)
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 java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id
public java.lang.Runnable enableSearch(java.lang.String option)
enableSearch
in interface SearchableConfigurable
option
- setting search querypublic 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()
protected abstract InspectionProfileImpl getCurrentProfile()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void apply()
UnnamedConfigurable
apply
in interface UnnamedConfigurable
protected abstract void applyRootProfile(java.lang.String name, boolean isProjectLevel)
protected boolean acceptTool(InspectionToolWrapper entry)
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
public SingleInspectionProfilePanel createPanel(InspectionProfileModifiableModel profile)
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public void selectProfile(InspectionProfileImpl profile)
selectProfile
in interface ErrorsConfigurable
public void selectInspectionTool(java.lang.String selectedToolShortName)
selectInspectionTool
in interface ErrorsConfigurable
public void selectInspectionGroup(java.lang.String[] groupPath)
selectInspectionGroup
in interface ErrorsConfigurable
public InspectionProfileModifiableModel getSelectedObject()
getSelectedObject
in interface ErrorsConfigurable
public javax.swing.JComponent getPreferredFocusedComponent()
getPreferredFocusedComponent
in interface Configurable
public static java.lang.String getInspectionsDisplayName()