|
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.subsystems.impl.RemoteFileSubSystemFactoryImpl
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String copyright
protected boolean unixStyle
protected String translatedType
Constructor Detail |
public RemoteFileSubSystemFactoryImpl()
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
protected void setIsUnixStyle(boolean isUnixStyle)
public boolean isUnixStyle()
isUnixStyle
in interface RemoteFileSubSystemFactory
public boolean isCaseSensitive()
isCaseSensitive
in interface RemoteFileSubSystemFactory
isCaseSensitive
in class SubSystemFactoryImpl
public boolean supportsTargets()
We return true.
supportsTargets
in interface SubSystemFactory
supportsTargets
in class SubSystemFactoryImpl
public boolean supportsServerLaunchProperties()
supportsServerLaunchProperties
in interface SubSystemFactory
supportsServerLaunchProperties
in class SubSystemFactoryImpl
public boolean supportsEnvironmentVariablesPropertyPage()
supportsEnvironmentVariablesPropertyPage
in interface RemoteFileSubSystemFactory
public ISystemNewConnectionWizardPage[] getNewConnectionWizardPages(IWizard wizard)
Tip: consider extending AbstractSystemWizardPage for your wizard page class.
getNewConnectionWizardPages
in interface SubSystemFactory
getNewConnectionWizardPages
in class SubSystemFactoryImpl
public ISystemValidator getPathValidator()
getPathValidator
in interface RemoteFileSubSystemFactory
public ISystemValidator getFileFilterStringValidator()
getFileFilterStringValidator
in interface RemoteFileSubSystemFactory
public ValidatorFileName getFileNameValidator()
getFileNameValidator
in interface RemoteFileSubSystemFactory
public ValidatorFolderName getFolderNameValidator()
getFolderNameValidator
in interface RemoteFileSubSystemFactory
public String getSeparator()
getSeparator
in interface RemoteFileSubSystemFactory
public char getSeparatorChar()
getSeparatorChar
in interface RemoteFileSubSystemFactory
public String getPathSeparator()
getPathSeparator
in interface RemoteFileSubSystemFactory
public char getPathSeparatorChar()
getPathSeparatorChar
in interface RemoteFileSubSystemFactory
public String getLineSeparator()
getLineSeparator
in interface RemoteFileSubSystemFactory
public boolean supportsUserId()
supportsUserId
in interface SubSystemFactory
supportsUserId
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsUserId()
public boolean supportsSubSystemConnect()
supportsSubSystemConnect
in interface SubSystemFactory
supportsSubSystemConnect
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsSubSystemConnect()
public boolean isPortEditable()
isPortEditable
in interface SubSystemFactory
isPortEditable
in class SubSystemFactoryImpl
SubSystemFactoryImpl.isPortEditable()
public boolean supportsCommands()
supportsCommands
in interface SubSystemFactory
supportsCommands
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsCommands()
public boolean supportsProperties()
supportsProperties
in interface SubSystemFactory
supportsProperties
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsProperties()
public boolean supportsFilters()
supportsFilters
in interface SubSystemFactory
supportsFilters
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsFilters()
public boolean supportsDropInFilters()
supportsDropInFilters
in interface SubSystemFactory
supportsDropInFilters
in class SubSystemFactoryImpl
public boolean providesCustomDropInFilters()
providesCustomDropInFilters
in interface SubSystemFactory
providesCustomDropInFilters
in class SubSystemFactoryImpl
public boolean supportsNestedFilters()
supportsNestedFilters
in interface SubSystemFactory
supportsNestedFilters
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsNestedFilters()
public boolean supportsUserDefinedActions()
We return true.
supportsUserDefinedActions
in interface SubSystemFactory
supportsUserDefinedActions
in class SubSystemFactoryImpl
createActionSubSystem()
public boolean supportsFileTypes()
We return true
supportsFileTypes
in interface SubSystemFactory
supportsFileTypes
in class SubSystemFactoryImpl
public boolean supportsCompileActions()
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
supportsCompileActions
in interface SubSystemFactory
supportsCompileActions
in class SubSystemFactoryImpl
SubSystemFactoryImpl.getCompileManager()
,
SubSystemFactoryImpl.createCompileManager()
protected SystemUDActionSubsystem createActionSubSystem()
createActionSubSystem
in class SubSystemFactoryImpl
SubSystemFactoryImpl.supportsUserDefinedActions()
,
SubSystemFactoryImpl.getActionSubSystem(SubSystem)
protected SystemFilterPool createDefaultFilterPool(SystemFilterPoolManager mgr)
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.
createDefaultFilterPool
in class SubSystemFactoryImpl
protected IAction getNewFilterPoolFilterAction(SystemFilterPool selectedPool, Shell shell)
getNewFilterPoolFilterAction
in class SubSystemFactoryImpl
shell
- parent shell of viewer where the popup menu is being constructedprotected IAction getChangeFilterAction(SystemFilter selectedFilter, Shell shell)
getChangeFilterAction
in class SubSystemFactoryImpl
selectedFilter
- the currently selected filtershell
- parent shell of viewer where the popup menu is being constructedprotected Vector getAdditionalFilterPoolActions(SystemFilterPool selectedPool, Shell shell)
SubSystemFactoryImpl
By default, this returns null.
getAdditionalFilterPoolActions
in class SubSystemFactoryImpl
shell
- parent shell of viewer where the popup menu is being constructed
SubSystemFactoryImpl.getAdditionalFilterPoolActions(SystemFilterPool,Shell)
protected Vector getAdditionalFilterPoolReferenceActions(SystemFilterPool selectedPool, Shell shell)
SubSystemFactoryImpl
By default, this returns null.
getAdditionalFilterPoolReferenceActions
in class SubSystemFactoryImpl
shell
- parent shell of viewer where the popup menu is being constructed
SubSystemFactoryImpl.getAdditionalFilterPoolReferenceActions(SystemFilterPool,Shell)
protected Vector getAdditionalFilterActions(SystemFilter selectedFilter, Shell shell)
SubSystemFactoryImpl
By default, this returns null.
getAdditionalFilterActions
in class SubSystemFactoryImpl
SubSystemFactoryImpl.getAdditionalFilterActions(SystemFilter,Shell)
public String getTranslatedFilterTypeProperty(SystemFilter selectedFilter)
getTranslatedFilterTypeProperty
in interface SubSystemFactory
getTranslatedFilterTypeProperty
in class SubSystemFactoryImpl
protected Vector getAdditionalSubSystemActions(SubSystem selectedSubSystem, Shell shell)
SubSystemFactoryImpl
By default, returns null.
getAdditionalSubSystemActions
in class SubSystemFactoryImpl
SubSystemFactoryImpl.getAdditionalSubSystemActions(SubSystem,Shell)
protected SubSystem createSubSystemInternal(SystemConnection conn)
SubSystem subsys = ((AcmesubsysFactoryImpl)factory).createAcmeSubSystem();
return subsys;
noteThis method should be abstract but MOF doesn't allow abstract impl classes at this point
createSubSystemInternal
in class SubSystemFactoryImpl
conn
- The connection object this is being created for. Only passed for your interest.SubSystemFactoryImpl.createSubSystemInternal(SystemConnection)
protected void initializeSubSystem(SubSystem ss, ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
initializeSubSystem
in class SubSystemFactoryImpl
ss
- - The subsystem that was created via createSubSystemInternalyourNewConnectionWizardPages
- - 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.SubSystemFactoryImpl.initializeSubSystem(SubSystem,ISystemNewConnectionWizardPage[])
,
com.ibm.etools.systems.subsystems.impl.SubSystemFactoryImpl#getNewConnectionWizardPages(org.eclipse.jface.wizard.IWizard)
public String getEditorProfileID()
getEditorProfileID
in interface RemoteFileSubSystemFactory
public void renameSubSystemProfile(String oldProfileName, String newProfileName)
Must be called AFTER changing the profile's name!!
renameSubSystemProfile
in interface SubSystemFactory
renameSubSystemProfile
in class SubSystemFactoryImpl
protected void recursivelyUpdateIFileProperties(String newName, IFolder container)
protected void initSubSystemMOF()
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
initSubSystemMOF
in class SubSystemFactoryImpl
SubSystemFactoryImpl.initSubSystemMOF()
protected boolean isFactoryFor(Class subSystemType)
isFactoryFor
in class SubSystemFactoryImpl
subSystemType
- type of subsystem
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |