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.core.model
Interface ISystemViewInputProvider

All Superinterfaces:
IAdaptable
All Known Subinterfaces:
ISystemFileAPIProvider, ISystemRegistry, ISystemResourceSelectionInputProvider, ISystemSelectRemoteObjectAPIProvider
All Known Implementing Classes:
SystemAbstractAPIProvider

public interface ISystemViewInputProvider
extends IAdaptable

Abstraction for any object that wishes to be a roots-provider for the SystemView tree viewer.


Method Summary
  Object getAdapter ( Class adapterType)
           
  Object[] getConnectionChildren ( IHost selectedConnection)
          This method is called by the connection adapter when the user expands a connection.
  Object[] getSystemViewRoots ()
          Return the child objects to constitute the root elements in the system view tree.
  Object getViewer ()
          Deprecated. use other methods for getting the active viewer.
 boolean hasConnectionChildren ( IHost selectedConnection)
          This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection.
 boolean hasSystemViewRoots ()
          Test if getSystemViewRoots() will return a non-empty list
 void setViewer ( Object viewer)
          Set the viewer in case it is needed for anything.
 boolean showingConnections ()
           
 

Method Detail

getSystemViewRoots


Object[] getSystemViewRoots()
Return the child objects to constitute the root elements in the system view tree.

Returns:
Array of root root elements for the system view tree

hasSystemViewRoots

boolean hasSystemViewRoots()
Test if getSystemViewRoots() will return a non-empty list

Returns:
true if root elements are available, or false otherwise.

showingConnections

boolean showingConnections()
Returns:
true if we are listing connections or not, so we know whether we are interested in connection-add events

getConnectionChildren


Object[] getConnectionChildren(
IHost selectedConnection)
This method is called by the connection adapter when the user expands a connection. This method must return the child objects to show for that connection.

Parameters:
selectedConnection - the connection undergoing expansion
Returns:
the list of objects under the connection

hasConnectionChildren

boolean hasConnectionChildren(
IHost selectedConnection)
This method is called by the connection adapter when deciding to show a plus-sign or not beside a connection.

Parameters:
selectedConnection - the connection being shown in the viewer
Returns:
true if this connection has children to be shown.

getAdapter


Object getAdapter(
Class adapterType)
Specified by:
getAdapter in interface IAdaptable

setViewer

void setViewer(
Object viewer)
Set the viewer in case it is needed for anything. The label and content provider will call this.

Parameters:
viewer - the viewer that uses this provider

getViewer


Object getViewer()
Deprecated. use other methods for getting the active viewer.

Return the viewer we are currently associated with

Returns:
the viewer we are currently associated with

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