|
RSE Release 3.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.subsystems.files.core.subsystems.RemoteFileSubSystemConfiguration
public abstract class RemoteFileSubSystemConfiguration
Specialization for file subsystem configurations.
It is best used by subclassing
FileServiceSubSystemConfiguration
.
RemoteFileSubSystem
Field Summary | |
---|---|
protected String |
translatedType
|
protected boolean |
unixStyle
|
Fields inherited from class org.eclipse.rse.core.subsystems.SubSystemConfiguration |
---|
currentlyProcessingConnection, currentlyProcessingSubSystemConfiguration, currentlySelected, currentlySelectedConnection, 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 | |
---|---|
RemoteFileSubSystemConfiguration()
Constructor |
Method Summary | |
---|---|
protected ISystemFilterPool |
createDefaultFilterPool(ISystemFilterPoolManager mgr)
Override from parent. |
ISubSystem |
createSubSystemInternal(IHost conn)
Instantiate and return an instance of OUR subystem. |
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. |
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(ISystemFilter selectedFilter)
Return the translated string to show in the property sheet for the type property. |
protected void |
initializeSubSystem(ISubSystem ss,
ISubSystemConfigurator[] configurators)
Populate a new subsystem with our unique attributes, and/or create default filter references. |
boolean |
isCaseSensitive()
Tell us if this file system is case sensitive. |
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 |
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)
Callback method called after renaming a subsystem profile. |
protected void |
setIsUnixStyle(boolean isUnixStyle)
Tell us if this is a unix-style file system or a windows-style file system. |
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 |
supportsSearch()
By default this returns true. |
boolean |
supportsTargets()
Tell us if this subsystem factory supports targets, which are destinations for pushes and builds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystemConfiguration |
---|
supportsArchiveManagement |
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 |
Field Detail |
---|
protected boolean unixStyle
protected String translatedType
Constructor Detail |
---|
public RemoteFileSubSystemConfiguration()
Method Detail |
---|
protected void setIsUnixStyle(boolean isUnixStyle)
public boolean isUnixStyle()
isUnixStyle
in interface IRemoteFileSubSystemConfiguration
public boolean isCaseSensitive()
isCaseSensitive
in interface ISubSystemConfiguration
isCaseSensitive
in interface IRemoteFileSubSystemConfiguration
isCaseSensitive
in class SubSystemConfiguration
public boolean supportsTargets()
We return true.
supportsTargets
in interface ISubSystemConfiguration
supportsTargets
in class SubSystemConfiguration
public boolean supportsEnvironmentVariablesPropertyPage()
supportsEnvironmentVariablesPropertyPage
in interface IRemoteFileSubSystemConfiguration
public boolean supportsSearch()
supportsSearch
in interface IRemoteFileSubSystemConfiguration
public ISystemValidator getPathValidator()
getPathValidator
in interface IRemoteFileSubSystemConfiguration
public ISystemValidator getFileFilterStringValidator()
getFileFilterStringValidator
in interface IRemoteFileSubSystemConfiguration
public ValidatorFileName getFileNameValidator()
getFileNameValidator
in interface IRemoteFileSubSystemConfiguration
public ValidatorFolderName getFolderNameValidator()
getFolderNameValidator
in interface IRemoteFileSubSystemConfiguration
public String getSeparator()
getSeparator
in interface IRemoteFileSubSystemConfiguration
public char getSeparatorChar()
getSeparatorChar
in interface IRemoteFileSubSystemConfiguration
public String getPathSeparator()
getPathSeparator
in interface IRemoteFileSubSystemConfiguration
public char getPathSeparatorChar()
getPathSeparatorChar
in interface IRemoteFileSubSystemConfiguration
public String getLineSeparator()
getLineSeparator
in interface IRemoteFileSubSystemConfiguration
public boolean supportsDropInFilters()
supportsDropInFilters
in interface ISubSystemConfiguration
supportsDropInFilters
in class SubSystemConfiguration
public boolean providesCustomDropInFilters()
providesCustomDropInFilters
in interface ISubSystemConfiguration
providesCustomDropInFilters
in class SubSystemConfiguration
public boolean supportsFileTypes()
We return true
supportsFileTypes
in interface ISubSystemConfiguration
supportsFileTypes
in class SubSystemConfiguration
public void renameSubSystemProfile(String oldProfileName, String newProfileName)
ISubSystemConfiguration
This is called by SystemRegistry's renameSystemProfile method after it is complete, , in order to allow the subsystem configuration perform any required cleanup. For instance, subsystem configurations must ensure that they update their filter pool manager names (and their folders).
Must be called AFTER changing the profile's name!!
renameSubSystemProfile
in interface ISubSystemConfiguration
renameSubSystemProfile
in class SubSystemConfiguration
oldProfileName
- the old profile name.newProfileName
- the new profile name.protected void recursivelyUpdateIFileProperties(String newName, IFolder container)
protected ISystemFilterPool createDefaultFilterPool(ISystemFilterPoolManager 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 SubSystemConfiguration
public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
getTranslatedFilterTypeProperty
in interface ISubSystemConfiguration
getTranslatedFilterTypeProperty
in class SubSystemConfiguration
public ISubSystem createSubSystemInternal(IHost 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 interface ISubSystemConfiguration
createSubSystemInternal
in class SubSystemConfiguration
SubSystemConfiguration.createSubSystemInternal(IHost)
protected void initializeSubSystem(ISubSystem ss, ISubSystemConfigurator[] configurators)
initializeSubSystem
in class SubSystemConfiguration
ss
- - The subsystem that was created via createSubSystemInternalconfigurators
- an array of ISubSystemConfigurator
used to
inject values into this subsystem or null if there are none. Used to
take ISystemNewConnectionWizardPage[] before RSE 3.0public String getEditorProfileID()
getEditorProfileID
in interface IRemoteFileSubSystemConfiguration
public boolean isFactoryFor(Class subSystemType)
isFactoryFor
in interface ISubSystemConfiguration
isFactoryFor
in class SubSystemConfiguration
subSystemType
- type of subsystem
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |