|
RSE Release 2.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
public abstract class 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:
SubSystemConfiguration.createSubSystemInternal(org.eclipse.rse.core.model.IHost), to instantiate your subsystem class.
For additional customization of the subsystem, you may supply a SubSystemConfigurationAdapter,
which allows you to
SubSystemConfigurationAdapter.getNewFilterPoolFilterAction(ISubSystemConfiguration, ISystemFilterPool, org.eclipse.swt.widgets.Shell), and
SubSystemConfigurationAdapter.getChangeFilterAction(ISubSystemConfiguration, ISystemFilter, org.eclipse.swt.widgets.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 |
|---|
currentlyProcessingConnection, currentlyProcessingSubSystemConfiguration, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, subSystemList |
| Fields inherited from interface org.eclipse.rse.core.subsystems.ISubSystemConfiguration |
|---|
FORCE_INTO_MEMORY, LAZILY |
| Fields inherited from interface org.eclipse.rse.core.model.IRSEPersistableContainer |
|---|
NO_CHILDREN |
| Constructor Summary | |
|---|---|
protected |
ServiceSubSystemConfiguration()
|
| Method Summary | |
|---|---|
String |
getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
Optionally overridable method affecting the visual display of objects within subsystems created by this subsystem configuration. |
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.model.IRSEPersistableContainer |
|---|
getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, 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 SubSystemConfigurationtrue to indicate that Filters are supported by default.public boolean supportsNestedFilters()
supportsNestedFilters in interface ISubSystemConfigurationsupportsNestedFilters in class SubSystemConfigurationpublic boolean supportsUserDefinedActions()
supportsUserDefinedActions in interface ISubSystemConfigurationsupportsUserDefinedActions in class SubSystemConfigurationpublic 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 parameter is in case your subsystem configuration 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 after 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 subsystem configuration object, including subclasses. Null on a clone operation.SubSystemConfigurationAdapter.getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
Returns a default string, override if appropriate.
getTranslatedFilterTypeProperty in interface ISubSystemConfigurationgetTranslatedFilterTypeProperty in class SubSystemConfiguration
|
RSE Release 2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||