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.ui.dialogs
Class SystemSimpleContentProvider


java.lang.Object
  extended by 

org.eclipse.core.commands.common.EventManager
      extended by 

org.eclipse.jface.viewers.BaseLabelProvider
          extended by 

org.eclipse.jface.viewers.LabelProvider
              extended by 
org.eclipse.rse.ui.dialogs.SystemSimpleContentProvider
All Implemented Interfaces:
IBaseLabelProvider, IContentProvider, ILabelProvider, IStructuredContentProvider, ITreeContentProvider

public class SystemSimpleContentProvider
extends LabelProvider
implements ITreeContentProvider, ILabelProvider

When we need to populate a TreeViewer in a dialog, we can use the SystemSimpleContentElement class to represent each element, and then use this provider to drive the tree.

See Also:
SystemSimpleContentElement, SystemSimpleSelectDialog

Constructor Summary
SystemSimpleContentProvider ()
          Constructor for SystemSelectFilterPoolContentProvider
 
Method Summary
 void dispose ()
           
  Object[] getChildren ( Object element)
           
protected   SystemSimpleContentElement getElement ( Object element)
          Casts the given object to SystemSimpleContentElement
  Object[] getElements ( Object element)
           
  Image getImage ( Object element)
          Returns the image for the given object.
protected   Image getImageFromDescriptor ( ImageDescriptor descriptor)
          Returns the image for the given object, given its image descriptor
  Object getParent ( Object element)
           
  String getText ( Object element)
          Returns the label text for the given object.
 boolean hasChildren ( Object element)
           
 void inputChanged ( Viewer viewer, Object oldInput, Object newInput)
           
 
Methods inherited from class org.eclipse.jface.viewers. BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
 
Methods inherited from class org.eclipse.core.commands.common. EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers. IBaseLabelProvider
addListener, isLabelProperty, removeListener
 

Constructor Detail

SystemSimpleContentProvider

public SystemSimpleContentProvider()
Constructor for SystemSelectFilterPoolContentProvider

Method Detail

getChildren

public 
Object[] getChildren(
Object element)
Specified by:
getChildren in interface ITreeContentProvider

getParent

public 
Object getParent(
Object element)
Specified by:
getParent in interface ITreeContentProvider

hasChildren

public boolean hasChildren(
Object element)
Specified by:
hasChildren in interface ITreeContentProvider

getElements

public 
Object[] getElements(
Object element)
Specified by:
getElements in interface IStructuredContentProvider

dispose

public void dispose()
Specified by:
dispose in interface IBaseLabelProvider
Specified by:
dispose in interface IContentProvider
Overrides:
dispose in class BaseLabelProvider

inputChanged

public void inputChanged(
Viewer viewer,
                         
Object oldInput,
                         
Object newInput)
Specified by:
inputChanged in interface IContentProvider

getImage

public 
Image getImage(
Object element)
Returns the image for the given object.

Specified by:
getImage in interface ILabelProvider
Overrides:
getImage in class LabelProvider

getText

public 
String getText(
Object element)
Returns the label text for the given object.

Specified by:
getText in interface ILabelProvider
Overrides:
getText in class LabelProvider

getElement

protected 
SystemSimpleContentElement getElement(
Object element)
Casts the given object to SystemSimpleContentElement


getImageFromDescriptor

protected 
Image getImageFromDescriptor(
ImageDescriptor descriptor)
Returns the image for the given object, given its image descriptor


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