|
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.core.subsystems.SubSystemConfiguration
org.eclipse.rse.core.servicesubsystem.ServiceSubSystemConfiguration
This class is to be used by subsystem-providers that do not desire to use MOF/EMF. It is
therefore recommended starting base class for subsystem providers.
To use this class, simply subclass it and override the appropriate methods in it, such as:
#createSubSystemInternal(org.eclipse.rse.model.IHost), to instantiate your subsystem class.
For additional customization of the subsystem, you may supply a SubSystemConfigurationAdapter,
which allows you to
SubSystemConfigurationAdapter.getAdditionalSubSystemActions(ISubSystemConfiguration, ISubSystem, Shell),
SubSystemConfigurationAdapter.getNewFilterPoolFilterAction(ISubSystemConfiguration, ISystemFilterPool, Shell), and
SubSystemConfigurationAdapter.getChangeFilterAction(ISubSystemConfiguration, ISystemFilter,Shell).
This class is typically used together with:
ServiceSubSystem for the subsystem
AbstractConnectorService for the connector service
AbstractConnectorServiceManager for the connector service manager
AbstractResource for the individual remote resources
In general, for what methods to override, only worry about the non-generated methods in
this class, and ignore the hundreds in SubSystemConfiguration
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.core.subsystems.SubSystemConfiguration |
|---|
_isDirty, currentlyProcessingConnection, currentlyProcessingSubSystemConfiguration, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, imageTable, subSystemList |
| Fields inherited from interface org.eclipse.rse.core.subsystems.ISubSystemConfiguration |
|---|
FORCE_INTO_MEMORY, LAZILY |
| Constructor Summary | |
|---|---|
protected |
ServiceSubSystemConfiguration()
|
| Method Summary | |
|---|---|
protected ISystemFilterPool |
createDefaultFilterPool(ISystemFilterPoolManager mgr)
Overridable lifecycle method. |
protected Vector |
getAdditionalFilterActions(ISystemFilter selectedFilter,
Shell shell)
Overridable method for getting Remote System view popup menu actions. |
protected Vector |
getAdditionalSubSystemActions(ISubSystem selectedSubSystem,
Shell shell)
Overridable method for getting Remote System view popup menu actions. |
String |
getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
Optionally overridable method affecting the visual display of objects within subsystems created by this factory. |
protected void |
initializeSubSystem(ISubSystem subsys,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Overridable lifecycle method. |
boolean |
isCaseSensitive()
Overridable configuration method. |
boolean |
isPortEditable()
Overridable configuration method. |
boolean |
supportsDuplicateFilterStrings()
Overridable configuration method. |
boolean |
supportsFileTypes()
Overridable configuration method. |
boolean |
supportsFilters()
Overridable configuration method. |
boolean |
supportsNestedFilters()
Overridable configuration method. |
boolean |
supportsSubSystemConnect()
Overridable configuration method. |
boolean |
supportsUserDefinedActions()
COverridable configuration method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration |
|---|
getConnectorService, getService, getServiceImplType, getServiceType, setConnectorService |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Methods inherited from interface org.eclipse.rse.core.persistance.IRSEPersistableContainer |
|---|
isDirty, setDirty, setWasRestored, wasRestored |
| Constructor Detail |
protected ServiceSubSystemConfiguration()
| Method Detail |
public boolean supportsSubSystemConnect()
supportsSubSystemConnect in interface ISubSystemConfigurationsupportsSubSystemConnect in class SubSystemConfigurationpublic boolean isPortEditable()
isPortEditable in interface ISubSystemConfigurationisPortEditable in class SubSystemConfigurationpublic boolean supportsFilters()
supportsFilters in interface ISubSystemConfigurationsupportsFilters in class SubSystemConfigurationpublic boolean supportsNestedFilters()
supportsNestedFilters in interface ISubSystemConfigurationsupportsNestedFilters in class SubSystemConfigurationpublic boolean supportsUserDefinedActions()
supportsUserDefinedActions in interface ISubSystemConfigurationsupportsUserDefinedActions in class SubSystemConfigurationSubSystemConfiguration.supportsUserDefinedActions(ISelection),
#getActionSubSystem(ISubSystem),
#createActionSubSystem()public boolean supportsFileTypes()
supportsFileTypes in interface ISubSystemConfigurationsupportsFileTypes in class SubSystemConfigurationpublic boolean isCaseSensitive()
isCaseSensitive in interface ISubSystemConfigurationisCaseSensitive in class SubSystemConfigurationpublic boolean supportsDuplicateFilterStrings()
supportsDuplicateFilterStrings in class SubSystemConfigurationprotected void initializeSubSystem(ISubSystem subsys, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
The reason for the connect wizard pages parm is in case your factory contributes a page to that wizard, whose values are needed to set the subsystem's initial state. For example, you might decide to add a page to the connection wizard to prompt for a JDBC Driver name. If so, when this method is called at the time a new connection is created apres the wizard, your page will have the user's value. You can thus use it here to initialize that subsystem property. Be use to use instanceof to find your particular page.
If you override this, PLEASE CALL SUPER TO DO DEFAULT INITIALIZATION!
initializeSubSystem in class SubSystemConfigurationsubsys - - The subsystem that was created via createSubSystemInternalyourNewConnectionWizardPages - - The wizard pages you supplied to the New Connection wizard, via the
SubSystemConfigurationAdapter.getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
method or null if you didn't override this method.
Note there may be more pages than you originally supplied, as you are passed all pages contributed
by this factory object, including subclasses. Null on a clone operation.SubSystemConfigurationAdapter.getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)protected ISystemFilterPool createDefaultFilterPool(ISystemFilterPoolManager mgr)
By default we create an empty filter pool with a generated name, and no pre-defined filters. If you don't want that behaviour, override this method and do one of the following:
createDefaultFilterPool in class SubSystemConfigurationprotected Vector getAdditionalSubSystemActions(ISubSystem selectedSubSystem, Shell shell)
SystemView when constructing
the popup menu for a selected subsystem.
For contributing popup menu actions to subsystem objects, beyond the default actions already supplied by our parent class. This method is only called with subsystems created by this subsystem factory.
Returns null by default. Override to show your own popup menu actions for your own subsystems.
SystemBaseAction or
SystemBaseDialogAction or
SystemBaseWizardAction or
SystemBaseSubMenuAction.public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
Returns a default string, override if appropriate.
getTranslatedFilterTypeProperty in interface ISubSystemConfigurationgetTranslatedFilterTypeProperty in class SubSystemConfigurationprotected Vector getAdditionalFilterActions(ISystemFilter selectedFilter, Shell shell)
SystemView
when constructing the popup menu for a selected filter.
SystemBaseAction or
SystemBaseDialogAction or
SystemBaseWizardAction or
SystemBaseSubMenuAction.org.eclipse.rse.core.subsystems.SubSystemConfiguration#getFilterActions(ISystemFilter,Shell)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||