SAM

org.topcased.modeler.sam.edit.policies
Class SamLabelDirectEditPolicy

java.lang.Object
  extended by LabelDirectEditPolicy
      extended by org.topcased.modeler.sam.edit.policies.SamLabelDirectEditPolicy

public class SamLabelDirectEditPolicy
extends LabelDirectEditPolicy

Custom edit policy so that elements having a not null isInstanceOf reference cannot be direcly edited.


Constructor Summary
SamLabelDirectEditPolicy()
           
 
Method Summary
protected  org.eclipse.gef.commands.Command getDirectEditCommand(org.eclipse.gef.requests.DirectEditRequest request)
           
protected  void showCurrentEditValue(org.eclipse.gef.requests.DirectEditRequest request)
           
protected  void storeOldEditValue(org.eclipse.gef.requests.DirectEditRequest request)
           
 boolean understandsRequest(org.eclipse.gef.Request request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamLabelDirectEditPolicy

public SamLabelDirectEditPolicy()
Method Detail

getDirectEditCommand

protected org.eclipse.gef.commands.Command getDirectEditCommand(org.eclipse.gef.requests.DirectEditRequest request)

understandsRequest

public boolean understandsRequest(org.eclipse.gef.Request request)

showCurrentEditValue

protected void showCurrentEditValue(org.eclipse.gef.requests.DirectEditRequest request)

storeOldEditValue

protected void storeOldEditValue(org.eclipse.gef.requests.DirectEditRequest request)

SAM

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.