Remote Systems
v6.4.1

com.ibm.etools.systems.universalfilesubsys.impl
Class UniversalFileSubSystemFactoryImpl

java.lang.Object
  extended byEObjectImpl
      extended bycom.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
          extended bycom.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemFactoryImpl
              extended bycom.ibm.etools.systems.universalfilesubsys.impl.UniversalFileSubSystemFactoryImpl
All Implemented Interfaces:
ISubSystemConstants, ISystemNewFilterActionConfigurator, RemoteFileSubSystemFactory, SubSystemFactory, SystemFilterPoolManagerProvider, UniversalFileSubSystemFactory
Direct Known Subclasses:
UniversalAIXFileSubSystemFactoryImpl, UniversalPowerLinuxFileSubSystemFactoryImpl, UniversalWindowsFileSubSystemFactoryImpl

public class UniversalFileSubSystemFactoryImpl
extends RemoteFileSubSystemFactoryImpl
implements UniversalFileSubSystemFactory

See Also:
Serialized Form

Field Summary
static String copyright
           
protected static UniversalfilesubsysFactory factory
           
protected static boolean initOurMOF
           
protected  String osName
           
protected static UniversalfilesubsysPackage pkg
           
 
Fields inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemFactoryImpl
translatedType, unixStyle
 
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.universalfilesubsys.UniversalFileSubSystemFactory
factoryId
 
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
UniversalFileSubSystemFactoryImpl()
          Default constructor.
 
Method Summary
protected  SystemUDActionSubsystem createActionSubSystem()
          Overridable method to instantiate the SystemUDActionSubsystem.
protected  SystemCompileManager createCompileManager()
          Overridable method to instantiate the SystemCompileManager for this factory.
protected  SubSystem createSubSystemInternal(SystemConnection conn)
          Instantiate and return an instance of OUR subystem.
 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 entry for child classes to contribute filter actions beyond the default supplied actions.
protected  Vector getAdditionalFilterPoolActions(SystemFilterPool selectedPool, Shell shell)
          Overridable entry for child classes to contribute filter pool actions beyond the default supplied actions.
protected  Vector getAdditionalFilterPoolReferenceActions(SystemFilterPool selectedPool, Shell shell)
          Overridable entry for child classes to contribute filter pool reference actions beyond the default supplied actions.
protected  Vector getAdditionalSubSystemActions(SubSystem selectedSubSystem, Shell shell)
          Overridable entry for child classes to contribute subsystem actions beyond the default supplied actions.
protected  IAction getChangeFilterAction(SystemFilter selectedFilter, Shell shell)
          Overridable method to return the action for changing an existing filter.
 ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(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(SystemFilterPool selectedPool, Shell shell)
          Overridable parent method to return the action for creating a new filter inside a filter pool Returns new SystemNewFileFilterAction.
protected  IAction getNewNestedFilterAction(SystemFilter selectedFilter, Shell shell)
          Overridable method to return the action for creating a new nested filter inside another filter.
 ISystemValidator getPortValidator()
          Return the validator for the port.
 String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
          Return the translated string to show in the property sheet for the type property.
protected  void initSubSystemMOF()
          Initialize our mof factory.
 boolean isPortEditable()
          We return true.
 boolean supportsCommands()
          We return false.
 boolean supportsCompileActions()
          Return true if you support compile actions for the remote system objects returned from expansion of subsystems created by this subsystem factory.
 boolean supportsFilters()
          We return true.
 boolean supportsNestedFilters()
          We return false
 boolean supportsProperties()
          We return false.
 boolean supportsServerLaunchProperties()
          Tell us if this subsystem factory supports server launch properties, which allow the user to configure how the server-side code for these subsystems are started.
 boolean supportsSubSystemConnect()
          We return true.
 boolean supportsUserId()
          We return true.
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.RemoteFileSubSystemFactoryImpl
createDefaultFilterPool, getEditorProfileID, getFileFilterStringValidator, getFileNameValidator, getFolderNameValidator, getLineSeparator, getPathSeparator, getPathSeparatorChar, getPathValidator, getSeparator, getSeparatorChar, initializeSubSystem, isCaseSensitive, isFactoryFor, isUnixStyle, providesCustomDropInFilters, recursivelyUpdateIFileProperties, renameSubSystemProfile, setIsUnixStyle, supportsDropInFilters, supportsEnvironmentVariablesPropertyPage, supportsFileTypes, supportsTargets, supportsUserDefinedActions
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
addCommonRemoteActions, addFilterPoolManager, addSubSystem, addUserDefinedActions, changingSystemProfileActiveStatus, cloneSubSystem, configureNewFilterAction, copyFilterPoolManager, copySubSystemData, createEvent, createEvent, createEvent, createFilterByPrompting, createServerLauncher, createSubSystem, customizeChangeFilterPropertyPage, customizeFilterStringPropertyPage, deleteFilterPoolManager, deleteSubSystem, deleteSubSystemsByConnection, deletingSystemProfile, disconnectAllSubSystems, doPostRestoreProcessing, filterEventFilterCreated, filterEventFilterDeleted, filterEventFilterPoolCreated, filterEventFilterPoolDeleted, filterEventFilterPoolRenamed, filterEventFilterPoolsRePositioned, filterEventFilterRenamed, filterEventFiltersRePositioned, filterEventFilterStringCreated, filterEventFilterStringDeleted, filterEventFilterStringsRePositioned, filterEventFilterStringUpdated, filterEventFilterUpdated, fireEvent, fireEvent, fireEvent, fireSubSystemEvent, fireSubSystemEvent, fireSubSystemEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, fireSubSystemFilterEvent, getActionSubSystem, getActiveFilterPoolManagers, getAdditionalFilterReferenceActions, getCategory, getCompileManager, getConnectingMessage, getDefaultFilterPoolName, getDefaultSystemFilterPool, getDefaultSystemFilterPool, getDisconnectingMessage, getFilterActions, getFilterPool, getFilterPoolActions, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManager, getFilterPoolManagerList, getFilterPoolManagerName, getFilterPoolManagers, getFilterPoolReferenceActions, getFilterPools, getFilterReferenceActions, getGraphicsImage, getGraphicsLiveImage, getId, getImage, getLiveImage, getMOFHelpers, getName, getNewFilterPoolFilterActions, getNewFilterWizardPoolWrapperInformation, getPasswordValidator, getReferencableSystemFilterPoolManagers, getRemoveFilterPoolReferenceAction, getServerLauncherForm, getSSMOFfactory, getSubSystemActions, getSubSystemFactoryProxy, getSubSystemList, getSubSystemNewFilterPoolActions, getSubSystemPropertyPageCoreFrom, getSubSystemPropertyPages, getSubSystems, getSubSystems, getSubSystems, getSubSystems, getSubSystemsFolder, getSystemFilterImage, getSystemFilterPoolForBrokenReference, getSystemFilterPoolImage, getSystemFilterPoolManager, getSystemFilterPoolManagerImage, getSystemFilterPoolManagers, getSystemFilterStringImage, getSystemFilterStringImage, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfile, getSystemProfileName, getSystemTypes, getTypeFiltersFolder, getUserIdValidator, getVendor, handleException, initMOF, internalGetSubSystemName, internalGetSubSystems, invalidateFilterCache, invalidateSubSystemCache, isSubSystemsDeletable, isUserPrivateProfile, needsUpdate, preTestRenameSubSystemProfile, removeSubSystem, renameFilterPoolManager, renameSubSystem, renameSubSystemProfile, renameSubSystemsByConnection, reset, restore, restoreAllFilterPoolManagersForAllProfiles, restoreSubSystem, restoreSubSystems, save, saveFilterPools, saveFilterPools, saveSubSystem, saveSubSystems, saveSubSystems, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemFactoryProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, subSystemsHaveBeenRestored, supportsDuplicateFilterStrings, supportsFilterCaching, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsQuickFilters, supportsServerLaunchType, supportsUserDefinedActions, testForActiveReferences, toString, updateSubSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.systems.subsystems.RemoteFileSubSystemFactory
getEditorProfileID, getFileFilterStringValidator, getFileNameValidator, getFolderNameValidator, getLineSeparator, getPathSeparator, getPathSeparatorChar, getPathValidator, getSeparator, getSeparatorChar, isCaseSensitive, isUnixStyle, supportsEnvironmentVariablesPropertyPage
 
Methods inherited from interface com.ibm.etools.systems.subsystems.SubSystemFactory
addCommonRemoteActions, changingSystemProfileActiveStatus, cloneSubSystem, copyFilterPoolManager, createFilterByPrompting, createSubSystem, customizeChangeFilterPropertyPage, customizeFilterStringPropertyPage, deleteSubSystem, deleteSubSystemsByConnection, deletingSystemProfile, disconnectAllSubSystems, getActionSubSystem, getCategory, getCompileManager, getDefaultSystemFilterPool, getFilterActions, getFilterPoolActions, getFilterPoolManager, getFilterPoolManagerList, getFilterPoolReferenceActions, getFilterReferenceActions, getGraphicsImage, getGraphicsLiveImage, getId, getImage, getLiveImage, getName, getPasswordValidator, getServerLauncherForm, getSubSystemActions, getSubSystemFactoryProxy, getSubSystemList, getSubSystemPropertyPageCoreFrom, getSubSystems, getSubSystems, getSystemProfile, getSystemTypes, getUserIdValidator, getVendor, isSubSystemsDeletable, preTestRenameSubSystemProfile, providesCustomDropInFilters, renameSubSystem, renameSubSystemProfile, renameSubSystemProfile, renameSubSystemsByConnection, reset, save, saveSubSystem, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemFactoryProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, supportsDropInFilters, supportsFileTypes, supportsFilterCaching, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsQuickFilters, supportsServerLaunchType, supportsTargets, supportsUserDefinedActions, supportsUserDefinedActions, testForActiveReferences, updateSubSystem
 
Methods inherited from interface com.ibm.etools.systems.filters.SystemFilterPoolManagerProvider
filterEventFilterCreated, filterEventFilterDeleted, filterEventFilterPoolCreated, filterEventFilterPoolDeleted, filterEventFilterPoolRenamed, filterEventFilterPoolsRePositioned, filterEventFilterRenamed, filterEventFiltersRePositioned, filterEventFilterStringCreated, filterEventFilterStringDeleted, filterEventFilterStringsRePositioned, filterEventFilterStringUpdated, filterEventFilterUpdated, getReferencableSystemFilterPoolManagers, getSystemFilterImage, getSystemFilterPoolForBrokenReference, getSystemFilterPoolImage, getSystemFilterPoolManager, getSystemFilterPoolManagerImage, getSystemFilterPoolManagers, getSystemFilterStringImage, getSystemFilterStringImage
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

osName

protected String osName

initOurMOF

protected static boolean initOurMOF

factory

protected static UniversalfilesubsysFactory factory

pkg

protected static UniversalfilesubsysPackage pkg
Constructor Detail

UniversalFileSubSystemFactoryImpl

public UniversalFileSubSystemFactoryImpl()
Default constructor. Called by EMF. Don't instantiate directly, or subclass directly.

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class RemoteFileSubSystemFactoryImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Overrides:
eInverseRemove in class RemoteFileSubSystemFactoryImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class RemoteFileSubSystemFactoryImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class RemoteFileSubSystemFactoryImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class RemoteFileSubSystemFactoryImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class RemoteFileSubSystemFactoryImpl

supportsUserId

public boolean supportsUserId()
We return true.

Specified by:
supportsUserId in interface SubSystemFactory
Overrides:
supportsUserId in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsUserId()

supportsSubSystemConnect

public boolean supportsSubSystemConnect()
We return true.

Specified by:
supportsSubSystemConnect in interface SubSystemFactory
Overrides:
supportsSubSystemConnect in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsSubSystemConnect()

isPortEditable

public boolean isPortEditable()
We return true.

Specified by:
isPortEditable in interface SubSystemFactory
Overrides:
isPortEditable in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.isPortEditable()

supportsCommands

public boolean supportsCommands()
We return false.

Specified by:
supportsCommands in interface SubSystemFactory
Overrides:
supportsCommands in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsCommands()

supportsProperties

public boolean supportsProperties()
We return false.

Specified by:
supportsProperties in interface SubSystemFactory
Overrides:
supportsProperties in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsProperties()

supportsFilters

public boolean supportsFilters()
We return true.

Specified by:
supportsFilters in interface SubSystemFactory
Overrides:
supportsFilters in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsFilters()

supportsNestedFilters

public boolean supportsNestedFilters()
We return false

Specified by:
supportsNestedFilters in interface SubSystemFactory
Overrides:
supportsNestedFilters in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsNestedFilters()

supportsCompileActions

public boolean supportsCompileActions()
Return true if you support compile actions for the remote system objects returned from expansion of subsystems created by this subsystem factory.

By returning true, user sees a "Work with->Compile Commands..." action item in the popup menu for this subsystem. The action is supplied by the framework, but is populated using overridable methods in this subsystem.

We return true.

Specified by:
supportsCompileActions in interface SubSystemFactory
Overrides:
supportsCompileActions in class RemoteFileSubSystemFactoryImpl

supportsServerLaunchProperties

public boolean supportsServerLaunchProperties()
Tell us if this subsystem factory supports server launch properties, which allow the user to configure how the server-side code for these subsystems are started. There is a Server Launch Setting property page, with a pluggable composite, where users can configure these properties.
We return true.

Specified by:
supportsServerLaunchProperties in interface SubSystemFactory
Overrides:
supportsServerLaunchProperties in class RemoteFileSubSystemFactoryImpl

createActionSubSystem

protected SystemUDActionSubsystem createActionSubSystem()
Overridable method to instantiate the SystemUDActionSubsystem. For support of User Actions.

Overrides:
createActionSubSystem in class RemoteFileSubSystemFactoryImpl

createCompileManager

protected SystemCompileManager createCompileManager()
Overridable method to instantiate the SystemCompileManager for this factory. This is typically your unique subclass of SystemCompileManager. Called once only by getCompileManager (it is only instantiated once).

We return an instance of UniversalCompileManager()

Overrides:
createCompileManager in class SubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsCompileActions(), SubSystemFactoryImpl.getCompileManager()

getNewFilterPoolFilterAction

protected IAction getNewFilterPoolFilterAction(SystemFilterPool selectedPool,
                                               Shell shell)
Description copied from class: RemoteFileSubSystemFactoryImpl
Overridable parent method to return the action for creating a new filter inside a filter pool Returns new SystemNewFileFilterAction.

Overrides:
getNewFilterPoolFilterAction in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getNewFilterPoolFilterAction(SystemFilterPool,Shell)

getNewNestedFilterAction

protected IAction getNewNestedFilterAction(SystemFilter selectedFilter,
                                           Shell shell)
Description copied from class: SubSystemFactoryImpl
Overridable method to return the action for creating a new nested filter inside another filter. By default returns getNewFilterPoolFilterAction(selectedFilter.getParentFilterPool(),shell).

Overrides:
getNewNestedFilterAction in class SubSystemFactoryImpl
Parameters:
shell - parent shell of viewer where the popup menu is being constructed
See Also:
SubSystemFactoryImpl.getNewNestedFilterAction(SystemFilter,Shell)

getChangeFilterAction

protected IAction getChangeFilterAction(SystemFilter selectedFilter,
                                        Shell shell)
Description copied from class: RemoteFileSubSystemFactoryImpl
Overridable method to return the action for changing an existing filter. Returns new SystemFileUpdateFilterAction.

Overrides:
getChangeFilterAction in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getChangeFilterAction(SystemFilter,Shell)

getAdditionalFilterPoolActions

protected Vector getAdditionalFilterPoolActions(SystemFilterPool selectedPool,
                                                Shell shell)
Description copied from class: SubSystemFactoryImpl
Overridable entry for child classes to contribute filter pool actions beyond the default supplied actions.

By default, this returns null.

Overrides:
getAdditionalFilterPoolActions in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getAdditionalFilterPoolActions(SystemFilterPool,Shell)

getAdditionalFilterPoolReferenceActions

protected Vector getAdditionalFilterPoolReferenceActions(SystemFilterPool selectedPool,
                                                         Shell shell)
Description copied from class: SubSystemFactoryImpl
Overridable entry for child classes to contribute filter pool reference actions beyond the default supplied actions.

By default, this returns null.

Overrides:
getAdditionalFilterPoolReferenceActions in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getAdditionalFilterPoolReferenceActions(SystemFilterPool,Shell)

getAdditionalFilterActions

protected Vector getAdditionalFilterActions(SystemFilter selectedFilter,
                                            Shell shell)
Description copied from class: SubSystemFactoryImpl
Overridable entry for child classes to contribute filter actions beyond the default supplied actions.

By default, this returns null.

Overrides:
getAdditionalFilterActions in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getAdditionalFilterActions(SystemFilter,Shell)

getTranslatedFilterTypeProperty

public String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
Return the translated string to show in the property sheet for the type property.

Specified by:
getTranslatedFilterTypeProperty in interface SubSystemFactory
Overrides:
getTranslatedFilterTypeProperty in class RemoteFileSubSystemFactoryImpl

getPortValidator

public ISystemValidator getPortValidator()
Description copied from interface: SubSystemFactory
Return the validator for the port. A default is supplied. This must be castable to ICellEditorValidator for the property sheet support.

Specified by:
getPortValidator in interface SubSystemFactory
Overrides:
getPortValidator in class SubSystemFactoryImpl

getNewConnectionWizardPages

public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(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.

Some details:

Tip: consider extending AbstractSystemNewConnectionWizardPage for your wizard page class.

Specified by:
getNewConnectionWizardPages in interface SubSystemFactory
Overrides:
getNewConnectionWizardPages in class RemoteFileSubSystemFactoryImpl

getAdditionalSubSystemActions

protected Vector getAdditionalSubSystemActions(SubSystem selectedSubSystem,
                                               Shell shell)
Description copied from class: SubSystemFactoryImpl
Overridable entry for child classes to contribute subsystem actions beyond the default supplied actions.

By default, returns null.

Overrides:
getAdditionalSubSystemActions in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getAdditionalSubSystemActions(SubSystem,Shell)

createSubSystemInternal

protected SubSystem createSubSystemInternal(SystemConnection conn)
Instantiate and return an instance of OUR subystem. Do not populate it yet though!

Overrides:
createSubSystemInternal in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.createSubSystemInternal(SystemConnection)

initSubSystemMOF

protected void initSubSystemMOF()
Initialize our mof factory.

Overrides:
initSubSystemMOF in class RemoteFileSubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.initSubSystemMOF()

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.