RSE
Release 1.0

org.eclipse.rse.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.


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

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 ISubSystem 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.


RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.