Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.srcinfo.editparts
Class CallableBlockEditPart

java.lang.Object
  extended by ShapeNodeEditPart
      extended by com.ibm.etools.systems.application.visual.editor.editparts.impl.SystemNodeEditPart
          extended by com.ibm.etools.systems.application.visual.editor.srcinfo.editparts.CallableBlockEditPart
All Implemented Interfaces:
INamedEditPart
Direct Known Subclasses:
CallableBlockwithSignatureEditPart, MainEntryPointEditPart

public class CallableBlockEditPart
extends SystemNodeEditPart

EditPart for CallableBlock.


Field Summary
static String copyright
           
 
Constructor Summary
CallableBlockEditPart(View view)
          Constructor.
 
Method Summary
protected  void addNotationalListeners()
          This method adds all listeners to the notational world (views, figures, editpart...etc).
protected  void createDefaultEditPolicies()
          Create default edit policies.
protected  NodeFigure createNodeFigure()
          Create node figure.
 String createTooltipText()
          Create tooltip text.
 void deactivate()
          Deactivate the editpart.
protected  View getDelegatedPrimaryView()
          Get interested notation view.
 EditPolicy getPrimaryDragEditPolicy()
          Return customized drag edit policy.
protected  void refreshBounds()
          Refresh bounds.
protected  void setFontColor(Color color)
          Override parent's setFontColor.
 
Methods inherited from class com.ibm.etools.systems.application.visual.editor.editparts.impl.SystemNodeEditPart
getAccessibleEditPart, getArtifact, getCommand, getDisplayName, getFigureNamedLabel, getIconRetriever, handleNotificationEvent, refreshFont, refreshFontColor, refreshStrikeThrough, refreshUnderline, refreshVisuals, retrieveIcon, setVisibility
 
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

CallableBlockEditPart

public CallableBlockEditPart(View view)
Constructor.

Method Detail

createNodeFigure

protected NodeFigure createNodeFigure()
Create node figure.

Overrides:
createNodeFigure in class SystemNodeEditPart

createTooltipText

public String createTooltipText()
Create tooltip text.

Overrides:
createTooltipText in class SystemNodeEditPart

createDefaultEditPolicies

protected void createDefaultEditPolicies()
Create default edit policies. Add a section feedback role.

Overrides:
createDefaultEditPolicies in class SystemNodeEditPart

getPrimaryDragEditPolicy

public EditPolicy getPrimaryDragEditPolicy()
Return customized drag edit policy.

Overrides:
getPrimaryDragEditPolicy in class SystemNodeEditPart

setFontColor

protected void setFontColor(Color color)
Override parent's setFontColor.

Overrides:
setFontColor in class SystemNodeEditPart

refreshBounds

protected void refreshBounds()
Refresh bounds. Override to dis-allow nagative X,Y coordinates.


addNotationalListeners

protected void addNotationalListeners()
This method adds all listeners to the notational world (views, figures, editpart...etc). Override to add more notational listeners down the hierarchy, ie, notation listener for the primary view.


getDelegatedPrimaryView

protected View getDelegatedPrimaryView()
Get interested notation view. In most case, this is the primary view of this editpart. However, this could be primary view of other editpart, such as its parent.

Overrides:
getDelegatedPrimaryView in class SystemNodeEditPart

deactivate

public void deactivate()
Deactivate the editpart. Override to remove additional notation listeners.


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.