|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.jface.action.Action
com.groovemanager.actions.ConfigAction
This subclass of Action is used for showing a PreferenceDialog with the selected predefined PreferencePages. The key names given for the PreferencePages to show must be known by the used ConfigManager.
| Field Summary | |
|---|---|
protected ConfigManager |
confManager
The ConfigManager to be used |
protected java.lang.String[] |
pages
The key names of the selected pages that should be displayed |
protected org.eclipse.swt.widgets.Shell |
parent
The parent Shell |
| Fields inherited from interface org.eclipse.jface.action.IAction |
|---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, IMAGE, TEXT, TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
ConfigAction(java.lang.String name)
Constructs a new ConfigAction with the given name using the default ConfigManager and without any PreferencePages. |
|
ConfigAction(java.lang.String name,
ConfigManager manager)
Constructs a new ConfigAction with the given name using the given ConfigManager and without any PreferencePages. |
|
ConfigAction(java.lang.String name,
java.lang.String[] pages)
Constructs a new ConfigAction with the given name using the default ConfigManager with the given PreferencePages |
|
ConfigAction(java.lang.String name,
java.lang.String[] pages,
ConfigManager manager)
Constructs a new ConfigAction with the given name using the given ConfigManager with the given PreferencePages |
|
| Method Summary | |
|---|---|
void |
run()
Open the dialog |
void |
setConfigManager(ConfigManager manager)
Set the ConfigManager to be used by the dialog |
void |
setPages(java.lang.String[] pages)
Set the PreferencePages to display |
void |
setShell(org.eclipse.swt.widgets.Shell shell)
Set the parent Shell under which the dialog should be opened |
| Methods inherited from class org.eclipse.jface.action.Action |
|---|
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, removeAcceleratorText, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConfigManager confManager
protected java.lang.String[] pages
protected org.eclipse.swt.widgets.Shell parent
| Constructor Detail |
|---|
public ConfigAction(java.lang.String name)
name - The Action´s name
public ConfigAction(java.lang.String name,
ConfigManager manager)
name - The Action´s namemanager - The ConfigManager to be used
public ConfigAction(java.lang.String name,
java.lang.String[] pages)
name - The Action´s namepages - The key names of the pages to be shown in the
PreferenceDialog
public ConfigAction(java.lang.String name,
java.lang.String[] pages,
ConfigManager manager)
name - The Action´s namepages - The key names of the pages to be shown in the
PreferenceDialogmanager - The ConfigManager to be used| Method Detail |
|---|
public void run()
run in interface org.eclipse.jface.action.IActionrun in class org.eclipse.jface.action.ActionIAction.run()public void setConfigManager(ConfigManager manager)
manager - The new ConfigManager to be usedpublic void setPages(java.lang.String[] pages)
pages - The key names of the predefined PreferencePagespublic void setShell(org.eclipse.swt.widgets.Shell shell)
shell - The parent Shell
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||