Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.model
Class SystemResourceChangeEventUI


java.lang.Object
  extended by 

java.util.EventObject
      extended by 

org.eclipse.rse.core.events.SystemResourceChangeEvent
          extended by 
org.eclipse.rse.ui.model.SystemResourceChangeEventUI
All Implemented Interfaces:
Serializable, ISystemResourceChangeEvent

public class SystemResourceChangeEventUI
extends SystemResourceChangeEvent

Event object sent to SystemResourceChangeListeners when a remote system object is created, changed, removed, etc. This extends the base event object to include a reference to an orginating viewer.

See Also:
ISystemResourceChangeEvents, Serialized Form

Field Summary
 
Fields inherited from class java.util. EventObject
source
 
Constructor Summary
SystemResourceChangeEventUI ( Object[] source, int type, Object parent)
          Constructor for SystemResourceChangeEvent when the source is multipe resources.
SystemResourceChangeEventUI ( Object source, int type, Object parent)
          Constructor for SystemResourceChangeEvent.
 
Method Summary
  Viewer getOriginatingViewer ()
          Get the originating viewer.
  Item getViewerItem ()
          Get the viewer Item of the currently selected object.
 void setOriginatingViewer ( Viewer viewer)
          Set the originating viewer.
 void setViewerItem ( Item item)
          Set the viewer Item of the currently selected object.
 
Methods inherited from class org.eclipse.rse.core.events. SystemResourceChangeEvent
getGrandParent, getMultiSource, getParent, getPosition, getRelativePrevious, getType, setGrandParent, setParent, setPosition, setRelativePrevious, setType
 
Methods inherited from class java.util. EventObject
getSource, toString
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.core.events. ISystemResourceChangeEvent
getSource
 

Constructor Detail

SystemResourceChangeEventUI

public SystemResourceChangeEventUI(
Object source,
                                   int type,
                                   
Object parent)
Constructor for SystemResourceChangeEvent.

Parameters:
source - The object that was added,deleted,renamed,changed.
type - The type of event, one of ISystemChangeEvent constants.
parent - The parent of the object that was added or deleted.
See Also:
ISystemResourceChangeEvents

SystemResourceChangeEventUI

public SystemResourceChangeEventUI(
Object[] source,
                                   int type,
                                   
Object parent)
Constructor for SystemResourceChangeEvent when the source is multipe resources.

Parameters:
source - The array of objects that were added,deleted,renamed,changed.
type - The type of event, one of ISystemChangeEvent constants.
parent - The parent of the object that was added or deleted.
See Also:
ISystemResourceChangeEvents
Method Detail

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.

Parameters:
viewer - the originating Viewer.

getOriginatingViewer

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

Returns:
the originating Viewer.

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.

Parameters:
item - the viewer item of the selected object.

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.

Returns:
the viewer item of the selected object.

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire