public class PreferencesExtension extends Extension
Extension that provides support for visual application configuration through a Preferences dialog where the user can specify its own settings for general purpose aspects.
Adding new preference pages is made through ExtensionPoints by invoking this.extensionPoints.add("AplicationPreferences","YourIPreferencesClassName", yourIPreferencesPage); and then call DlgPreferences.refreshExtensionPoints();
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATA_FOLDER_PROPERTY_NAME |
static java.lang.String |
PROJECTS_FOLDER_PROPERTY_NAME |
static java.lang.String |
SYMBOL_LIBRARY_FOLDER_PROPERTY_NAME |
static java.lang.String |
TEMPLATES_FOLDER_PROPERTY_NAME |
| Constructor and Description |
|---|
PreferencesExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPreferencesPage(IPreference pp) |
void |
execute(java.lang.String actionCommand)
This method is executed when the user clicks on any of the
controls associated with this extension (menus, tools, etc).
|
void |
initialize()
Extension's initialization code should be here.
|
boolean |
isEnabled()
This method is invoked by Andami to check whether the extension
(and its associated controls) is enabled or disabled.
|
boolean |
isVisible()
This method is invoked by Andami to check whether the extension
(and its associated controls) is visible or hidden.
|
void |
postInitialize()
Extension's post-initialization code should be here.
|
public static final java.lang.String PROJECTS_FOLDER_PROPERTY_NAME
public static final java.lang.String DATA_FOLDER_PROPERTY_NAME
public static final java.lang.String TEMPLATES_FOLDER_PROPERTY_NAME
public static final java.lang.String SYMBOL_LIBRARY_FOLDER_PROPERTY_NAME
public void initialize()
IExtensionpublic void execute(java.lang.String actionCommand)
IExtensionactionCommand - An String specifying the action to
execute. This is useful when there are different
controls associated with the same extension.public boolean isEnabled()
IExtensionpublic boolean isVisible()
IExtensionpublic void addPreferencesPage(IPreference pp)
public void postInitialize()
IExtensioninitialize()
has been called for ALL the extensions.postInitialize in interface IExtensionpostInitialize in class Extension