Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.editpolicies
Class SystemShapeFeedbackEditPolicy

java.lang.Object
  extended by AbstractEditPolicy
      extended by com.ibm.etools.systems.application.visual.editor.editpolicies.SystemShapeFeedbackEditPolicy
All Implemented Interfaces:
ISystemAssociationFeedbackEditPolicy

public class SystemShapeFeedbackEditPolicy
extends AbstractEditPolicy
implements ISystemAssociationFeedbackEditPolicy

Feedback edit policy for Application Diagram.


Field Summary
static String copyright
           
 
Constructor Summary
SystemShapeFeedbackEditPolicy()
          Default Constructor.
 
Method Summary
 void activate()
          Does nothing by default.
 void childAdded(EditPart child, int index)
           
 void deactivate()
          Does nothing by default.
protected  void earseConnectionsAssociationFeedback(GraphicalEditPart editPart, boolean isSourceEnd)
          Erase feedback of associated connections.
protected  void earseNodesAssociationFeedback(ConnectionEditPart requester, boolean isSourceEnd)
          Erase feedback of nodes for given connection.
 void eraseAssociationFeedback(EditPart editPart)
          Erase feedback of associated artifacts.
 void eraseTargetFeedback(Request request)
          Erase target feedback.
 void partActivated(EditPart editpart)
           
 void partDeactivated(EditPart editpart)
           
 void removingChild(EditPart child, int index)
           
 void selectedStateChanged(EditPart editpart)
          Override to handle association feedbacks.
 void showAssociationFeedback(EditPart editPart)
          Show feedback of associated artifacts.
protected  void showConnectionsAssociationFeedback(List connections, String state, EditPart requester)
          Show feedback of associated connections.
protected  void showNodeAssociationFeedback(EditPart editPart, String state, EditPart requester)
          Show feedback of associated editpart nodes.
 void showTargetFeedback(Request request)
          Show target feedback.
 boolean understandsRequest(Request req)
          Return true if the given request can be understood, false otherwise.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemShapeFeedbackEditPolicy

public SystemShapeFeedbackEditPolicy()
Default Constructor.

Method Detail

activate

public void activate()
Does nothing by default.

See Also:
org.eclipse.gef.EditPolicy#activate()

deactivate

public void deactivate()
Does nothing by default.

See Also:
org.eclipse.gef.EditPolicy#deactivate()

understandsRequest

public boolean understandsRequest(Request req)
Return true if the given request can be understood, false otherwise.


showTargetFeedback

public void showTargetFeedback(Request request)
Show target feedback.


eraseTargetFeedback

public void eraseTargetFeedback(Request request)
Erase target feedback.


showAssociationFeedback

public void showAssociationFeedback(EditPart editPart)
Show feedback of associated artifacts. For Artifact, hightlight the related connections. For connection, hightlight the related source / target.

Specified by:
showAssociationFeedback in interface ISystemAssociationFeedbackEditPolicy

eraseAssociationFeedback

public void eraseAssociationFeedback(EditPart editPart)
Erase feedback of associated artifacts. For Artifact, erase the feedback of related connections. For connection, erase the feedback of the related source / target.

Specified by:
eraseAssociationFeedback in interface ISystemAssociationFeedbackEditPolicy

showConnectionsAssociationFeedback

protected void showConnectionsAssociationFeedback(List connections,
                                                  String state,
                                                  EditPart requester)
Show feedback of associated connections.


earseConnectionsAssociationFeedback

protected void earseConnectionsAssociationFeedback(GraphicalEditPart editPart,
                                                   boolean isSourceEnd)
Erase feedback of associated connections.


showNodeAssociationFeedback

protected void showNodeAssociationFeedback(EditPart editPart,
                                           String state,
                                           EditPart requester)
Show feedback of associated editpart nodes.


earseNodesAssociationFeedback

protected void earseNodesAssociationFeedback(ConnectionEditPart requester,
                                             boolean isSourceEnd)
Erase feedback of nodes for given connection.


selectedStateChanged

public void selectedStateChanged(EditPart editpart)
Override to handle association feedbacks. For Node, the following associations will have feedback: a) incoming connections b) outgoing connections For Connection, the following associations will have feedback: a) source editpart b) target editpart (non-Javadoc)

See Also:
org.eclipse.gef.EditPartListener#selectedStateChanged(org.eclipse.gef.EditPart)

childAdded

public void childAdded(EditPart child,
                       int index)

partActivated

public void partActivated(EditPart editpart)

partDeactivated

public void partDeactivated(EditPart editpart)

removingChild

public void removingChild(EditPart child,
                          int index)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.