|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
| Field Summary | |
|---|---|
static boolean |
FORCE_INTO_MEMORY
|
static boolean |
LAZILY
|
| Method Summary | |
|---|---|
void |
changingSystemProfileActiveStatus(ISystemProfile profile,
boolean newStatus)
Called by SystemRegistry when we have toggled the active-status of a profile |
ISubSystem |
cloneSubSystem(ISubSystem oldSubsystem,
IHost newConnection,
boolean copyProfileOperation)
Clone a given subsystem into the given connection. |
boolean |
commit()
Saves absolutely everything to disk. |
ISystemFilterPoolManager |
copyFilterPoolManager(ISystemProfile oldProfile,
ISystemProfile newProfile)
Copy the filter pool manager and return a new one. |
IServerLauncherProperties |
createServerLauncher(IConnectorService connectorService)
Overridable entry for child classes to contribute a server launcher instance for a given subsystem. |
ISubSystem |
createSubSystem(IHost conn,
boolean creatingConnection,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
Creates a new subsystem instance that is associated with the given connection object. |
ISubSystem |
createSubSystemAfterTheFact(IHost conn)
|
ISubSystem |
createSubSystemInternal(IHost conn)
|
boolean |
deleteSubSystem(ISubSystem subsystem)
Deletes a given subsystem instance from the list maintained by this factory. |
void |
deleteSubSystemsByConnection(IHost conn)
Called by SystemRegistry's deleteConnection method to ensure we delete all our subsystems for a given connection. |
void |
deletingSystemProfile(ISystemProfile profile)
Called by SystemRegistry when we are about to delete a profile. |
void |
disconnectAllSubSystems()
Disconnect all subsystems currently connected. |
String |
getCategory()
Return the category this subsystem factory subscribes to. |
IConnectorService |
getConnectorService(IHost host)
Find or create a connector service for this host |
ISystemFilterPool |
getDefaultFilterPool(ISystemProfile profile,
String oldProfileName)
|
ISystemFilterPool |
getDefaultSystemFilterPool(ISubSystem subsys)
Given a subsystem, return the first (hopefully only) default pool for this subsystem's profile. |
String |
getDescription()
Return description of this factory. |
ISystemFilterPoolManager |
getFilterPoolManager(ISystemProfile profile)
Get the filter pool manager for the given profile |
List |
getFilterPoolManagerList()
Private. |
String |
getId()
Return unique id of this factory. |
String |
getName()
Return name of this factory. |
ISubSystemConfigurationProxy |
getSubSystemConfigurationProxy()
Private method |
List |
getSubSystemList()
Private. |
ISubSystem[] |
getSubSystems(boolean force)
Returns a list of all subsystem objects for all connections. |
ISubSystem[] |
getSubSystems(IHost conn,
boolean force)
Returns a list of subsystem objects existing for the given connection. |
ISystemProfile |
getSystemProfile(ISystemFilterPool pool)
Get owning profile object given a filter pool object |
ISystemProfile |
getSystemProfile(String name)
|
String[] |
getSystemTypes()
Return the system types this subsystem factory supports. |
String |
getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
Return the translated string to show in the property sheet for the type property when a filter is selected. |
String |
getVendor()
Return vendor of this factory. |
boolean |
isCaseSensitive()
Tell us if filter strings are 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()
Return true (default) or false to indicate if subsystems of this factory support user-editable port numbers. |
boolean |
isSubSystemsDeletable()
Returns true if this factory allows users to delete instances of subsystem objects. |
void |
preTestRenameSubSystemProfile(String oldProfileName)
Called by SystemRegistry's renameSystemProfile method to pre-test if we are going to run into errors on a profile rename, due to file or folder in use. |
boolean |
providesCustomDropInFilters()
Return true if filters of this subsystem factory provide a custom implementation of drop support. |
void |
renameFilterPoolManager(ISystemProfile profile)
|
void |
renameSubSystem(ISubSystem subsystem,
String newName)
Renames a subsystem. |
void |
renameSubSystemProfile(ISubSystem ss,
String oldProfileName,
String newProfileName)
Called by SystemRegistry's renameSystemProfile method to ensure we update our subsystem names within each subsystem. |
void |
renameSubSystemsByConnection(IHost conn,
String newConnectionName)
Called by SystemRegistry's renameConnection method to ensure we update our connection names within each subsystem. |
void |
reset()
Reset for a full refresh from disk, such as after a team synch. |
void |
saveSubSystem(ISubSystem subsys)
Save one subsystem to disk. |
void |
setConnection(IHost connection)
Called by adapters prior to asking for actions, in case the connection of the currently selected object is required by the action. |
void |
setCurrentSelection(Object[] selection)
Called by adapters prior to asking for actions. |
void |
setShowFilterPools(boolean show)
If we support filters, should we show filter pools in the remote system explorer? |
void |
setSubSystemConfigurationProxy(ISubSystemConfigurationProxy proxy)
Private method called by RSEUIPlugin |
void |
setSubSystemPort(ISubSystem subsystem,
int port)
Update the port for the given subsystem instance. |
void |
setSubSystemUserId(ISubSystem subsystem,
String userId)
Update the user ID for the given subsystem instance. |
boolean |
showChangeFilterStringsPropertyPage(ISystemFilter filter)
Given a filter, decide whether to show the Filter Strings property page for this filter. |
boolean |
showFilterPools()
If we support filters, should we show filter pools in the remote system explorer? |
boolean |
showGenericShowInTableOnFilter()
Return true if we should show the show in table action in the popup for the given element. |
boolean |
showRefreshOnFilter()
Return true if we should show the refresh action in the popup for the given element. |
boolean |
supportsCommands()
Return true if subsystem instances from this factory support remote command execution Returns false in default implementation, and is usually only true for command subsystems. |
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 |
supportsFileTypes()
Return true if you support user-defined/managed named file types Returns false in default implementation. |
boolean |
supportsFilterCaching()
Required method for subsystem factory child classes. |
boolean |
supportsFilterChildren()
Indicates whether the subsystem supports displaying children under its filters. |
boolean |
supportsFilters()
Required method for subsystem factory child classes. |
boolean |
supportsFilterStringExport()
Return true if the subsystem supports the exporting of filter strings from it's filters RETURNS true BY DEFAULT |
boolean |
supportsMultipleFilterStrings()
Required method for subsystem factory child classes. |
boolean |
supportsMultiStringFilters()
Return true if the subsystem supports more than one filter string RETURNS true BY DEFAULT |
boolean |
supportsNestedFilters()
Required method for subsystem factory child classes if returning true from supportsFilters. |
boolean |
supportsProperties()
Return true if subsystem instances from this factory support getting and setting properties Returns false in default implementation, and not actually used yet. |
boolean |
supportsQuickFilters()
Return true if you support quick filters. |
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 |
supportsServerLaunchType(ServerLaunchType serverLaunchType)
If supportsServerLaunchProperties(IHost) returns true, this method may be called by
the server launcher to decide if a given remote server launch type is supported or not.
|
boolean |
supportsSubSystemConnect()
Return true if subsystem instances from this factory support connect and disconnect actions Returns true in default implementation. |
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 |
ISubSystem[] |
testForActiveReferences(ISystemProfile profile)
Test if any filter pools in the given profile are referenced by other profiles, which are active. |
void |
updateSubSystem(ISubSystem subsystem,
boolean updateUserId,
String userId,
boolean updatePort,
int port)
Updates user-editable attributes of an existing subsystem instance. |
| 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 |
public static final boolean FORCE_INTO_MEMORY
public static final boolean LAZILY
| Method Detail |
public void reset()
public boolean supportsMultiStringFilters()
RETURNS true BY DEFAULT
public boolean supportsFilterStringExport()
RETURNS true BY DEFAULT
public boolean supportsSubSystemConnect()
Returns true in default implementation.
public boolean isPortEditable()
Returns true in default implementation.
public boolean supportsCommands()
Returns false in default implementation, and is usually only true for command subsystems.
public boolean supportsProperties()
Returns false in default implementation, and not actually used yet.
public boolean supportsFilters()
Returns true in default implementation.
public boolean supportsFilterChildren()
public boolean supportsFilterCaching()
Returns true in default implementation.
public boolean supportsMultipleFilterStrings()
Returns true in default implementation.
public boolean supportsNestedFilters()
Returns false in default implementation.
public boolean supportsQuickFilters()
Not supported yet
public boolean supportsDropInFilters()
public boolean providesCustomDropInFilters()
public boolean supportsUserDefinedActions()
#getActionSubSystem(ISubSystem),
Returns false in default implementation.
public boolean supportsCompileActions()
Returns false in default implementation.
public boolean supportsFileTypes()
Returns false in default implementation.
public boolean supportsTargets()
public boolean supportsServerLaunchProperties(IHost host)
public boolean supportsServerLaunchType(ServerLaunchType serverLaunchType)
supportsServerLaunchProperties(IHost) returns true, this method may be called by
the server launcher to decide if a given remote server launch type is supported or not.
ServerLaunchType,
#getServerLauncherForm(Shell, ISystemMessageLine)public boolean isCaseSensitive()
Returns false in default implementation.
public boolean showFilterPools()
public void setShowFilterPools(boolean show)
public void setSubSystemConfigurationProxy(ISubSystemConfigurationProxy proxy)
public ISubSystemConfigurationProxy getSubSystemConfigurationProxy()
public String getVendor()
public String getName()
public String getDescription()
public String getId()
getId in interface ISystemFilterPoolManagerProviderpublic String getCategory()
org.eclipse.rse.model.ISubSystemConfigurationCategoriespublic String[] getSystemTypes()
public void deletingSystemProfile(ISystemProfile profile)
Our only mission is to delete the filter pool associated with it, because the registry has already called deleteSubSystemsByConnection for every subsystem of every connection owned by this profile.
public void changingSystemProfileActiveStatus(ISystemProfile profile,
boolean newStatus)
public ISystemProfile getSystemProfile(ISystemFilterPool pool)
public void renameSubSystemProfile(ISubSystem ss,
String oldProfileName,
String newProfileName)
This is called AFTER changing the profile's name!!
public void preTestRenameSubSystemProfile(String oldProfileName)
throws Exception
Exception
public void renameSubSystemsByConnection(IHost conn,
String newConnectionName)
Must be called prior to changing the connection's name!!
public void deleteSubSystemsByConnection(IHost conn)
public ISubSystem createSubSystem(IHost conn,
boolean creatingConnection,
ISystemNewConnectionWizardPage[] yourNewConnectionWizardPages)
conn - The connection to create a subsystem forcreatingConnection - true if we are creating a connection, false if just creating
another subsystem for an existing connection.yourNewConnectionWizardPages - The wizard pages you supplied to the New Connection wizard, via the
ISubSystemConfigurationAdapter.getNewConnectionWizardPages(ISubSystemConfiguration, org.eclipse.jface.wizard.IWizard)
method or null if you didn't override this method.public ISubSystem createSubSystemAfterTheFact(IHost conn)
public ISubSystem createSubSystemInternal(IHost conn)
public IConnectorService getConnectorService(IHost host)
public IServerLauncherProperties createServerLauncher(IConnectorService connectorService)
Create an instance of ServerLauncher, and add it to the given subsystem.
When a subsystem is created, and supportsServerLaunchProperties(IHost)
returns true, this method is called to create the server launcher instance
associated with the subsystem. The default implementation is to create an
instance of IRemoteServerLauncher, but override to create your own
ServerLauncher instance if you have your own class.
public void updateSubSystem(ISubSystem subsystem,
boolean updateUserId,
String userId,
boolean updatePort,
int port)
The subsystem will be saved to disk.
subsystem - target of the update actionupdateUserId - true if we are updating the userId, else false to ignore userIduserId - new local user Id. Ignored if updateUserId is falseupdatePort - true if we are updating the port, else false to ignore portport - new local port value. Ignored if updatePort is false
public void setSubSystemPort(ISubSystem subsystem,
int port)
#updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)
public void setSubSystemUserId(ISubSystem subsystem,
String userId)
#updateSubSystem(Shell, ISubSystem, boolean, String, boolean, int)
public boolean isSubSystemsDeletable()
public boolean deleteSubSystem(ISubSystem subsystem)
public ISubSystem cloneSubSystem(ISubSystem oldSubsystem,
IHost newConnection,
boolean copyProfileOperation)
throws Exception
oldSubsystem - The subsystem to be clonednewConnection - The connection into which to create and clone the old subsystemcopyProfileOperation - Pass true if this is an profile-copy operation versus a connection-copy operation
Exception
public ISubSystem[] getSubSystems(IHost conn,
boolean force)
conn - System connection to retrieve subsystems forforce - true if we should force all the subsystems to be restored from disk if not alreadypublic ISubSystem[] getSubSystems(boolean force)
public void renameSubSystem(ISubSystem subsystem,
String newName)
public void disconnectAllSubSystems()
throws Exception
Exceptionpublic ISystemFilterPoolManager getFilterPoolManager(ISystemProfile profile)
public ISystemFilterPoolManager copyFilterPoolManager(ISystemProfile oldProfile,
ISystemProfile newProfile)
throws Exception
Exceptionpublic ISystemFilterPool getDefaultSystemFilterPool(ISubSystem subsys)
public ISubSystem[] testForActiveReferences(ISystemProfile profile)
Called when user tries to make a profile inactive. We prevent this if there exists active references.
profile - The profile being tested
public String getTranslatedFilterTypeProperty(ISystemFilter selectedFilter)
public boolean showRefreshOnFilter()
public boolean showGenericShowInTableOnFilter()
public boolean showChangeFilterStringsPropertyPage(ISystemFilter filter)
public boolean isFactoryFor(Class subSystemType)
subSystemType - type of subsystem
public void setConnection(IHost connection)
public void setCurrentSelection(Object[] selection)
public boolean commit()
Totally handled for you!
Calls saveSubSystems() and saveFilterPools()
Exceptions are swallowed since we cannot deal with them on shutdown anyway!
commit in interface org.eclipse.rse.core.persistance.IRSEPersistableContainer
public void saveSubSystem(ISubSystem subsys)
throws Exception
Exceptionpublic List getSubSystemList()
public List getFilterPoolManagerList()
public ISystemFilterPool getDefaultFilterPool(ISystemProfile profile,
String oldProfileName)
public ISystemProfile getSystemProfile(String name)
public void renameFilterPoolManager(ISystemProfile profile)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||