SAM

org.topcased.modeler.sam.edit
Class SAMPortEditPart

java.lang.Object
  extended by PortEditPart
      extended by org.topcased.modeler.sam.edit.SAMPortEditPart
Direct Known Subclasses:
InControlPortEditPart, InDataPortEditPart, OutControlPortEditPart, OutDataPortEditPart

public class SAMPortEditPart
extends PortEditPart

The Port object controller for SAM Editor Creation : 29 sept. 2005


Constructor Summary
SAMPortEditPart(GraphNode obj)
          Constructor
 
Method Summary
 void activate()
          Activate the adapters
protected  void createEditPolicies()
           
 void deactivate()
          Deactivate the adapters
protected  org.eclipse.draw2d.ConnectionAnchor getPortConnectionAnchor()
           
protected  void handleModelChanged(Notification msg)
          Update model and graphics
protected  void performDirectEdit()
          Only display the manager used to perform the directEdit action if no connection is assosiated with the port
protected  void refreshHeaderLabel()
          Set the name of the port if it is not null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMPortEditPart

public SAMPortEditPart(GraphNode obj)
Constructor

Parameters:
obj -
Method Detail

createEditPolicies

protected void createEditPolicies()

refreshHeaderLabel

protected void refreshHeaderLabel()
Set the name of the port if it is not null

See Also:
org.topcased.modeler.edit.EMFGraphNodeEditPart#refreshHeaderLabel()

activate

public void activate()
Activate the adapters

See Also:
AbstractGraphicalEditPart.activate()

deactivate

public void deactivate()
Deactivate the adapters

See Also:
AbstractGraphicalEditPart.deactivate()

handleModelChanged

protected void handleModelChanged(Notification msg)
Update model and graphics

Parameters:
msg - the Notification

getPortConnectionAnchor

protected org.eclipse.draw2d.ConnectionAnchor getPortConnectionAnchor()
See Also:
org.topcased.modeler.edit.PortEditPart#getPortConnectionAnchor()

performDirectEdit

protected void performDirectEdit()
Only display the manager used to perform the directEdit action if no connection is assosiated with the port

See Also:
org.topcased.modeler.edit.GraphNodeEditPart#performDirectEdit()

SAM

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