Rational Developer for Power Systems Software
V7.6

com.ibm.etools.systems.application.visual.editor.editparts.impl
Class SystemCompartmentEditPart

java.lang.Object
  extended by CompartmentEditPart
      extended by com.ibm.etools.systems.application.visual.editor.editparts.impl.SystemCompartmentEditPart
All Implemented Interfaces:
INamedEditPart
Direct Known Subclasses:
BoundModuleEditPart

public class SystemCompartmentEditPart
extends CompartmentEditPart
implements INamedEditPart

Base compartment editpart for Application Diagram. It is used for children model items.


Field Summary
static String copyright
           
 
Constructor Summary
SystemCompartmentEditPart(View view)
          Constructor.
 
Method Summary
protected  void addNotationalListeners()
          This method adds all listeners to the notational world (views, figures, editpart...etc).
protected  IFigure createFigure()
           
 String createTooltipText()
          Create tooltip text.
 void deactivate()
          Deactivate the editpart.
protected  AccessibleEditPart getAccessibleEditPart()
           
protected  Artifact getArtifact()
          Return model element.
 String getDisplayName()
          Return name displayed in figure.
protected  WrappingLabel getFigureNamedLabel()
          Get the label in figure.
protected  IconRetriever getIconRetriever()
          Get icon retriever.
protected  void handleNotificationEvent(Notification event)
           
protected  void refreshFont()
          Refresh the editpart's figure font.
protected  void refreshStrikeThrough()
          Refresh the editpart's figure font strikethrough effect.
protected  void refreshUnderline()
          Refresh the editpart's figure font underline effect.
protected  void refreshVisuals()
           
protected  void removeNotationalListeners()
          This method removes all listeners to the notational world (views, figures, editpart...etc) Override this method to remove notational listeners down the hierarchy
 Image retrieveIcon(Artifact artifact, int flags)
          Retrieve icon.
 
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

SystemCompartmentEditPart

public SystemCompartmentEditPart(View view)
Constructor.

Method Detail

createFigure

protected IFigure createFigure()

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.


deactivate

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


removeNotationalListeners

protected void removeNotationalListeners()
This method removes all listeners to the notational world (views, figures, editpart...etc) Override this method to remove notational listeners down the hierarchy


getArtifact

protected Artifact getArtifact()
Return model element.


getDisplayName

public String getDisplayName()
Return name displayed in figure.

Specified by:
getDisplayName in interface INamedEditPart

createTooltipText

public String createTooltipText()
Create tooltip text.


handleNotificationEvent

protected void handleNotificationEvent(Notification event)
See Also:
org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.handleNotificationEvent(Notification)

refreshVisuals

protected void refreshVisuals()

refreshFont

protected void refreshFont()
Refresh the editpart's figure font.


refreshUnderline

protected void refreshUnderline()
Refresh the editpart's figure font underline effect.


refreshStrikeThrough

protected void refreshStrikeThrough()
Refresh the editpart's figure font strikethrough effect.


getFigureNamedLabel

protected WrappingLabel getFigureNamedLabel()
Get the label in figure.


getAccessibleEditPart

protected AccessibleEditPart getAccessibleEditPart()

retrieveIcon

public Image retrieveIcon(Artifact artifact,
                          int flags)
Retrieve icon.

Parameters:
artifact -
flags -

getIconRetriever

protected IconRetriever getIconRetriever()
Get icon retriever.


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.