Remote Systems
v6.4.1

com.ibm.etools.systems.model
Interface ISystemRemoteChangeEvent

All Known Implementing Classes:
SystemRemoteChangeEvent

public interface ISystemRemoteChangeEvent

A change event passed to you when listening for remote resource changes. Note these are post-events, sent after the fact.


Field Summary
static String copyright
           
 
Method Summary
 int getEventType()
          Get the event type, such as ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED.
 String getOldName()
          Get the old name of the resource, in the event of a resource rename.
 Viewer getOriginatingViewer()
          Get the originating viewer from which this remote resource change event comes from.
 Object getResource()
          Get the resource that this event applies to.
 Object getResourceParent()
          Get the parent remote object for the affected remote object.
 SubSystem getSubSystem()
          Get the subsystem in which this resource resides.
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Method Detail

getEventType

public int getEventType()
Get the event type, such as ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CREATED.

See Also:
ISystemRemoteChangeEvents

getResource

public Object getResource()
Get the resource that this event applies to. It must either be the binary object of the resource, or the absolute name of the resource.


getResourceParent

public Object getResourceParent()
Get the parent remote object for the affected remote object. This is not always known, but when it is (ie, non null) then it can be used to refresh all expanded occurrences of that parent


getOldName

public String getOldName()
Get the old name of the resource, in the event of a resource rename. Null for other event types.


getSubSystem

public SubSystem getSubSystem()
Get the subsystem in which this resource resides. 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.


getOriginatingViewer

public Viewer getOriginatingViewer()
Get the originating viewer from which this remote resource change event comes from. The combination of this, if non-null, plus the selected parent, allows viewers to decide whether to update the selection within the parent resource, after refreshing that resource.


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.