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

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

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