|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
com.ibm.etools.systems.dftsubsystem.impl.DefaultSubSystemFactoryImpl
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl |
---|
compileManager, currentlyProcessingConnection, currentlyProcessingSubSystemFactory, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, imageTable, mofInitSS, mofInitSubclassSS, ssfactory, sspkg, subSystemList, udas |
Fields inherited from interface com.ibm.etools.systems.subsystems.SubSystemFactory |
---|
FORCE_INTO_MEMORY, LAZILY |
Fields inherited from interface com.ibm.etools.systems.subsystems.ISubSystemConstants |
---|
Copyright, DEFAULT_PORT, SAVEFILE_FILTERS, SAVEFILE_SUBSYSTEMS |
Constructor Summary | |
---|---|
protected |
DefaultSubSystemFactoryImpl()
Constructor. |
Method Summary | |
---|---|
protected SystemFilterPool |
createDefaultFilterPool(SystemFilterPoolManager mgr)
Overridable lifecycle method. |
protected SubSystem |
createSubSystemInternal(SystemConnection conn)
Lifecycle method you typically override. |
Object |
eGet(EStructuralFeature eFeature,
boolean resolve)
|
NotificationChain |
eInverseRemove(InternalEObject otherEnd,
int featureID,
Class baseClass,
NotificationChain msgs)
|
boolean |
eIsSet(EStructuralFeature eFeature)
|
void |
eSet(EStructuralFeature eFeature,
Object newValue)
|
protected EClass |
eStaticClass()
|
void |
eUnset(EStructuralFeature eFeature)
|
protected Vector |
getAdditionalFilterActions(SystemFilter selectedFilter,
Shell shell)
Overridable method for getting Remote System view popup menu actions. |
protected Vector |
getAdditionalSubSystemActions(SubSystem selectedSubSystem,
Shell shell)
Overridable method for getting Remote System view popup menu actions. |
protected IAction |
getChangeFilterAction(SystemFilter selectedFilter,
Shell shell)
Overridable method for getting the Change Filter popup menu action. |
protected IAction |
getNewFilterPoolFilterAction(SystemFilterPool selectedPool,
Shell shell)
Overridable method for getting the New Filter popup menu action. |
ImageDescriptor |
getSystemFilterImage(SystemFilter filter)
Optionally overridable method affecting the visual display of objects within subsystems created by this factory. |
ImageDescriptor |
getSystemFilterPoolImage(SystemFilterPool filterPool)
Optionally overridable method affecting the visual display of objects within subsystems created by this factory. |
String |
getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
Optionally overridable method affecting the visual display of objects within subsystems created by this factory. |
protected void |
initializeSubSystem(SubSystem subsys,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Overridable lifecycle method. |
protected void |
initSubSystemMOF()
Private 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 |
Field Detail |
public static final String copyright
Constructor Detail |
protected DefaultSubSystemFactoryImpl()
Method Detail |
protected EClass eStaticClass()
eStaticClass
in class SubSystemFactoryImpl
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
eInverseRemove
in class SubSystemFactoryImpl
public Object eGet(EStructuralFeature eFeature, boolean resolve)
eGet
in class SubSystemFactoryImpl
public void eSet(EStructuralFeature eFeature, Object newValue)
eSet
in class SubSystemFactoryImpl
public void eUnset(EStructuralFeature eFeature)
eUnset
in class SubSystemFactoryImpl
public boolean eIsSet(EStructuralFeature eFeature)
eIsSet
in class SubSystemFactoryImpl
public boolean supportsSubSystemConnect()
supportsSubSystemConnect
in interface SubSystemFactory
supportsSubSystemConnect
in class SubSystemFactoryImpl
public boolean isPortEditable()
isPortEditable
in interface SubSystemFactory
isPortEditable
in class SubSystemFactoryImpl
public boolean supportsFilters()
supportsFilters
in interface SubSystemFactory
supportsFilters
in class SubSystemFactoryImpl
public boolean supportsNestedFilters()
supportsNestedFilters
in interface SubSystemFactory
supportsNestedFilters
in class SubSystemFactoryImpl
public boolean supportsUserDefinedActions()
supportsUserDefinedActions
in interface SubSystemFactory
supportsUserDefinedActions
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsUserDefinedActions(ISelection)
,
SubSystemFactoryImpl.getActionSubSystem(SubSystem)
,
SubSystemFactoryImpl.createActionSubSystem()
public boolean supportsFileTypes()
supportsFileTypes
in interface SubSystemFactory
supportsFileTypes
in class SubSystemFactoryImpl
public boolean isCaseSensitive()
isCaseSensitive
in interface SubSystemFactory
isCaseSensitive
in class SubSystemFactoryImpl
public boolean supportsDuplicateFilterStrings()
supportsDuplicateFilterStrings
in class SubSystemFactoryImpl
protected SubSystem createSubSystemInternal(SystemConnection conn)
If you override DefaultSubSystem, you must override this method and instantiate and return an instance of your DefaultSubSystem override
createSubSystemInternal
in class SubSystemFactoryImpl
conn
- The connection object this is being created for. Only passed for your interest.protected void initializeSubSystem(SubSystem 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 SubSystemFactoryImpl
subsys
- - The subsystem that was created via createSubSystemInternalyourNewConnectionWizardPages
- - The wizard pages you supplied to the New Connection wizard, via the
#getNewConnectionWizardPages(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.com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl#getNewConnectionWizardPages(org.eclipse.jface.wizard.IWizard)
protected SystemFilterPool createDefaultFilterPool(SystemFilterPoolManager 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 SubSystemFactoryImpl
protected Vector getAdditionalSubSystemActions(SubSystem 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.
getAdditionalSubSystemActions
in class SubSystemFactoryImpl
SystemBaseAction
or
SystemBaseDialogAction
or
SystemBaseWizardAction
or
SystemBaseSubMenuAction
.SubSystemFactoryImpl.getSubSystemActions(SubSystem,Shell)
protected IAction getNewFilterPoolFilterAction(SystemFilterPool selectedPool, Shell shell)
SystemView
when constructing the cascading "New" menu for a selected subsystem or filter pool,
depending on the user's preference setting for showing filter pools.
By default returns new SystemNewFilterAction
.
Override if you want your own wizard. Note, this is usually accomplished by creating your
own wizard class, and subclassing the SystemNewFilterAction to return display own wizard.
Note: if your subsystems allow the user to create different types of filters, then
override getNewFilterPoolFilterActions
to return multiple actions.
getNewFilterPoolFilterAction
in class SubSystemFactoryImpl
shell
- - parent shell of viewer where the popup menu is being constructedprotected IAction getChangeFilterAction(SystemFilter selectedFilter, Shell shell)
SystemView
when constructing
the popup menu for a selected filter. This method is only called for filters within subsystems
created by this subsystem factory.
By default returns new SystemChangeFilterAction
.
Override if you want your own dialog. Note, this is usually accomplished by creating your
own dialog class, and subclassing the SystemChangeFilterAction to display your own dialog.
getChangeFilterAction
in class SubSystemFactoryImpl
selectedFilter
- the currently selected filtershell
- parent shell of viewer where the popup menu is being constructed
SystemBaseDialogAction
or
SystemChangeFilterAction
.public String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
Returns a default string, override if appropriate.
getTranslatedFilterTypeProperty
in interface SubSystemFactory
getTranslatedFilterTypeProperty
in class SubSystemFactoryImpl
protected Vector getAdditionalFilterActions(SystemFilter selectedFilter, Shell shell)
SystemView
when constructing the popup menu for a selected filter.
getAdditionalFilterActions
in class SubSystemFactoryImpl
SystemBaseAction
or
SystemBaseDialogAction
or
SystemBaseWizardAction
or
SystemBaseSubMenuAction
.SubSystemFactoryImpl.getFilterActions(SystemFilter,Shell)
public ImageDescriptor getSystemFilterPoolImage(SystemFilterPool filterPool)
Returns a default image. Override if appropriate.
getSystemFilterPoolImage
in interface SystemFilterPoolManagerProvider
getSystemFilterPoolImage
in class SubSystemFactoryImpl
public ImageDescriptor getSystemFilterImage(SystemFilter filter)
Returns a default image. Override if appropriate.
getSystemFilterImage
in interface SystemFilterPoolManagerProvider
getSystemFilterImage
in class SubSystemFactoryImpl
protected void initSubSystemMOF()
initSubSystemMOF
in class SubSystemFactoryImpl
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |