uk.ac.kcl.cch.jb.pliny.views.utils
Class ResourceExplorerCellModifier

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.views.utils.ResourceExplorerCellModifier
All Implemented Interfaces:
org.eclipse.jface.viewers.ICellModifier

public class ResourceExplorerCellModifier
extends Object
implements org.eclipse.jface.viewers.ICellModifier

a JFace ICellModifier that manages the direct editing of the names of item within the Resource Explorer, and ResourceExplorer-like viewParts.

Author:
John Bradley

Constructor Summary
ResourceExplorerCellModifier(org.eclipse.jface.viewers.TreeViewer viewer, IResourceTreeView myPart)
           
 
Method Summary
 boolean canModify(Object element, String property)
           
 Object getValue(Object element, String property)
           
 void modify(Object item, String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceExplorerCellModifier

public ResourceExplorerCellModifier(org.eclipse.jface.viewers.TreeViewer viewer,
                                    IResourceTreeView myPart)
Method Detail

canModify

public boolean canModify(Object element,
                         String property)
Specified by:
canModify in interface org.eclipse.jface.viewers.ICellModifier

getValue

public Object getValue(Object element,
                       String property)
Specified by:
getValue in interface org.eclipse.jface.viewers.ICellModifier

modify

public void modify(Object item,
                   String property,
                   Object value)
Specified by:
modify in interface org.eclipse.jface.viewers.ICellModifier