Remote Systems
v6.4.1

com.ibm.etools.systems.core
Class SystemAdapterHelpers

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemAdapterHelpers

public class SystemAdapterHelpers
extends Object

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


Field Summary
static String copyright
           
 
Constructor Summary
SystemAdapterHelpers()
           
 
Method Summary
static ISystemViewElementAdapter getAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
static ISystemViewElementAdapter getAdapter(Object o, Viewer viewer)
          Overload to use when calling from a viewer.
static ISystemViewElementAdapter getAdapter(Object o, Viewer viewer, ISystemViewInputProvider inputProvider)
          Overload to use when calling from a viewer.
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.
 SystemViewAdapterFactory getSystemViewAdapterFactory()
          For pathpath access to our adapters for non-local objects in our model.
 SystemViewFileAdapterFactory getSystemViewFileAdapterFactory()
          For pathpath access to our adapters for remote universal file objects.
 SystemViewOutputAdapterFactory getSystemViewOutputAdapterFactory()
          For pathpath access to our adapters for viewable remote output objects.
 SystemViewSearchResultAdapterFactory getSystemViewRemoteOutputAdapterFactory()
          For pathpath access to our adapters for viewable remote search result objects.
 SystemViewSearchResultSetAdapterFactory getSystemViewSearchResultSetAdapterFactory()
          For pathpath access to our adapters for searchable result output objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

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

SystemAdapterHelpers

public SystemAdapterHelpers()
Method Detail

getAdapter

public static ISystemViewElementAdapter getAdapter(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.


getAdapter

public static ISystemViewElementAdapter getAdapter(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.


getAdapter

public static ISystemViewElementAdapter getAdapter(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.


getSystemViewAdapterFactory

public SystemViewAdapterFactory getSystemViewAdapterFactory()
For pathpath access to our adapters for non-local objects in our model. Exploits the knowledge we use singleton adapters.


getSystemViewFileAdapterFactory

public SystemViewFileAdapterFactory getSystemViewFileAdapterFactory()
For pathpath access to our adapters for remote universal file objects. Exploits the knowledge we use singleton adapters.


getSystemViewOutputAdapterFactory

public SystemViewOutputAdapterFactory getSystemViewOutputAdapterFactory()
For pathpath access to our adapters for viewable remote output objects. Exploits the knowledge we use singleton adapters.


getSystemViewRemoteOutputAdapterFactory

public SystemViewSearchResultAdapterFactory getSystemViewRemoteOutputAdapterFactory()
For pathpath access to our adapters for viewable remote search result objects. Exploits the knowledge we use singleton adapters.


getSystemViewSearchResultSetAdapterFactory

public SystemViewSearchResultSetAdapterFactory getSystemViewSearchResultSetAdapterFactory()
For pathpath access to our adapters for searchable result output objects. Exploits the knowledge we use singleton adapters.


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.