sk.uniba.euromath.plugin.views.outline
Class OutlineItemsLabelProvider

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.LabelProvider
          extended by sk.uniba.euromath.plugin.views.outline.OutlineItemsLabelProvider
All Implemented Interfaces:
IBaseLabelProvider, ILabelProvider

 class OutlineItemsLabelProvider
extends LabelProvider

Provides images and labels for outline items. Every node type has different image and label

Author:
Tomáš Studva 2.11.2005

Field Summary
protected  boolean inverted
          Inverted images flag.
protected  ImageRegistry registry
          Image registry for image labels.
 
Constructor Summary
OutlineItemsLabelProvider(EditorSite site)
          Constructor.
 
Method Summary
 void dispose()
           
 Image getImage(Object obj)
          Returns image for obj.
 ImageRegistry getImageRegistry()
          Getter for image registry.
 String getText(Object obj)
          Returns text, label for object.
 void setWithInvertedImages(boolean b)
           
 
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
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
 

Field Detail

registry

protected ImageRegistry registry
Image registry for image labels.


inverted

protected boolean inverted
Inverted images flag.

Constructor Detail

OutlineItemsLabelProvider

public OutlineItemsLabelProvider(EditorSite site)
Constructor.

Parameters:
site -
xmlAccess -
Method Detail

dispose

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

getImage

public Image getImage(Object obj)
Returns image for obj. Depends on image key and inverted flag. Images of not visualized nodes have inverted image.

Specified by:
getImage in interface ILabelProvider
Overrides:
getImage in class LabelProvider
Parameters:
obj - must be instance of outline item

getImageRegistry

public ImageRegistry getImageRegistry()
Getter for image registry.

Returns:
image registry holding images registered under keys from OutlineConsts.

getText

public String getText(Object obj)
Returns text, label for object.

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

setWithInvertedImages

public void setWithInvertedImages(boolean b)
Parameters:
b -


Copyright 2003-2003-2006 null. All Rights Reserved.