com.ibm.carma.ui.view
Class CarmaDecorator

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.jface.viewers.LabelProvider
          extended by com.ibm.carma.ui.view.CarmaDecorator
All Implemented Interfaces:
IResourceStateChangeListener, java.util.EventListener, org.eclipse.jface.viewers.IBaseLabelProvider, org.eclipse.jface.viewers.ILabelProvider, org.eclipse.jface.viewers.ILightweightLabelDecorator

public class CarmaDecorator
extends org.eclipse.jface.viewers.LabelProvider
implements org.eclipse.jface.viewers.ILightweightLabelDecorator, IResourceStateChangeListener

This class is the LabelDecorator that is used to Decorate CARMA Projects in the navigator.


Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
CarmaDecorator()
          Creates the decorator
 
Method Summary
 void decorate(java.lang.Object element, org.eclipse.jface.viewers.IDecoration decoration)
           
 void dispose()
           
 boolean isLabelProperty(java.lang.Object element, java.lang.String property)
           
 void projectConfigured(ICARMAResourceReference project)
          Notification that a project has been associated with a CARMA hierachy item
 void projectDeconfigured(ICARMAResourceReference project)
          Notification that a project has been un-associated with a CARMA hierachy item
 void resourceModified(ICARMAResourceReference[] references)
          Notification that a project has been modified within a CARMA associated project
 
Methods inherited from class org.eclipse.jface.viewers.LabelProvider
addListener, getImage, getText, removeListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
addListener, removeListener
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

CarmaDecorator

public CarmaDecorator()
Creates the decorator

Method Detail

decorate

public void decorate(java.lang.Object element,
                     org.eclipse.jface.viewers.IDecoration decoration)
Specified by:
decorate in interface org.eclipse.jface.viewers.ILightweightLabelDecorator

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.viewers.IBaseLabelProvider
Overrides:
dispose in class org.eclipse.jface.viewers.LabelProvider

isLabelProperty

public boolean isLabelProperty(java.lang.Object element,
                               java.lang.String property)
Specified by:
isLabelProperty in interface org.eclipse.jface.viewers.IBaseLabelProvider
Overrides:
isLabelProperty in class org.eclipse.jface.viewers.LabelProvider

projectConfigured

public void projectConfigured(ICARMAResourceReference project)
Description copied from interface: IResourceStateChangeListener
Notification that a project has been associated with a CARMA hierachy item

Specified by:
projectConfigured in interface IResourceStateChangeListener
Parameters:
project - the reference to the associated project

projectDeconfigured

public void projectDeconfigured(ICARMAResourceReference project)
Description copied from interface: IResourceStateChangeListener
Notification that a project has been un-associated with a CARMA hierachy item

Specified by:
projectDeconfigured in interface IResourceStateChangeListener
Parameters:
project - the reference to the associated project

resourceModified

public void resourceModified(ICARMAResourceReference[] references)
Description copied from interface: IResourceStateChangeListener
Notification that a project has been modified within a CARMA associated project

Specified by:
resourceModified in interface IResourceStateChangeListener
Parameters:
references - the references to the modified resources