|
RSE Release 3.3 |
|||||||||
| 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 IRemoteFileSubSystemConfigurationpublic boolean isCaseSensitive()
isCaseSensitive in interface ISubSystemConfigurationisCaseSensitive in interface IRemoteFileSubSystemConfigurationisCaseSensitive in class SubSystemConfigurationpublic boolean supportsTargets()
We return true.
supportsTargets in interface ISubSystemConfigurationsupportsTargets in class SubSystemConfigurationpublic boolean supportsEnvironmentVariablesPropertyPage()
supportsEnvironmentVariablesPropertyPage in interface IRemoteFileSubSystemConfigurationpublic boolean supportsSearch()
supportsSearch in interface IRemoteFileSubSystemConfigurationpublic ISystemValidator getPathValidator()
getPathValidator in interface IRemoteFileSubSystemConfigurationpublic ISystemValidator getFileFilterStringValidator()
getFileFilterStringValidator in interface IRemoteFileSubSystemConfigurationpublic ValidatorFileName getFileNameValidator()
getFileNameValidator in interface IRemoteFileSubSystemConfigurationpublic ValidatorFolderName getFolderNameValidator()
getFolderNameValidator in interface IRemoteFileSubSystemConfigurationpublic String getSeparator()
getSeparator in interface IRemoteFileSubSystemConfigurationpublic char getSeparatorChar()
getSeparatorChar in interface IRemoteFileSubSystemConfigurationpublic String getPathSeparator()
getPathSeparator in interface IRemoteFileSubSystemConfigurationpublic char getPathSeparatorChar()
getPathSeparatorChar in interface IRemoteFileSubSystemConfigurationpublic String getLineSeparator()
getLineSeparator in interface IRemoteFileSubSystemConfigurationpublic boolean supportsDropInFilters()
supportsDropInFilters in interface ISubSystemConfigurationsupportsDropInFilters in class SubSystemConfigurationpublic boolean providesCustomDropInFilters()
providesCustomDropInFilters in interface ISubSystemConfigurationprovidesCustomDropInFilters in class SubSystemConfigurationpublic boolean supportsFileTypes()
We return true
supportsFileTypes in interface ISubSystemConfigurationsupportsFileTypes in class SubSystemConfiguration
public void renameSubSystemProfile(String oldProfileName,
String newProfileName)
ISubSystemConfigurationThis 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 ISubSystemConfigurationrenameSubSystemProfile in class SubSystemConfigurationoldProfileName - 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 SubSystemConfigurationpublic String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
getTranslatedFilterTypeProperty in interface ISubSystemConfigurationgetTranslatedFilterTypeProperty in class SubSystemConfigurationpublic 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 ISubSystemConfigurationcreateSubSystemInternal in class SubSystemConfigurationSubSystemConfiguration.createSubSystemInternal(IHost)
protected void initializeSubSystem(ISubSystem ss,
ISubSystemConfigurator[] configurators)
initializeSubSystem in class SubSystemConfigurationss - - 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 IRemoteFileSubSystemConfigurationpublic boolean isFactoryFor(Class subSystemType)
isFactoryFor in interface ISubSystemConfigurationisFactoryFor in class SubSystemConfigurationsubSystemType - type of subsystem
|
RSE Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||