Remote Systems
v6.4.1

com.ibm.etools.systems.model
Interface ISystemResourceChangeEvent

All Superinterfaces:
ISystemResourceChangeEvents
All Known Implementing Classes:
SystemResourceChangeEvent

public interface ISystemResourceChangeEvent
extends ISystemResourceChangeEvents

Interface of event sent when a remote system resource changes. These events are mainly for internal use. BPs/ISVs should instead fire and monitor for ISystemModelChangeEvent.

See Also:
ISystemResourceChangeEvents

Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.model.ISystemResourceChangeEvents
EVENT_ADD, EVENT_ADD_FILTER_REFERENCE, EVENT_ADD_FILTERSTRING_REFERENCE, EVENT_ADD_MANY, EVENT_ADD_RELATIVE, EVENT_CHANGE_CHILDREN, EVENT_CHANGE_FILTER_REFERENCE, EVENT_CHANGE_FILTERSTRING_REFERENCE, EVENT_COLLAPSE_ALL, EVENT_COLLAPSE_SELECTED, EVENT_COMMAND_FINISHED, EVENT_COMMAND_HISTORY_UPDATE, EVENT_COMMAND_MESSAGE, EVENT_COMMAND_RUN, EVENT_COMMAND_SHELL_FINISHED, EVENT_COMMAND_SHELL_REMOVED, EVENT_COMPILE_COMMAND_RUN, EVENT_DELETE, EVENT_DELETE_FILTER_REFERENCE, EVENT_DELETE_FILTERSTRING_REFERENCE, EVENT_DELETE_MANY, EVENT_EXPAND_SELECTED, EVENT_ICON_CHANGE, EVENT_MOVE_FILTER_REFERENCES, EVENT_MOVE_FILTERSTRING_REFERENCES, EVENT_MOVE_MANY, EVENT_MUST_COLLAPSE, EVENT_PROPERTY_CHANGE, EVENT_PROPERTYSHEET_UPDATE, EVENT_REFRESH, EVENT_REFRESH_REMOTE, EVENT_REFRESH_SELECTED, EVENT_REFRESH_SELECTED_FILTER, EVENT_REFRESH_SELECTED_PARENT, EVENT_RENAME, EVENT_RENAME_FILTER_REFERENCE, EVENT_REPLACE_CHILDREN, EVENT_REVEAL_AND_SELECT, EVENT_SEARCH_FINISHED, EVENT_SELECT, EVENT_SELECT_EXPAND, EVENT_SELECT_REMOTE, PROPERTYSHEET_UPDATE_EVENT
 
Method Summary
 Object getGrandParent()
          Returns the grandparent of the object source.
 Object[] getMultiSource()
          For multi-target events, return the array of source targets.
 Viewer getOriginatingViewer()
          Get the originating viewer.
 Object getParent()
          Returns the parent of the object source.
 int getPosition()
          Return the position value.
 Object getRelativePrevious()
          For relative add events, return the previous node this is being added after
 Object getSource()
          Returns an object identifying the source of this event.
 int getType()
          Returns the type of the event.
 Item getViewerItem()
          Get the viewer Item of the currently selected object.
 void setOriginatingViewer(Viewer viewer)
          Set the originating viewer.
 void setParent(Object parent)
          Set the parent
 void setPosition(int position)
          Set the position value.
 void setRelativePrevious(Object previousObject)
          For relative add events, set the previous node this is being added after
 void setType(int type)
          Set the type
 void setViewerItem(Item item)
          Set the viewer Item of the currently selected object.
 

Field Detail

copyright

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

getSource

public Object getSource()
Returns an object identifying the source of this event.

Returns:
an object identifying the source of this event
See Also:
EventObject

getMultiSource

public Object[] getMultiSource()
For multi-target events, return the array of source targets.


getParent

public Object getParent()
Returns the parent of the object source. Only quaranteed to be set for additions and deletions.

Returns:
an object identifying the parent of the source of this event

setParent

public void setParent(Object parent)
Set the parent


getGrandParent

public Object getGrandParent()
Returns the grandparent of the object source. Only quaranteed to be set for special case events, which have a special contract with the SystemView

Returns:
an object identifying the grandparent of the source of this event

getPosition

public int getPosition()
Return the position value. Used in ADD events.

Returns:
position to add the new item to. A negative number indicates an append operation

setPosition

public void setPosition(int position)
Set the position value. Used in ADD events.

Parameters:
position - zero-based position to insert the new item. A negative number indicates an append operation

getRelativePrevious

public Object getRelativePrevious()
For relative add events, return the previous node this is being added after


setRelativePrevious

public void setRelativePrevious(Object previousObject)
For relative add events, set the previous node this is being added after


getType

public int getType()
Returns the type of the event.

Returns:
a type that is one of the constants in this interface
See Also:
ISystemResourceChangeEvents

setType

public void setType(int type)
Set the type

See Also:
ISystemResourceChangeEvents

setOriginatingViewer

public void setOriginatingViewer(Viewer viewer)
Set the originating viewer. For some events, this allows responding viewers to decide if the event applies to them


getOriginatingViewer

public Viewer getOriginatingViewer()
Get the originating viewer. For some events, this allows responding viewers to decide if the event applies to them


setViewerItem

public void setViewerItem(Item item)
Set the viewer Item of the currently selected object. This is a clue when we want to expand and select only the specific instance of this widget in this view.


getViewerItem

public Item getViewerItem()
Get the viewer Item of the currently selected object. This is a clue when we want to expand and select only the specific instance of this widget in this view.


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.