Remote Systems
v6.4.1

com.ibm.etools.systems.subsystems.impl
Class RemoteFileSubSystemFactoryImpl

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

public class RemoteFileSubSystemFactoryImpl
extends SubSystemFactoryImpl
implements RemoteFileSubSystemFactory, SubSystemFactory

See Also:
Serialized Form

Field Summary
static String copyright
           
protected  String translatedType
           
protected  boolean 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.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
RemoteFileSubSystemFactoryImpl()
          Constructor
 
Method Summary
protected  SystemUDActionSubsystem createActionSubSystem()
          Overridable method to instantiate the SystemUDActionSubsystem.
protected  SystemFilterPool createDefaultFilterPool(SystemFilterPoolManager mgr)
          Override from parent.
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.
 String getEditorProfileID()
          Return the default remote systems editor profile ID for files on this subsystem
 ISystemValidator getFileFilterStringValidator()
          Return validator used in filter string dialog for the file part of the filter string By default, returns ValidatorFileFilterString.
 ValidatorFileName getFileNameValidator()
          Return validator used when creating or renaming files
 ValidatorFolderName getFolderNameValidator()
          Return validator used when creating or renaming folders
 String getLineSeparator()
          Return as a string the line separator.
 ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(IWizard wizard)
          Optionally return one or more wizard pages to append to the New Connection Wizard 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.
 String getPathSeparator()
          Return in string format the character used to separate paths.
 char getPathSeparatorChar()
          Return in char format the character used to separate paths.
 ISystemValidator getPathValidator()
          Return validator used in filter string dialog for the path part of the filter string.
 String getSeparator()
          Return in string format the character used to separate folders.
 char getSeparatorChar()
          Return in character format the character used to separate folders.
 String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
          Return the translated string to show in the property sheet for the type property.
protected  void initializeSubSystem(SubSystem ss, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
          Populate a new subsystem with our unique attributes, and/or create default filter references.
protected  void initSubSystemMOF()
          Initialize our mof factory.
 boolean isCaseSensitive()
          Tell us if this file system is case sensitive.
protected  boolean isFactoryFor(Class subSystemType)
          Determines whether this factory is responsible for the creation of subsytems of the specified type Subsystem factories should override this to indicate which subsystems they support.
 boolean isPortEditable()
          We return true.
 boolean isUnixStyle()
          Tell us if this is a unix-style file system or a windows-style file system.
 boolean providesCustomDropInFilters()
          Indicates that a drop on a filter will be handled as a copy by the file subsystem rather than having a filter update.
protected  void recursivelyUpdateIFileProperties(String newName, IFolder container)
           
 void renameSubSystemProfile(String oldProfileName, String newProfileName)
          Called by SystemRegistry's renameSystemProfile method to ensure we update our subsystem names within each subsystem.
protected  void setIsUnixStyle(boolean isUnixStyle)
          Tell us if this is a unix-style file system or a windows-style file system.
 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 supportsDropInFilters()
          Return true if filters of this subsystem factory support dropping into.
 boolean supportsEnvironmentVariablesPropertyPage()
          Return true if subsystems of this factory support the environment variables property.
 boolean supportsFileTypes()
          Return true if you support user-defined/managed named file types We return true
 boolean supportsFilters()
          We return true.
 boolean supportsNestedFilters()
          We return supportsFilters()
 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 supportsTargets()
          Tell us if this subsystem factory supports targets, which are destinations for pushes and builds.
 boolean supportsUserDefinedActions()
          Return true if you support user-defined actions for the remote system objects returned from expansion of subsystems created by this subsystem factory.
 boolean supportsUserId()
          We return true.
 
Methods inherited from class com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl
addCommonRemoteActions, addFilterPoolManager, addSubSystem, addUserDefinedActions, changingSystemProfileActiveStatus, cloneSubSystem, configureNewFilterAction, copyFilterPoolManager, copySubSystemData, createCompileManager, 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, getNewNestedFilterAction, getPasswordValidator, getPortValidator, 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.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, getPortValidator, getServerLauncherForm, getSubSystemActions, getSubSystemFactoryProxy, getSubSystemList, getSubSystemPropertyPageCoreFrom, getSubSystems, getSubSystems, getSystemProfile, getSystemTypes, getUserIdValidator, getVendor, isSubSystemsDeletable, preTestRenameSubSystemProfile, renameSubSystem, renameSubSystemProfile, renameSubSystemsByConnection, reset, save, saveSubSystem, setConnection, setCurrentSelection, setShowFilterPools, setSubSystemFactoryProxy, setSubSystemPort, setSubSystemUserId, showChangeFilterStringsPropertyPage, showFilterPools, showGenericShowInTableOnFilter, showRefreshOnFilter, supportsFilterCaching, supportsFilterStringExport, supportsMultipleFilterStrings, supportsMultiStringFilters, supportsQuickFilters, supportsServerLaunchType, 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

unixStyle

protected boolean unixStyle

translatedType

protected String translatedType
Constructor Detail

RemoteFileSubSystemFactoryImpl

public RemoteFileSubSystemFactoryImpl()
Constructor

Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class SubSystemFactoryImpl

eInverseRemove

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

Overrides:
eInverseRemove in class SubSystemFactoryImpl

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Overrides:
eGet in class SubSystemFactoryImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Overrides:
eSet in class SubSystemFactoryImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Overrides:
eUnset in class SubSystemFactoryImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Overrides:
eIsSet in class SubSystemFactoryImpl

setIsUnixStyle

protected void setIsUnixStyle(boolean isUnixStyle)
Tell us if this is a unix-style file system or a windows-style file system. The default is windows. Child classes must call this, so we know how to respond to separator and path-separator requests.


isUnixStyle

public boolean isUnixStyle()
Tell us if this is a unix-style file system or a windows-style file system. The default is windows. Child classes must call this, so we know how to respond to separator and path-separator requests.

Specified by:
isUnixStyle in interface RemoteFileSubSystemFactory

isCaseSensitive

public boolean isCaseSensitive()
Tell us if this file system is case sensitive. The default is isUnixStyle(), and so should rarely need to be overridden.

Specified by:
isCaseSensitive in interface RemoteFileSubSystemFactory
Overrides:
isCaseSensitive in class SubSystemFactoryImpl

supportsTargets

public boolean supportsTargets()
Tell us if this subsystem factory supports targets, which are destinations for pushes and builds. Normally only true for file system factories.

We return true.

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

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.
By default we return false.

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

supportsEnvironmentVariablesPropertyPage

public boolean supportsEnvironmentVariablesPropertyPage()
Return true if subsystems of this factory support the environment variables property. Return true to show it, return false to hide it. We return true.

Specified by:
supportsEnvironmentVariablesPropertyPage in interface RemoteFileSubSystemFactory

getNewConnectionWizardPages

public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(IWizard wizard)
Optionally return one or more wizard pages to append to the New Connection Wizard if the user selects a system type that this subsystem factory supports.

Tip: consider extending AbstractSystemWizardPage for your wizard page class.

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

getPathValidator

public ISystemValidator getPathValidator()
Return validator used in filter string dialog for the path part of the filter string. By default, returns ValidatorPathName which does very limited checking. Override as appropriate.

Specified by:
getPathValidator in interface RemoteFileSubSystemFactory

getFileFilterStringValidator

public ISystemValidator getFileFilterStringValidator()
Return validator used in filter string dialog for the file part of the filter string By default, returns ValidatorFileFilterString. Override as appropriate.

Specified by:
getFileFilterStringValidator in interface RemoteFileSubSystemFactory

getFileNameValidator

public ValidatorFileName getFileNameValidator()
Return validator used when creating or renaming files

Specified by:
getFileNameValidator in interface RemoteFileSubSystemFactory

getFolderNameValidator

public ValidatorFolderName getFolderNameValidator()
Return validator used when creating or renaming folders

Specified by:
getFolderNameValidator in interface RemoteFileSubSystemFactory

getSeparator

public String getSeparator()
Return in string format the character used to separate folders. Eg, "\" or "/"

Specified by:
getSeparator in interface RemoteFileSubSystemFactory

getSeparatorChar

public char getSeparatorChar()
Return in character format the character used to separate folders. Eg, "\" or "/"

Specified by:
getSeparatorChar in interface RemoteFileSubSystemFactory

getPathSeparator

public String getPathSeparator()
Return in string format the character used to separate paths. Eg, ";" or ":"

Specified by:
getPathSeparator in interface RemoteFileSubSystemFactory

getPathSeparatorChar

public char getPathSeparatorChar()
Return in char format the character used to separate paths. Eg, ";" or ":"

Specified by:
getPathSeparatorChar in interface RemoteFileSubSystemFactory

getLineSeparator

public String getLineSeparator()
Return as a string the line separator.

Specified by:
getLineSeparator in interface RemoteFileSubSystemFactory

supportsUserId

public boolean supportsUserId()
We return true.

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

supportsSubSystemConnect

public boolean supportsSubSystemConnect()
We return true.

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

isPortEditable

public boolean isPortEditable()
We return true.

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

supportsCommands

public boolean supportsCommands()
We return false.

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

supportsProperties

public boolean supportsProperties()
We return false.

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

supportsFilters

public boolean supportsFilters()
We return true.

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

supportsDropInFilters

public boolean supportsDropInFilters()
Return true if filters of this subsystem factory support dropping into.

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

providesCustomDropInFilters

public boolean providesCustomDropInFilters()
Indicates that a drop on a filter will be handled as a copy by the file subsystem rather than having a filter update.

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

supportsNestedFilters

public boolean supportsNestedFilters()
We return supportsFilters()

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

supportsUserDefinedActions

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

We return true.

Specified by:
supportsUserDefinedActions in interface SubSystemFactory
Overrides:
supportsUserDefinedActions in class SubSystemFactoryImpl
See Also:
createActionSubSystem()

supportsFileTypes

public boolean supportsFileTypes()
Return true if you support user-defined/managed named file types

We return true

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

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 false, but really we expect subclasses to return true

Specified by:
supportsCompileActions in interface SubSystemFactory
Overrides:
supportsCompileActions in class SubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.getCompileManager(), SubSystemFactoryImpl.createCompileManager()

createActionSubSystem

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

Overrides:
createActionSubSystem in class SubSystemFactoryImpl
See Also:
SubSystemFactoryImpl.supportsUserDefinedActions(), SubSystemFactoryImpl.getActionSubSystem(SubSystem)

createDefaultFilterPool

protected SystemFilterPool createDefaultFilterPool(SystemFilterPoolManager mgr)
Override from parent.

Here we create the default filter pool for this subsystem factory, and populate it with default filters.

This is overridden for local, windows and ifs file subsystem factories, so what we default here applies to Unix and Linux only.

Overrides:
createDefaultFilterPool in class SubSystemFactoryImpl

getNewFilterPoolFilterAction

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.

Overrides:
getNewFilterPoolFilterAction in class SubSystemFactoryImpl
Parameters:
shell - parent shell of viewer where the popup menu is being constructed

getChangeFilterAction

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

Overrides:
getChangeFilterAction in class SubSystemFactoryImpl
Parameters:
selectedFilter - the currently selected filter
shell - parent shell of viewer where the popup menu is being constructed

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 SubSystemFactoryImpl
Parameters:
shell - parent shell of viewer where the popup menu is being constructed
Returns:
Vector of IAction objects.
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 SubSystemFactoryImpl
Parameters:
shell - parent shell of viewer where the popup menu is being constructed
Returns:
Vector of IAction objects.
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 SubSystemFactoryImpl
Returns:
Vector of IAction objects.
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 SubSystemFactoryImpl

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 SubSystemFactoryImpl
Returns:
Vector of IAction objects.
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! Eg:

     	SubSystem subsys = ((AcmesubsysFactoryImpl)factory).createAcmeSubSystem();
     	return subsys;
 
noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point

Overrides:
createSubSystemInternal in class SubSystemFactoryImpl
Parameters:
conn - The connection object this is being created for. Only passed for your interest.
See Also:
SubSystemFactoryImpl.createSubSystemInternal(SystemConnection)

initializeSubSystem

protected void initializeSubSystem(SubSystem ss,
                                   ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Populate a new subsystem with our unique attributes, and/or create default filter references.

Overrides:
initializeSubSystem in class SubSystemFactoryImpl
Parameters:
ss - - The subsystem that was created via createSubSystemInternal
yourNewConnectionWizardPages - - The wizard pages you supplied to the New Connection wizard, via the SubSystemFactoryImpl.getNewConnectionWizardPages(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. This is null when this method is called other than for a New Connection operation.
See Also:
SubSystemFactoryImpl.initializeSubSystem(SubSystem,ISystemNewConnectionWizardPage[]), com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl#getNewConnectionWizardPages(org.eclipse.jface.wizard.IWizard)

getEditorProfileID

public String getEditorProfileID()
Return the default remote systems editor profile ID for files on this subsystem

Specified by:
getEditorProfileID in interface RemoteFileSubSystemFactory

renameSubSystemProfile

public void renameSubSystemProfile(String oldProfileName,
                                   String newProfileName)
Called by SystemRegistry's renameSystemProfile method to ensure we update our subsystem names within each subsystem.

Must be called AFTER changing the profile's name!!

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

recursivelyUpdateIFileProperties

protected void recursivelyUpdateIFileProperties(String newName,
                                                IFolder container)

initSubSystemMOF

protected void initSubSystemMOF()
Initialize our mof factory. EG: if (!initOurMOF) { Init.init(); factory = new AcmesubsysFactoryImpl(); pkg = new AcmefilesubsysPackageImpl(((AcmesubsysFactoryImpl))factory); initOurMOF = true; } noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point

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

isFactoryFor

protected boolean isFactoryFor(Class subSystemType)
Determines whether this factory is responsible for the creation of subsytems of the specified type Subsystem factories should override this to indicate which subsystems they support.

Overrides:
isFactoryFor in class SubSystemFactoryImpl
Parameters:
subSystemType - type of subsystem
Returns:
whether this factory is for the specified subsystemtype

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.