GEF v2.0

org.eclipse.gef.ui.palette
Class EntryEditPart

java.lang.Object
  |
  +--org.eclipse.gef.editparts.AbstractEditPart
        |
        +--org.eclipse.gef.editparts.AbstractGraphicalEditPart
              |
              +--org.eclipse.gef.ui.palette.PaletteEditPart
                    |
                    +--org.eclipse.gef.ui.palette.EntryEditPart
All Implemented Interfaces:
EditPart, GraphicalEditPart, IAdaptable, RequestConstants

public class EntryEditPart
extends org.eclipse.gef.ui.palette.PaletteEditPart


Inner classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider
 
Inner classes inherited from class org.eclipse.gef.editparts.AbstractEditPart
AbstractEditPart.EditPolicyIterator
 
Field Summary
protected static int triangleSide
           
 
Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
figure, handles, sourceConnections, targetConnections
 
Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart
children, eventListeners, FLAG_ACTIVE, FLAG_FOCUS, FLAG_INITIALIZED, MAX_FLAG
 
Fields inherited from interface org.eclipse.gef.EditPart
SELECTED, SELECTED_NONE, SELECTED_PRIMARY
 
Fields inherited from interface org.eclipse.gef.RequestConstants
REQ_ADD, REQ_ALIGN, REQ_ALIGN_CHILD, REQ_ALIGN_CHILDREN, REQ_ANCESTOR_DELETED, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_BENDPOINT, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILD, REQ_MOVE_CHILDREN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_END, REQ_RECONNECT_SOURCE, REQ_RECONNECT_START, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILD, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER, REQ_SOURCE_DELETED, REQ_TARGET_DELETED
 
Constructor Summary
EntryEditPart(PaletteEntry paletteEntry)
           
 
Method Summary
 void activate()
          Indicates that editing has begun and the model may start changing.
protected  AccessibleEditPart createAccessible()
          returns the AccessibleEditPart for this EditPart.
 void createEditPolicies()
          Creates the initial EditPolicies and reserves slots for dynamic ones.
 IFigure createFigure()
          Returns the figure to be used as this part's visuals.
protected  Figure createLabel()
           
protected  AccessibleEditPart getAccessibleEditPart()
           
 List getModelChildren()
           Returns a List containing the children model objects.
protected  void refreshVisuals()
           Refreshes this part's visuals.
protected  void register()
           Registers itself in the viewer's various registries.
 void select()
           
 void setSelected(int value)
           Sets the selected state.
protected  void unregister()
           Undoes any registration performed by register().
 
Methods inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart
addChildVisual, addSourceConnection, addTargetConnection, deactivate, dispose, fireRemovingSourceConnection, fireRemovingTargetConnection, fireSourceConnectionAdded, fireTargetConnectionAdded, getAdapter, getContentPane, getDragTracker, getFigure, getLayer, getModelSourceConnections, getModelTargetConnections, getParentingFigure, getSourceConnections, getTargetConnections, primAddSourceConnection, primAddTargetConnection, primRemoveSourceConnection, primRemoveTargetConnection, refresh, refreshSourceConnections, refreshTargetConnections, registerVisuals, removeChildVisual, removeSourceConnection, removeTargetConnection, reorderChild, reorderSourceConnection, reorderTargetConnection, setFigure, setLayoutConstraint, shouldInitialize
 
Methods inherited from class org.eclipse.gef.editparts.AbstractEditPart
activateEditPolicies, addChild, addEditPartListener, createChild, createConnection, createOrFindConnection, deactivateEditPolicies, debug, debugFeedback, doInitialize, eraseSourceFeedback, eraseTargetFeedback, fireActivated, fireChildAdded, fireDeactivated, fireRemovingChild, fireSelectionChanged, getChildren, getCommand, getEditPolicy, getEditPolicyIterator, getEventListeners, getFlag, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, initialize, installEditPolicy, isActive, isSelectable, performRequest, refreshChildren, registerAccessibility, registerModel, removeChild, removeEditPartListener, removeEditPolicy, setFlag, setFocus, setModel, setParent, showSourceFeedback, showTargetFeedback, toString, understandsRequest, unregisterAccessibility, unregisterModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.gef.EditPart
addEditPartListener, eraseSourceFeedback, eraseTargetFeedback, getChildren, getCommand, getEditPolicy, getKeyHandler, getModel, getParent, getRoot, getSelected, getTargetEditPart, hasFocus, installEditPolicy, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, showSourceFeedback, showTargetFeedback, understandsRequest
 

Field Detail

triangleSide

protected static int triangleSide
Constructor Detail

EntryEditPart

public EntryEditPart(PaletteEntry paletteEntry)
Method Detail

activate

public void activate()
Description copied from interface: EditPart
Indicates that editing has begun and the model may start changing. Called by the managing EditPart. The managing edit part may call EditPart.activate() and then EditPart.deactivate() multiple times on the receiver.

Activiation should initiate several things. First, the EditPart should begin to observe its model if appropriate, and should continue the observation until EditPart.deactivate() is called. The EditPart should create and activate all of its EditPolicies. EditPolicies may also observe the model, and should also stop observing when deactivated. Any EditParts managed by this EditPart should also be activated.

Overrides:
activate in class AbstractGraphicalEditPart
Following copied from class: org.eclipse.gef.editparts.AbstractEditPart
See Also:
AbstractEditPart.deactivate()

createAccessible

protected AccessibleEditPart createAccessible()
Description copied from class: org.eclipse.gef.ui.palette.PaletteEditPart
returns the AccessibleEditPart for this EditPart. This method is called lazily from PaletteEditPart.getAccessibleEditPart().
Overrides:
createAccessible in class org.eclipse.gef.ui.palette.PaletteEditPart

createFigure

public IFigure createFigure()
Description copied from class: AbstractGraphicalEditPart
Returns the figure to be used as this part's visuals.
Overrides:
createFigure in class AbstractGraphicalEditPart

createLabel

protected Figure createLabel()

refreshVisuals

protected void refreshVisuals()
Description copied from class: AbstractEditPart
Refreshes this part's visuals. After creating the visuals, they should be initialized and the updated in response to model changes by implementing this method.
Overrides:
refreshVisuals in class AbstractEditPart

register

protected void register()
Description copied from class: AbstractEditPart
Registers itself in the viewer's various registries. If your EditPart has a 1-to-1 relationship with a visual object and a 1-to-1 relationship with a model object, the default implementation should be sufficent.
Overrides:
register in class AbstractEditPart
Following copied from class: org.eclipse.gef.editparts.AbstractEditPart
See Also:
AbstractEditPart.createConnection(Object), AbstractEditPart.unregister(), EditPartViewer.getVisualPartMap(), EditPartViewer.getEditPartRegistry()

select

public void select()

setSelected

public void setSelected(int value)
Description copied from interface: EditPart
Sets the selected state. This should only be called by the EditPartViewer. Fires selectedStateChanged(EditPart) to any EditPartListeners.
Overrides:
setSelected in class AbstractEditPart
Following copied from class: org.eclipse.gef.editparts.AbstractEditPart
See Also:
SelectionHandlesEditPolicy

unregister

protected void unregister()
Description copied from class: AbstractEditPart
Undoes any registration performed by AbstractEditPart.register(). The provided base classes will correctly unregister their visuals.
Overrides:
unregister in class AbstractGraphicalEditPart

createEditPolicies

public void createEditPolicies()
Description copied from class: AbstractEditPart
Creates the initial EditPolicies and reserves slots for dynamic ones. Should be overridden to install the inital edit policies based on the model's initial state. null can be used to reserve a "slot", should there be some desire to guarantee the ordering of EditPolcies.
Overrides:
createEditPolicies in class AbstractEditPart
Following copied from class: org.eclipse.gef.editparts.AbstractEditPart
See Also:
AbstractEditPart.doInitialize(), AbstractEditPart.installEditPolicy(Object, EditPolicy)

getAccessibleEditPart

protected AccessibleEditPart getAccessibleEditPart()
Overrides:
getAccessibleEditPart in class AbstractEditPart

getModelChildren

public List getModelChildren()
Description copied from class: AbstractEditPart
Returns a List containing the children model objects. Iff this EditPart's model is a composite, this method should be overridden to returns its children. AbstractEditPart.refreshChildren() requires that this List be non-null.
Overrides:
getModelChildren in class AbstractEditPart

GEF v2.0