org.eclipse.rse.ui.view
Class SystemAdapterHelpers
java.lang.Object
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.
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
SystemAdapterHelpers
public SystemAdapterHelpers()
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.
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.