|
RSE Release 1.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
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 |
|---|
_isDirty, currentlyProcessingConnection, currentlyProcessingSubSystemConfiguration, currentlySelected, currentlySelectedConnection, filterNamingPolicy, filterPoolManagerList, filterPoolManagers, filterPoolManagersPerProfile, imageTable, subSystemList |
| Fields inherited from interface org.eclipse.rse.core.subsystems.ISubSystemConfiguration |
|---|
FORCE_INTO_MEMORY, LAZILY |
| 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,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
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 |
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 |
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 |
supportsSearch()
By default this returns true. |
abstract boolean |
supportsServerLaunchProperties(IHost host)
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. |
| 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.persistance.IRSEPersistableContainer |
|---|
isDirty, setDirty, 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 IRemoteFileSubSystemConfigurationisCaseSensitive in class SubSystemConfigurationpublic boolean supportsTargets()
We return true.
supportsTargets in interface ISubSystemConfigurationsupportsTargets in class SubSystemConfigurationpublic abstract boolean supportsServerLaunchProperties(IHost host)
supportsServerLaunchProperties in interface ISubSystemConfigurationsupportsServerLaunchProperties 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 supportsSubSystemConnect()
supportsSubSystemConnect in interface ISubSystemConfigurationsupportsSubSystemConnect in class SubSystemConfigurationSubSystemConfiguration.supportsSubSystemConnect()public boolean isPortEditable()
isPortEditable in interface ISubSystemConfigurationisPortEditable in class SubSystemConfigurationSubSystemConfiguration.isPortEditable()public boolean supportsCommands()
supportsCommands in interface ISubSystemConfigurationsupportsCommands in class SubSystemConfigurationSubSystemConfiguration.supportsCommands()public boolean supportsProperties()
supportsProperties in interface ISubSystemConfigurationsupportsProperties in class SubSystemConfigurationSubSystemConfiguration.supportsProperties()public boolean supportsFilters()
supportsFilters in interface ISubSystemConfigurationsupportsFilters in class SubSystemConfigurationSubSystemConfiguration.supportsFilters()public boolean supportsDropInFilters()
supportsDropInFilters in interface ISubSystemConfigurationsupportsDropInFilters in class SubSystemConfigurationpublic boolean providesCustomDropInFilters()
providesCustomDropInFilters in interface ISubSystemConfigurationprovidesCustomDropInFilters in class SubSystemConfigurationpublic boolean supportsNestedFilters()
supportsNestedFilters in interface ISubSystemConfigurationsupportsNestedFilters in class SubSystemConfigurationSubSystemConfiguration.supportsNestedFilters()public boolean supportsUserDefinedActions()
We return true.
supportsUserDefinedActions in interface ISubSystemConfigurationsupportsUserDefinedActions in class SubSystemConfiguration#createActionSubSystem()public boolean supportsFileTypes()
We return true
supportsFileTypes in interface ISubSystemConfigurationsupportsFileTypes in class SubSystemConfigurationpublic 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 ISubSystemConfigurationsupportsCompileActions in class SubSystemConfiguration#getCompileManager(),
#createCompileManager()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,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
initializeSubSystem in class SubSystemConfigurationss - - The subsystem that was created via createSubSystemInternalyourNewConnectionWizardPages - - The wizard pages you supplied to the New Connection wizard, via the
SubSystemConfigurationAdapter.getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.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.SubSystemConfiguration.initializeSubSystem(ISubSystem,ISystemNewConnectionWizardPage[]),
SubSystemConfigurationAdapter.getNewConnectionWizardPages(org.eclipse.rse.core.subsystems.ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)public String getEditorProfileID()
getEditorProfileID in interface IRemoteFileSubSystemConfigurationpublic boolean isFactoryFor(Class subSystemType)
isFactoryFor in interface ISubSystemConfigurationisFactoryFor in class SubSystemConfigurationsubSystemType - type of subsystem
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||