|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Registry or front door for all remote system connections.
There is a singleton of the class implementation of this interface.
To get it, call the getTheSystemRegistry
method in the SystemPlugin object.
The idea here is that connections are grouped by system profile. At any time, there is a user-specified number of profiles "active" and connections from each active profile are worked with.
Field Summary | |
---|---|
static String |
copyright
|
Method Summary | |
---|---|
void |
addSystemModelChangeListener(ISystemModelChangeListener l)
Register your interest in being told when an RSE model resource is changed. |
void |
addSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
Register your interest in being told when a system preference changes |
void |
addSystemRemoteChangeListener(ISystemRemoteChangeListener l)
Register your interest in being told when a remote resource is changed. |
void |
addSystemResourceChangeListener(ISystemResourceChangeListener l)
Register your interest in being told when a system resource such as a connection is changed. |
boolean |
areAllSubSystemsConnected(SystemConnection conn)
Return true if all of the subsystems for the given connection are currently connected |
void |
clearRunnableContext()
Clear the current active runnable context to be used for a progress monitor. |
void |
connectedStatusChange(SubSystem subsystem,
boolean connected,
boolean wasConnected)
Inform the world when the connection status changes for a subsystem within a connection |
void |
connectedStatusChange(SubSystem subsystem,
boolean connected,
boolean wasConnected,
boolean collapseTree)
Inform the world when the connection status changes for a subsystem within a connection |
SystemConnection |
copyConnection(IProgressMonitor monitor,
SystemConnection conn,
SystemProfile targetProfile,
String newName)
Copy a SystemConnection. |
SystemProfile |
copySystemProfile(IProgressMonitor monitor,
SystemProfile profile,
String newName,
boolean makeActive)
Copy a SystemProfile. |
SystemConnection |
createConnection(String systemType,
String connectionName,
String hostName,
String description)
Create a connection object. |
SystemConnection |
createConnection(String profileName,
String systemType,
String connectionName,
String hostName,
String description)
Create a connection object. |
SystemConnection |
createConnection(String profileName,
String systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation,
ISystemNewConnectionWizardPage[] newConnectionWizardPages)
Create a connection object, given the connection pool and given all the possible attributes. |
SystemConnection |
createLocalConnection(SystemProfile profile,
String name,
String userId)
Convenience method to create a local connection, as it often that one is needed for access to the local file system. |
SystemProfile |
createSystemProfile(String profileName,
boolean makeActive)
Create a SystemProfile given its name and whether or not to make it active |
void |
deleteConnection(SystemConnection conn)
Delete an existing connection. |
boolean |
deleteSubSystem(SubSystem subsystem)
Delete a subsystem object. |
void |
deleteSystemProfile(SystemProfile profile)
Delete a SystemProfile. |
void |
disconnectAllSubSystems(SystemConnection conn)
Disconnect all subsystems for the given connection, if they are currently connected. |
void |
expandConnection(SystemConnection conn)
Expand the given connection in the RSE, if the RSE is the active perspective. |
void |
expandSubSystem(SubSystem subsystem)
Expand the given subsystem in the RSE, if the RSE is the active perspective. |
void |
fireEvent(ISystemModelChangeEvent event)
Notify all listeners of a change to a system model resource such as a connection. |
void |
fireEvent(ISystemModelChangeListener l,
ISystemModelChangeEvent event)
Notify a specific listener of a change to a system model resource such as a connection. |
void |
fireEvent(ISystemPreferenceChangeEvent event)
Notify all listeners of a change to a system preference You would not normally call this as the methods in this class call it when appropriate. |
void |
fireEvent(ISystemPreferenceChangeListener l,
ISystemPreferenceChangeEvent event)
Notify a specific listener of a change to a system preference |
void |
fireEvent(ISystemRemoteChangeEvent event)
Notify all listeners of a change to a remote resource such as a file. |
void |
fireEvent(ISystemRemoteChangeListener l,
ISystemRemoteChangeEvent event)
Notify a specific listener of a change to a remote resource such as a file. |
void |
fireEvent(ISystemResourceChangeEvent event)
Notify all listeners of a change to a system resource such as a connection. |
void |
fireEvent(ISystemResourceChangeListener l,
ISystemResourceChangeEvent event)
Notify a specific listener of a change to a system resource such as a connection. |
void |
fireModelChangeEvent(int eventType,
int resourceType,
Object resource,
String oldName)
Notify all listeners of a change to a system model resource such as a connection. |
void |
fireRemoteResourceChangeEvent(int eventType,
Object resource,
Object resourceParent,
SubSystem subsystem,
String oldName,
Viewer originatingViewer)
Notify all listeners of a change to a remote resource such as a file. |
String |
getAbsoluteNameForConnection(SystemConnection connection)
Return the absolute name for the specified connection |
String |
getAbsoluteNameForSubSystem(SubSystem subsystem)
Return the absolute name for the specified subsystem |
String[] |
getActiveSystemProfileNames()
Return the profile names currently selected by the user as his "active" profiles |
SystemProfile[] |
getActiveSystemProfiles()
Return the profiles currently selected by the user as his "active" profiles |
String[] |
getAllSystemProfileNames()
Return all defined profile names |
Vector |
getAllSystemProfileNamesVector()
Return all defined profile names as a vector |
SystemProfile[] |
getAllSystemProfiles()
Return all defined profiles |
RemoteCmdSubSystem |
getCmdSubSystem(SystemConnection connection)
Return the first command subsystem for the given connection. |
RemoteCmdSubSystemFactory |
getCmdSubSystemFactory(String systemType)
Return the RemoteCmdSubSystemFactory for the given system type. |
RemoteCmdSubSystem[] |
getCmdSubSystems(SystemConnection connection)
Return the command subsystems for the given connection. |
SystemConnection |
getConnection(SystemProfile profile,
String connectionName)
Return a SystemConnection object given a system profile containing it, and a connection name uniquely identifying it. |
int |
getConnectionCount()
Return the number of SystemConnection objects within all active profiles |
int |
getConnectionCount(String profileName)
Return the number of SystemConnection objects within the given profile |
int |
getConnectionCountWithinProfile(SystemConnection conn)
Return the number of SystemConnection objects within the given connection's owning profile |
Vector |
getConnectionNames(String profileName)
Return a vector of previously-used connection names in the given named profile. |
Vector |
getConnectionNames(SystemProfile profile)
Return a vector of previously-used connection names in the given profile. |
Vector |
getConnectionNamesForAllActiveProfiles()
Return a vector of previously-used connection names in all active profiles. |
int |
getConnectionPosition(SystemConnection conn)
Return the zero-based position of a SystemConnection object within its profile. |
SystemConnection[] |
getConnections()
Return all connections in all active profiles. |
SystemConnection[] |
getConnectionsByProfile(String profileName)
Return all connections in a given profile. |
SystemConnection[] |
getConnectionsByProfile(SystemProfile profile)
Return all connections in a given profile name. |
SystemConnection[] |
getConnectionsBySubSystemFactory(SubSystemFactory factory)
Return all connections for which there exists one or more subsystems owned by a given subsystem factory. |
SystemConnection[] |
getConnectionsBySubSystemFactoryCategory(String factoryCategory)
Return all connections for which there exists one or more subsystems owned by any a given subsystem factory that is of the given category. |
SystemConnection[] |
getConnectionsBySubSystemFactoryId(String factoryId)
Return all connections for which there exists one or more subsystems owned by a given subsystem factory, identified by factory Id |
SystemConnection[] |
getConnectionsBySystemType(String systemType)
Return all connections for all active profiles, for the given system type. |
SystemConnection[] |
getConnectionsBySystemTypes(String[] systemTypes)
Return all connections for all active profiles, for the given system types. |
RemoteFileSubSystem |
getFileSubSystem(SystemConnection connection)
Return the first file subsystem for the given connection. |
RemoteFileSubSystemFactory |
getFileSubSystemFactory(String systemType)
Return the RemoteFileSubSystemFactory for the given system type. |
String |
getFileSubSystemFactoryId(String systemType)
Return the Id of the RemoteFileSubSystemFactory for the given system type. |
RemoteFileSubSystem[] |
getFileSubSystems(SystemConnection connection)
Return the file subsystems for the given connection. |
String[] |
getHostNames()
Return array of all previously specified hostnames. |
String[] |
getHostNames(String systemType)
Return array of previously specified hostnames for a given system type. |
Exception |
getLastException()
Return last exception object caught in any method, or null if no exception. |
SystemConnection |
getLocalConnection()
Return the first connection to localhost we can find. |
boolean |
getQualifyConnectionNames()
Are connection names to be qualified by profile name? |
IRunnableContext |
getRunnableContext()
Return the current registered runnable context, or null if none registered. |
SubSystem |
getSubSystem(String absoluteSubSystemName)
Resolve a subsystem from it's absolute name |
SubSystem |
getSubSystem(String srcProfileName,
String srcConnectionName,
String subsystemFactoryId)
Resolve a subsystem from it's profile, connection and subsystem name. |
SubSystemFactory[] |
getSubSystemFactories()
Return all subsystem factories. |
SubSystemFactory[] |
getSubSystemFactoriesByCategory(String factoryCategory)
Return all subsystem factories which have declared themselves part of the given category. |
SubSystemFactory[] |
getSubSystemFactoriesBySystemType(String systemType)
Return all subsystem factories which support the given system type. |
SubSystemFactory |
getSubSystemFactory(String id)
Return the subsystemfactory, given its plugin.xml-declared id. |
SubSystemFactory |
getSubSystemFactory(SubSystem subsystem)
Return the parent subsystemfactory given a subsystem object. |
ISubSystemFactoryProxy[] |
getSubSystemFactoryProxies()
Public method to retrieve list of subsystem factory proxies registered by extension points. |
ISubSystemFactoryProxy[] |
getSubSystemFactoryProxiesByCategory(String factoryCategory)
Return all subsystem factory proxies matching a subsystem factory category. |
SubSystem[] |
getSubSystems(String factoryId)
Get a list of subsystem objects owned by the subsystem factory identified by its given plugin.xml-described id. |
SubSystem[] |
getSubSystems(String factoryId,
SystemConnection connection)
Get a list of subsystem objects for given connection, owned by the subsystem factory identified by its given plugin.xml-described id. |
SubSystem[] |
getSubSystems(SystemConnection conn)
Return list of subsystem objects for a given connection. |
SubSystem[] |
getSubSystems(SystemConnection conn,
boolean force)
Return list of subsystem objects for a given connection. |
SubSystem[] |
getSubSystemsBySubSystemFactoryCategory(String factoryCategory,
SystemConnection connection)
Get a list of subsystem objects for given connection, owned by a subsystem factory that is of the given category. |
Clipboard |
getSystemClipboard()
Returns the clipboard used for copy actions |
List |
getSystemClipboardObjects(int srcType)
Returns the list of objects on the system clipboard |
SystemProfile |
getSystemProfile(String profileName)
Get a SystemProfile given its name |
SystemProfileManager |
getSystemProfileManager()
Return singleton profile manager |
SystemScratchpad |
getSystemScratchPad()
|
boolean |
isAnySubSystemConnected(SystemConnection conn)
Return true if any of the subsystems for the given connection are currently connected |
boolean |
isRegisteredSystemResourceChangeListener(ISystemResourceChangeListener l)
Query if the ISystemResourceChangeListener is already listening for SystemResourceChange events |
SystemConnection |
moveConnection(IProgressMonitor monitor,
SystemConnection conn,
SystemProfile targetProfile,
String newName)
Move a SystemConnection to another profile. |
void |
moveConnections(String profileName,
SystemConnection[] conns,
int delta)
Move existing connections a given number of positions in the same profile. |
void |
postEvent(ISystemResourceChangeEvent event)
Notify all listeners of a change to a system resource such as a connection. |
void |
postEvent(ISystemResourceChangeListener l,
ISystemResourceChangeEvent event)
Notify a specific listener of a change to a system resource such as a connection. |
void |
removeSystemModelChangeListener(ISystemModelChangeListener l)
De-Register your interest in being told when an RSE model resource is changed. |
void |
removeSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
De-Register your interest in being told when a system preference changes |
void |
removeSystemRemoteChangeListener(ISystemRemoteChangeListener l)
De-Register your interest in being told when a remote resource is changed. |
void |
removeSystemResourceChangeListener(ISystemResourceChangeListener l)
De-Register your interest in being told when a system resource such as a connection is changed. |
void |
renameConnection(SystemConnection conn,
String newName)
Renames an existing connection. |
void |
renameSystemProfile(SystemProfile profile,
String newName)
Rename a SystemProfile. |
boolean |
restore()
Restore all connections within active profiles |
boolean |
save()
Save everything! |
boolean |
saveConnection(SystemConnection conn)
Save specific connection |
boolean |
saveConnectionPool(SystemConnectionPool pool)
Save specific connection pool |
void |
setConnectionOffline(SystemConnection conn,
boolean offline)
Update the workoffline mode for a connection. |
void |
setQualifyConnectionNames(boolean set)
Set if connection names are to be qualified by profile name |
void |
setRunnableContext(Shell shell,
IRunnableContext context)
Set the current active runnable context to be used for a progress monitor by the subsystem methods that go to the host. |
void |
setShowFilterPools(boolean show)
Reflect the user changing the preference for showing filter pools. |
void |
setShowNewConnectionPrompt(boolean show)
Reflect the user changing the preference for showing new connection prompt |
void |
setSubSystemFactoryProxies(ISubSystemFactoryProxy[] proxies)
Private method used by SystemPlugin to tell registry all registered subsystem factories. |
void |
setSystemProfileActive(SystemProfile profile,
boolean makeActive)
Make or unmake the given profile active |
void |
showRSEPerspective()
Show the RSE perspective if it is not already showing |
void |
updateConnection(Shell shell,
SystemConnection conn,
String systemType,
String connectionName,
String hostName,
String description,
String defaultUserId,
int defaultUserIdLocation)
Update an existing connection given the new information. |
Methods inherited from interface com.ibm.etools.systems.core.ui.view.ISystemViewInputProvider |
---|
getAdapter, getConnectionChildren, getShell, getSystemViewRoots, getViewer, hasConnectionChildren, hasSystemViewRoots, setShell, setViewer, showActionBar, showActions, showButtonBar, showingConnections |
Field Detail |
public static final String copyright
Method Detail |
public void showRSEPerspective()
public void expandConnection(SystemConnection conn)
public void expandSubSystem(SubSystem subsystem)
public void setRunnableContext(Shell shell, IRunnableContext context)
You must call clearRunnableContext when your dialog/wizard is disposed!
shell
- The shell of the wizard/dialog. This is recorded so it can be tested if
it is disposed before attempting to use the contextcontext
- The dialog/wizard/view that implements IRunnableContextpublic void clearRunnableContext()
public IRunnableContext getRunnableContext()
public void setSubSystemFactoryProxies(ISubSystemFactoryProxy[] proxies)
public ISubSystemFactoryProxy[] getSubSystemFactoryProxies()
public ISubSystemFactoryProxy[] getSubSystemFactoryProxiesByCategory(String factoryCategory)
ISubSystemFactoryCategories
public SubSystemFactory[] getSubSystemFactories()
public SubSystemFactory getSubSystemFactory(SubSystem subsystem)
public SubSystemFactory getSubSystemFactory(String id)
public String getFileSubSystemFactoryId(String systemType)
public RemoteFileSubSystemFactory getFileSubSystemFactory(String systemType)
public RemoteCmdSubSystemFactory getCmdSubSystemFactory(String systemType)
public SubSystemFactory[] getSubSystemFactoriesByCategory(String factoryCategory)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file. Thus, it is effecient as it need not bring to life a subsystem factory just to test its parent class type.
ISubSystemFactoryCategories
public SubSystemFactory[] getSubSystemFactoriesBySystemType(String systemType)
public boolean getQualifyConnectionNames()
public void setQualifyConnectionNames(boolean set)
public void setShowFilterPools(boolean show)
public void setShowNewConnectionPrompt(boolean show)
public SystemProfileManager getSystemProfileManager()
public SystemProfile[] getActiveSystemProfiles()
public String[] getActiveSystemProfileNames()
public SystemProfile[] getAllSystemProfiles()
public String[] getAllSystemProfileNames()
public Vector getAllSystemProfileNamesVector()
public SystemProfile getSystemProfile(String profileName)
public SystemProfile createSystemProfile(String profileName, boolean makeActive) throws Exception
Exception
public SystemProfile copySystemProfile(IProgressMonitor monitor, SystemProfile profile, String newName, boolean makeActive) throws Exception
monitor
- Progress monitor to reflect each step of the operationprofile
- Source profile to copynewName
- Unique name to give copied profilemakeActive
- whether to make the copied profile active or not
Exception
public void renameSystemProfile(SystemProfile profile, String newName) throws Exception
Exception
public void deleteSystemProfile(SystemProfile profile) throws Exception
As well, all the filter pools for this profile are deleted, and subsequently any cross references from subsystems in connections in other profiles are removed.
A delete event is fired for every connection deleted.
Exception
public void setSystemProfileActive(SystemProfile profile, boolean makeActive)
public SubSystem[] getSubSystems(SystemConnection conn)
public SubSystem[] getSubSystems(SystemConnection conn, boolean force)
public SubSystem getSubSystem(String srcProfileName, String srcConnectionName, String subsystemFactoryId)
srcProfileName
- the name of the profilesrcConnectionName
- the name of the connectionsubsystemFactoryId
- the id of the subsystem
public SubSystem getSubSystem(String absoluteSubSystemName)
absoluteSubSystemName
- the name of the subsystem
public String getAbsoluteNameForSubSystem(SubSystem subsystem)
public String getAbsoluteNameForConnection(SystemConnection connection)
public SubSystem[] getSubSystems(String factoryId)
This is a list that of all subsystems for all connections owned by the factory.
public SubSystem[] getSubSystems(String factoryId, SystemConnection connection)
public SubSystem[] getSubSystemsBySubSystemFactoryCategory(String factoryCategory, SystemConnection connection)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file.
ISubSystemFactoryCategories
public RemoteFileSubSystem[] getFileSubSystems(SystemConnection connection)
RemoteFileSubSystem
public RemoteFileSubSystem getFileSubSystem(SystemConnection connection)
RemoteFileSubSystem
public RemoteCmdSubSystem[] getCmdSubSystems(SystemConnection connection)
RemoteCmdSubSystem
public RemoteCmdSubSystem getCmdSubSystem(SystemConnection connection)
RemoteCmdSubSystem
public boolean deleteSubSystem(SubSystem subsystem)
public SystemConnection getLocalConnection()
createLocalConnection(SystemProfile, String, String)
.
public SystemConnection[] getConnections()
public SystemConnection[] getConnectionsByProfile(SystemProfile profile)
public SystemConnection[] getConnectionsByProfile(String profileName)
public SystemConnection[] getConnectionsBySubSystemFactory(SubSystemFactory factory)
getSubSystemFactory(String)
public SystemConnection[] getConnectionsBySubSystemFactoryId(String factoryId)
public SystemConnection[] getConnectionsBySubSystemFactoryCategory(String factoryCategory)
This looks for a match on the "category" of the subsystem factory's xml declaration in its plugin.xml file. Thus, it is effecient as it need not bring to life a subsystem factory just to test its parent class type.
ISubSystemFactoryCategories
public SystemConnection[] getConnectionsBySystemType(String systemType)
public SystemConnection[] getConnectionsBySystemTypes(String[] systemTypes)
public SystemConnection getConnection(SystemProfile profile, String connectionName)
public int getConnectionPosition(SystemConnection conn)
public int getConnectionCount(String profileName)
public int getConnectionCountWithinProfile(SystemConnection conn)
public int getConnectionCount()
public Vector getConnectionNames(String profileName)
public Vector getConnectionNames(SystemProfile profile)
public Vector getConnectionNamesForAllActiveProfiles()
public String[] getHostNames()
public String[] getHostNames(String systemType)
public Clipboard getSystemClipboard()
public List getSystemClipboardObjects(int srcType)
srcType
- the transfer type
public SystemScratchpad getSystemScratchPad()
public SystemConnection createLocalConnection(SystemProfile profile, String name, String userId)
profile
- - the profile to create this connection in. If null is passed, we first
try to find the default private profile and use it, else we take the first active profile.name
- - the name to give this profile. Must be unique and non-null.userId
- - the user ID to use as the default for the subsystems. Can be null.public SystemConnection createConnection(String profileName, String systemType, String connectionName, String hostName, String description, String defaultUserId, int defaultUserIdLocation, ISystemNewConnectionWizardPage[] newConnectionWizardPages) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE POOL YOU SPECIFY. THE POOL IS ALSO SAVED TO DISK.
This method:
profileName
- Name of the system profile the connection is to be added to.systemType
- system type matching one of the system type names defined via the
systemtype extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.defaultUserId
- userId to use as the default for the subsystems.defaultUserIdLocation
- one of the constants in ISystemUserIdConstants
that tells us where to set the user IdnewConnectionWizardPages
- when called from the New Connection wizard this is union of the list of additional
wizard pages supplied by the subsystem factories that pertain to the specified system type. Else null.
Exception
public SystemConnection createConnection(String profileName, String systemType, String connectionName, String hostName, String description) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE PROFILE YOU SPECIFY. THE PROFILE IS ALSO SAVED TO DISK.
This method:
profileName
- Name of the system profile the connection is to be added to.systemType
- system type matching one of the system type names defined via the
systemtype extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.
Exception
public SystemConnection createConnection(String systemType, String connectionName, String hostName, String description) throws Exception
THE RESULTING CONNECTION OBJECT IS ADDED TO THE LIST OF EXISTING CONNECTIONS FOR YOU, IN THE DEFAULT PRIVATE PROFILE, WHICH IS SAVED TO DISK.
This method:
systemType
- system type matching one of the system type names defined via the
systemtype extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.
Exception
public void updateConnection(Shell shell, SystemConnection conn, String systemType, String connectionName, String hostName, String description, String defaultUserId, int defaultUserIdLocation)
conn
- SystemConnection to be updatedsystemType
- system type matching one of the system type names defined via the
systemtype extension point.connectionName
- unique connection name.hostName
- ip name of host.description
- optional description of the connection. Can be null.defaultUserIdLocation
- one of the constants in ISystemUserIdConstants
that tells us where to set the user IddefaultUserId
- userId to use as the default for the subsystems.public void setConnectionOffline(SystemConnection conn, boolean offline)
conn
- SystemConnection to changeoffline
- true if connection should be set offline, false if it should be set onlinepublic void deleteConnection(SystemConnection conn)
Lots to do here:
public void renameConnection(SystemConnection conn, String newName) throws Exception
Lots to do here:
Exception
public void moveConnections(String profileName, SystemConnection[] conns, int delta)
conns
- Array of SystemConnections to move.public SystemConnection copyConnection(IProgressMonitor monitor, SystemConnection conn, SystemProfile targetProfile, String newName) throws Exception
monitor
- Progress monitor to reflect each step of the operationconn
- The connection to copytargetProfile
- What profile to copy intonewName
- Unique name to give copied profile
Exception
public SystemConnection moveConnection(IProgressMonitor monitor, SystemConnection conn, SystemProfile targetProfile, String newName) throws Exception
monitor
- Progress monitor to reflect each step of the operationconn
- The connection to movetargetProfile
- What profile to move tonewName
- Unique name to give moved profile
Exception
public boolean isAnySubSystemConnected(SystemConnection conn)
public boolean areAllSubSystemsConnected(SystemConnection conn)
public void disconnectAllSubSystems(SystemConnection conn)
public void connectedStatusChange(SubSystem subsystem, boolean connected, boolean wasConnected)
public void connectedStatusChange(SubSystem subsystem, boolean connected, boolean wasConnected, boolean collapseTree)
public void addSystemResourceChangeListener(ISystemResourceChangeListener l)
public void removeSystemResourceChangeListener(ISystemResourceChangeListener l)
public boolean isRegisteredSystemResourceChangeListener(ISystemResourceChangeListener l)
public void fireEvent(ISystemResourceChangeEvent event)
public void fireEvent(ISystemResourceChangeListener l, ISystemResourceChangeEvent event)
public void postEvent(ISystemResourceChangeEvent event)
This version calls fireEvent at the next reasonable opportunity, leveraging SWT's Display.asyncExec() method.
public void postEvent(ISystemResourceChangeListener l, ISystemResourceChangeEvent event)
This version calls fireEvent at the next reasonable opportunity, leveraging SWT's Display.asyncExec() method.
public void addSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
public void removeSystemPreferenceChangeListener(ISystemPreferenceChangeListener l)
public void fireEvent(ISystemPreferenceChangeEvent event)
public void fireEvent(ISystemPreferenceChangeListener l, ISystemPreferenceChangeEvent event)
public void addSystemModelChangeListener(ISystemModelChangeListener l)
public void removeSystemModelChangeListener(ISystemModelChangeListener l)
public void fireEvent(ISystemModelChangeEvent event)
public void fireModelChangeEvent(int eventType, int resourceType, Object resource, String oldName)
public void fireEvent(ISystemModelChangeListener l, ISystemModelChangeEvent event)
public void addSystemRemoteChangeListener(ISystemRemoteChangeListener l)
public void removeSystemRemoteChangeListener(ISystemRemoteChangeListener l)
public void fireEvent(ISystemRemoteChangeEvent event)
public void fireRemoteResourceChangeEvent(int eventType, Object resource, Object resourceParent, SubSystem subsystem, String oldName, Viewer originatingViewer)
eventType
- - one of the constants from ISystemRemoteChangeEvents
resource
- - the remote resource object, or absolute name of the resource as would be given by calling getAbsoluteName on its remote adapterresourceParent
- - the remote resource's parent object, or absolute name, if that is known. If it is non-null, this will aid in refreshing occurences of that parent.subsystem
- - the subsystem which contains this remote resource. This allows the search for impacts to be
limited to subsystems of the same parent factory, and to connections with the same hostname as the subsystem's connection.oldName
- - on a rename operation, this is the absolute name of the resource prior to the renameoriginatingViewer
- - optional. If set, this gives the viewer a clue that it should select the affected resource after refreshing its parent.
This saves sending a separate event to reveal and select the new created resource on a create event, for example.public void fireEvent(ISystemRemoteChangeListener l, ISystemRemoteChangeEvent event)
public Exception getLastException()
public boolean save()
public boolean saveConnectionPool(SystemConnectionPool pool)
public boolean saveConnection(SystemConnection conn)
public boolean restore()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |