RSE
Release 3.0

org.eclipse.rse.ui.view
Class SystemAdapterHelpers

java.lang.Object
  extended by org.eclipse.rse.ui.view.SystemAdapterHelpers

public class SystemAdapterHelpers
extends Object

This class has static helper methods that will get an adapter given an object.


Constructor Summary
SystemAdapterHelpers()
           
 
Method Summary
static ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElementAdapter for the given remote object.
static ISystemRemoteElementAdapter getRemoteAdapter(Object o, Viewer viewer)
          Overload to use when calling from a viewer.
static ISystemViewElementAdapter getViewAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
static ISystemViewElementAdapter getViewAdapter(Object o, Viewer viewer)
          Overload to use when calling from a viewer.
static ISystemViewElementAdapter getViewAdapter(Object o, Viewer viewer, ISystemViewInputProvider inputProvider)
          Overload to use when calling from a viewer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemAdapterHelpers

public SystemAdapterHelpers()
Method Detail

getViewAdapter

public static ISystemViewElementAdapter getViewAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


getViewAdapter

public static ISystemViewElementAdapter getViewAdapter(Object o,
                                                       Viewer viewer)
Overload to use when calling from a viewer. This not only finds and returns the adapter, but also sets its viewer to the given viewer. Many actions rely on this being set.


getViewAdapter

public static ISystemViewElementAdapter getViewAdapter(Object o,
                                                       Viewer viewer,
                                                       ISystemViewInputProvider inputProvider)
Overload to use when calling from a viewer. This not only finds and returns the adapter, but also sets its viewer and input provider to the given viewer. Many actions rely on this being set.


getRemoteAdapter

public static ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElementAdapter for the given remote object. Returns null if this object does not adaptable to this.


getRemoteAdapter

public static ISystemRemoteElementAdapter getRemoteAdapter(Object o,
                                                           Viewer viewer)
Overload to use when calling from a viewer. This not only finds and returns the adapter, but also sets its viewer to the given viewer. Many actions rely on this being set.


RSE
Release 3.0

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