|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.view.SubSystemConfigurationAdapter
| Field Summary | |
|---|---|
protected Hashtable |
imageTable
|
| Constructor Summary | |
|---|---|
SubSystemConfigurationAdapter()
|
|
| Method Summary | |
|---|---|
void |
addCommonRemoteActions(ISubSystemConfiguration factory,
SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup,
ISubSystem subsystem)
Returns any framework-supplied actions remote objects that should be contributed to the popup menu for the given selection list. |
void |
configureNewFilterAction(ISubSystemConfiguration factory,
SystemNewFilterAction newFilterAction,
Object callerData)
There is a reasonable amount of processing needed to configure filter wizards. |
ISystemFilter |
createFilterByPrompting(ISubSystemConfiguration factory,
ISystemFilterReference referenceToPromptableFilter,
Shell shell)
Prompt the user to create a new filter as a result of the user expanding a promptable filter. |
void |
customizeChangeFilterPropertyPage(ISubSystemConfiguration factory,
SystemChangeFilterPropertyPage page,
ISystemFilter selectedFilter,
Shell shell)
In addition to a change filter action, we now also support the same functionality via a Properties page for filters. |
void |
customizeFilterStringPropertyPage(ISubSystemConfiguration factory,
SystemFilterStringPropertyPage page,
ISystemFilterString selectedFilterString,
Shell shell)
In addition to a change filter action, we now also support the same functionality via a Properties page for filter strings, in the Team View. |
protected Vector |
getAdditionalFilterActions(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
Overridable entry for child classes to contribute filter actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterPoolActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Overridable entry for child classes to contribute filter pool actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterPoolReferenceActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Overridable entry for child classes to contribute filter pool reference actions beyond the default supplied actions. |
protected Vector |
getAdditionalFilterReferenceActions(ISubSystemConfiguration factory,
ISystemFilterReference selectedFilterRef,
Shell shell)
Overridable entry for child classes to contribute filter reference actions beyond the default supplied actions. |
protected Vector |
getAdditionalSubSystemActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
Overridable entry for child classes to contribute subsystem actions beyond the default supplied actions. |
protected IAction |
getChangeFilterAction(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
Overridable method to return the action for changing an existing filter. |
ISystemFilterPool |
getDefaultSystemFilterPool(ISubSystemConfiguration factory,
ISystemProfile profile)
Given a profile, return the first (hopefully only) default pool for this profile. |
IAction[] |
getFilterActions(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter object. |
IAction[] |
getFilterPoolActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter pool object within a subsystem of this factory. |
IAction[] |
getFilterPoolReferenceActions(ISubSystemConfiguration factory,
ISystemFilterPoolReference selectedPoolRef,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter pool reference object within a subsystem of this factory. |
IAction[] |
getFilterReferenceActions(ISubSystemConfiguration factory,
ISystemFilterReference selectedFilterRef,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a filter reference object within a subsystem of this factory. |
Image |
getGraphicsImage(ISubSystemConfiguration factory)
Return actual graphics Image of this factory. |
Image |
getGraphicsLiveImage(ISubSystemConfiguration factory)
Return actual graphics LiveImage of this factory. |
ImageDescriptor |
getImage(ISubSystemConfiguration factory)
Return image descriptor of this factory. |
ImageDescriptor |
getLiveImage(ISubSystemConfiguration factory)
Return image to use when this susystem is connection. |
ISystemNewConnectionWizardPage[] |
getNewConnectionWizardPages(ISubSystemConfiguration factory,
IWizard wizard)
Optionally return one or more wizard pages to append to the New Wizard connection if the user selects a system type that this subsystem factory supports. |
protected IAction |
getNewFilterPoolFilterAction(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Overridable method to return the single action for creating a new filter in a filter pool. |
protected IAction[] |
getNewFilterPoolFilterActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Overridable method to return the actions for creating a new filter in a filter pool. |
protected SystemFilterPoolWrapperInformation |
getNewFilterWizardPoolWrapperInformation()
Overridable entry for child classes to supply their own flavour of ISystemFilterPoolWrapperInformation for the new filter wizards. |
protected IAction |
getNewNestedFilterAction(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
Overridable method to return the action for creating a new nested filter inside another filter. |
ISystemValidator |
getPasswordValidator(ISubSystemConfiguration configuration)
Return the validator for the password which is prompted for at runtime. |
ISystemValidator |
getPortValidator(ISubSystemConfiguration configuration)
Return the validator for the port. |
PropertyPage |
getPropertyPage(ISubSystem subsystem,
Composite parent)
Return the single property page to show in the tabbed notebook for the for SubSystem property of the parent Connection. |
protected IAction |
getRemoveFilterPoolReferenceAction(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
Overridable method to return the action for removing a filter pool reference. |
IServerLauncherForm |
getServerLauncherForm(ISubSystemConfiguration factory,
Shell shell,
ISystemMessageLine msgLine)
Return the form used in the property page, etc for this server launcher. |
IAction[] |
getSubSystemActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
Returns a list of actions for the popup menu when user right clicks on a subsystem object from this factory. |
protected IAction[] |
getSubSystemNewFilterPoolActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
Overridable entry for child classes to supply their own "new" action(s) for creating a filter pool. |
ISystemSubSystemPropertyPageCoreForm |
getSubSystemPropertyPageCoreFrom(ISubSystemConfiguration factory,
ISystemMessageLine msgLine,
Object caller)
|
protected List |
getSubSystemPropertyPages(ISubSystemConfiguration factory)
Gets the list of property pages applicable for a subsystem associated with this factory |
ImageDescriptor |
getSystemFilterImage(ISystemFilter filter)
Supply the image to be used for filters, within actions. |
ImageDescriptor |
getSystemFilterPoolImage(ISystemFilterPool filterPool)
Supply the image to be used for filter pools, within actions. |
ImageDescriptor |
getSystemFilterPoolManagerImage()
Supply the image to be used for filter pool managers, within actions. |
ImageDescriptor |
getSystemFilterStringImage(ISystemFilterString filterString)
|
ImageDescriptor |
getSystemFilterStringImage(String filterStringString)
|
ISystemValidator |
getUserIdValidator(ISubSystemConfiguration config)
Return the validator for the userId. |
void |
renameSubSystemProfile(ISubSystemConfiguration factory,
String oldProfileName,
String newProfileName)
Called by SystemRegistry's renameSystemProfile method to ensure we update our filter pool manager names (and their folders) Must be called AFTER changing the profile's name!! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Hashtable imageTable
| Constructor Detail |
public SubSystemConfigurationAdapter()
| Method Detail |
public void addCommonRemoteActions(ISubSystemConfiguration factory,
SystemMenuManager menu,
IStructuredSelection selection,
Shell shell,
String menuGroup,
ISubSystem subsystem)
No need to override.
addCommonRemoteActions in interface ISubSystemConfigurationAdaptermenu - The menu to contribute actions toselection - The window's current selection.shell - of viewer calling this. Most dialogs require a shell.menuGroup - recommended menu group to add actions to. If added to another group, you must be sure to create that group first.subsystem - the subsystem of the selection
public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(ISubSystemConfiguration factory,
IWizard wizard)
Some details:
#createSubSystem(org.eclipse.rse.model.IHost,boolean, ISystemNewConnectionWizardPage[]) method to create the
your subsystem for the connection. The same pages you return here are passed back to you so you can
interrogate them for the user-entered data and use it when creating the default subsystem instance.
AbstractSystemNewConnectionWizardPage for your wizard page class.
getNewConnectionWizardPages in interface ISubSystemConfigurationAdapter
public ISystemSubSystemPropertyPageCoreForm getSubSystemPropertyPageCoreFrom(ISubSystemConfiguration factory,
ISystemMessageLine msgLine,
Object caller)
getSubSystemPropertyPageCoreFrom in interface ISubSystemConfigurationAdapterprotected List getSubSystemPropertyPages(ISubSystemConfiguration factory)
public ImageDescriptor getImage(ISubSystemConfiguration factory)
getImage in interface ISubSystemConfigurationAdapterpublic Image getGraphicsImage(ISubSystemConfiguration factory)
getGraphicsImage in interface ISubSystemConfigurationAdapterpublic ImageDescriptor getLiveImage(ISubSystemConfiguration factory)
getLiveImage in interface ISubSystemConfigurationAdapterpublic Image getGraphicsLiveImage(ISubSystemConfiguration factory)
getGraphicsLiveImage in interface ISubSystemConfigurationAdapter
public IAction[] getSubSystemActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
If you wish to support more actions, override getAdditionalSubSystemActions to return a Vector of IAction objects.
getSubSystemActions in interface ISubSystemConfigurationAdapterselectedSubSystem - the currently selected subsystemshell - The Shell of the view where this action was launched from
#getSubSystemNewFilterPoolActions(ISubSystem, Shell),
#getAdditionalSubSystemActions(ISubSystem, Shell)
public void configureNewFilterAction(ISubSystemConfiguration factory,
SystemNewFilterAction newFilterAction,
Object callerData)
The processing we do here is to specify the filter pools to prompt the user for, in the second page of the New Filter wizards.
This method is from the ISystemNewFilterActionConfigurator interface
configureNewFilterAction in interface ISubSystemConfigurationAdapter
public ISystemFilterPool getDefaultSystemFilterPool(ISubSystemConfiguration factory,
ISystemProfile profile)
protected SystemFilterPoolWrapperInformation getNewFilterWizardPoolWrapperInformation()
protected IAction[] getSubSystemNewFilterPoolActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
selectedSubSystem - the currently selected subsystemshell - The Shell of the view where this action was launched from
protected Vector getAdditionalSubSystemActions(ISubSystemConfiguration factory,
ISubSystem selectedSubSystem,
Shell shell)
By default, returns null.
#getSubSystemActions(ISubSystem,Shell)public ImageDescriptor getSystemFilterPoolManagerImage()
getSystemFilterPoolManagerImage in interface ISubSystemConfigurationAdapterpublic ImageDescriptor getSystemFilterPoolImage(ISystemFilterPool filterPool)
getSystemFilterPoolImage in interface ISubSystemConfigurationAdapterpublic ImageDescriptor getSystemFilterImage(ISystemFilter filter)
getSystemFilterImage in interface ISubSystemConfigurationAdapterpublic ImageDescriptor getSystemFilterStringImage(ISystemFilterString filterString)
getSystemFilterStringImage in interface ISubSystemConfigurationAdapterpublic ImageDescriptor getSystemFilterStringImage(String filterStringString)
getSystemFilterStringImage in interface ISubSystemConfigurationAdapter
public IAction[] getFilterPoolActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for
creating a new filter. In this case, override getNewFilterAction()
To add additional actions, override #getAdditionalFilterPoolActions(ISystemFilterPool selectedPool, Shell shell).
getFilterPoolActions in interface ISubSystemConfigurationAdapterselectedPool - the currently selected poolshell - parent shell of viewer where the popup menu is being constructed
protected Vector getAdditionalFilterPoolActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
By default, this returns null.
shell - parent shell of viewer where the popup menu is being constructed
#getFilterPoolActions(ISystemFilterPool,Shell)
protected IAction[] getNewFilterPoolFilterActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
#getNewFilterPoolFilterAction(ISystemFilterPool, Shell).
If you have multiple actions for creating new filters, override this.
If you have only a single action for creating new filters, override getNewFilterPoolFilterAction (without the 's').
shell - parent shell of viewer where the popup menu is being constructed
protected IAction getNewFilterPoolFilterAction(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
If you have multiple actions for creating new filters, override getNewFilterPoolFilterActions (note the 's').
If you have only a single action for creating new filters, override this.
shell - parent shell of viewer where the popup menu is being constructed
protected IAction getNewNestedFilterAction(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
shell - parent shell of viewer where the popup menu is being constructed
protected IAction getChangeFilterAction(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
selectedFilter - the currently selected filtershell - parent shell of viewer where the popup menu is being constructed
public void customizeChangeFilterPropertyPage(ISubSystemConfiguration factory,
SystemChangeFilterPropertyPage page,
ISystemFilter selectedFilter,
Shell shell)
By default, this method will call #getChangeFilterAction(ISystemFilter, Shell) to get
your change filter action, and will configure the given page from the dialog created by your
change filter action.
If your filter uses its own Change Filter dialog, versus subclassing or configuring
SystemChangeFilterDialog you will have to override this method
and specify the following information for the supplied page (via its setters):
SystemChangeFilterPropertyPage.setDuplicateFilterStringErrorMessage(org.eclipse.rse.services.clientserver.messages.SystemMessage)
SystemChangeFilterPropertyPage.setFilterStringEditPane(org.eclipse.rse.ui.filters.SystemFilterStringEditPane)
SystemChangeFilterPropertyPage.setFilterStringValidator(org.eclipse.rse.ui.validators.ISystemValidator)
SystemChangeFilterPropertyPage.setListLabel(String, String)
SystemChangeFilterPropertyPage.setParentPoolPromptLabel(String, String)
SystemChangeFilterPropertyPage.setNamePromptLabel(String, String)
SystemChangeFilterPropertyPage.setNewListItemText(String)
SystemChangeFilterPropertyPage.setDuplicateFilterStringErrorMessage(org.eclipse.rse.services.clientserver.messages.SystemMessage)
SystemChangeFilterPropertyPage.setEditable(boolean)
SystemChangeFilterPropertyPage.setSupportsMultipleStrings(boolean)
DialogPage.setDescription(String)
customizeChangeFilterPropertyPage in interface ISubSystemConfigurationAdapter
public void customizeFilterStringPropertyPage(ISubSystemConfiguration factory,
SystemFilterStringPropertyPage page,
ISystemFilterString selectedFilterString,
Shell shell)
By default, this method will call #getChangeFilterAction(ISystemFilter, Shell) to get
your change filter action, and will configure the given page from the dialog created by your
change filter action.
If your filter uses its own Change Filter dialog, versus subclassing or configuring
SystemChangeFilterDialog you will have to
override this method and specify the following information for the supplied page (via its setters):
SystemFilterStringPropertyPage.setDuplicateFilterStringErrorMessage(org.eclipse.rse.services.clientserver.messages.SystemMessage)
SystemFilterStringPropertyPage.setFilterStringEditPane(org.eclipse.rse.ui.filters.SystemFilterStringEditPane)
SystemFilterStringPropertyPage.setFilterStringValidator(org.eclipse.rse.ui.validators.ISystemValidator)
SystemFilterStringPropertyPage.setDuplicateFilterStringErrorMessage(org.eclipse.rse.services.clientserver.messages.SystemMessage)
SystemFilterStringPropertyPage.setEditable(boolean)
DialogPage.setDescription(String)
customizeFilterStringPropertyPage in interface ISubSystemConfigurationAdapter
public IAction[] getFilterPoolReferenceActions(ISubSystemConfiguration factory,
ISystemFilterPoolReference selectedPoolRef,
Shell shell)
getFilterPoolReferenceActions in interface ISubSystemConfigurationAdapterselectedPoolRef - the currently selected pool referenceshell - parent shell of viewer where the popup menu is being constructed
protected Vector getAdditionalFilterPoolReferenceActions(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
By default, this returns null.
shell - parent shell of viewer where the popup menu is being constructed
#getFilterPoolReferenceActions(ISystemFilterPoolReference,Shell)
protected IAction getRemoveFilterPoolReferenceAction(ISubSystemConfiguration factory,
ISystemFilterPool selectedPool,
Shell shell)
shell - parent shell of viewer where the popup menu is being constructed
public ISystemFilter createFilterByPrompting(ISubSystemConfiguration factory,
ISystemFilterReference referenceToPromptableFilter,
Shell shell)
throws Exception
This base implementation prompts using the generic filter prompt. You should override this but copy this code to use as a base/example how to do this.
createFilterByPrompting in interface ISubSystemConfigurationAdapterException
public IAction[] getFilterActions(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
Only supported and used by subsystems that support filters.
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for creating a new nested filter. In this case, override getNewFilterAction()
getFilterActions in interface ISubSystemConfigurationAdapter
protected Vector getAdditionalFilterActions(ISubSystemConfiguration factory,
ISystemFilter selectedFilter,
Shell shell)
By default, this returns null.
#getFilterActions(ISystemFilter,Shell)
public IAction[] getFilterReferenceActions(ISubSystemConfiguration factory,
ISystemFilterReference selectedFilterRef,
Shell shell)
YOU DO NOT NEED TO OVERRIDE THIS METHOD.
Most actions are handled in this base, except if you have your own action for
creating a new filter. In this case, override getNewFilterAction()
To add additional actions, override #getAdditionalFilterReferenceActions(ISystemFilterReference, Shell).
getFilterReferenceActions in interface ISubSystemConfigurationAdapterselectedFilterRef - the currently selected filter referenceshell - parent shell of viewer where the popup menu is being constructed
protected Vector getAdditionalFilterReferenceActions(ISubSystemConfiguration factory,
ISystemFilterReference selectedFilterRef,
Shell shell)
By default, this returns null.
selectedFilterRef - the currently selected filter referenceshell - parent shell of viewer where the popup menu is being constructed
public IServerLauncherForm getServerLauncherForm(ISubSystemConfiguration factory,
Shell shell,
ISystemMessageLine msgLine)
#supportsServerLaunchProperties() returns true.
We return org.eclipse.rse.ui.widgets.ServerLauncherForm.
Override if appropriate.
getServerLauncherForm in interface ISubSystemConfigurationAdapter
public void renameSubSystemProfile(ISubSystemConfiguration factory,
String oldProfileName,
String newProfileName)
Must be called AFTER changing the profile's name!!
renameSubSystemProfile in interface ISubSystemConfigurationAdapterpublic ISystemValidator getPasswordValidator(ISubSystemConfiguration configuration)
getPasswordValidator in interface ISubSystemConfigurationAdapterpublic ISystemValidator getPortValidator(ISubSystemConfiguration configuration)
getPortValidator in interface ISubSystemConfigurationAdapter
public PropertyPage getPropertyPage(ISubSystem subsystem,
Composite parent)
ISubSystemConfigurationAdapter
getPropertyPage in interface ISubSystemConfigurationAdapterpublic ISystemValidator getUserIdValidator(ISubSystemConfiguration config)
ISubSystemConfigurationAdapterThis must be castable to ICellEditorValidator for the property sheet support.
getUserIdValidator in interface ISubSystemConfigurationAdapter
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||