public interface ExternalToolOptionsPage
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPLETE_PROPERTY |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Add a property change listener to this page.
|
javax.swing.JComponent |
getGUI()
Get the UI for this page.
|
java.lang.String |
getHelpTopicID()
Get the help topic ID for this page.
|
java.awt.Component |
getInitialFocus()
Get the initial focus component for this page.
|
java.lang.String |
getPageName()
Get the name of this options page.
|
boolean |
isComplete()
Is the page complete? This method should return true when all values on
the page which are required fields have values.
|
void |
loadOptions(ExternalTool tool,
boolean isCreateMode)
The options page should populate the UI from the specified
ExternalTool object.
|
void |
removePropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Remove a property change listener.
|
void |
saveOptions(ExternalTool tool,
boolean isCreateMode)
The options page should save the contents of the UI into the specified
ExternalTool object.
|
void |
setEnvironment(ExternalToolOptionsEnvironment env)
Set the environment in which the page is being invoked.
|
boolean |
validateOptions()
The options page should verify that the values provided by the user
are valid.
|
static final java.lang.String COMPLETE_PROPERTY
java.awt.Component getInitialFocus()
void setEnvironment(ExternalToolOptionsEnvironment env)
env
- an ExternalToolOptionsEnvironment instance.javax.swing.JComponent getGUI()
java.lang.String getPageName()
void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the property to listen for. The external tools wizard
will always pass the value COMPLETE_PROPERTY into this method.listener
- the property listener to notify when mandatory values on
this page may have caused the value of isComplete() to change.void removePropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- the property to remove a listener forlistener
- the listener to removeboolean isComplete()
You should fire a property change event to registered property change listeners if the value of this property may have changed.
boolean validateOptions()
void saveOptions(ExternalTool tool, boolean isCreateMode)
tool
- the external tool instance to save the options specified by
the user in the UI to. The tool is guaranteed to be of the correct
type for the ExternalToolType which provided this options page.isCreateMode
- flag used to indicate if the options page is currently
being used in a wizard that's in create mode. You can use this flag
to determine whether to default properties on later pages.void loadOptions(ExternalTool tool, boolean isCreateMode)
tool
- the external tool instance to load options into the UI from.
The tool is guaranteed to be of the correct type for the
ExternalToolType which provided this options page.isCreateMode
- flag used to indicate if the options page is
currently being used in a wizard that's in create mode.java.lang.String getHelpTopicID()