|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.editparts.AbstractEditPart
org.eclipse.gef.editparts.AbstractGraphicalEditPart
org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart
org.eclipse.gef.internal.ui.palette.editparts.PaletteStackEditPart
The EditPart for a PaletteStack.
Nested Class Summary |
Nested classes inherited from class org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart |
PaletteEditPart.ImageCache |
Nested classes inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
AbstractGraphicalEditPart.AccessibleGraphicalEditPart, AbstractGraphicalEditPart.DefaultAccessibleAnchorProvider |
Nested classes inherited from class org.eclipse.gef.editparts.AbstractEditPart |
AbstractEditPart.EditPolicyIterator |
Field Summary |
Fields inherited from class org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart |
XML_NAME |
Fields inherited from class org.eclipse.gef.editparts.AbstractGraphicalEditPart |
figure, sourceConnections, targetConnections |
Fields inherited from class org.eclipse.gef.editparts.AbstractEditPart |
children, FLAG_ACTIVE, FLAG_FOCUS, 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_CHILDREN, REQ_CLONE, REQ_CONNECTION_END, REQ_CONNECTION_START, REQ_CREATE, REQ_CREATE_BENDPOINT, REQ_DELETE, REQ_DELETE_DEPENDANT, REQ_DIRECT_EDIT, REQ_MOVE, REQ_MOVE_BENDPOINT, REQ_MOVE_CHILDREN, REQ_OPEN, REQ_ORPHAN, REQ_ORPHAN_CHILDREN, REQ_RECONNECT_SOURCE, REQ_RECONNECT_TARGET, REQ_RESIZE, REQ_RESIZE_CHILDREN, REQ_SELECTION, REQ_SELECTION_HOVER |
Constructor Summary | |
PaletteStackEditPart(PaletteStack model)
Creates a new PaletteStackEditPart with the given PaletteStack as its model. |
Method Summary | |
void |
activate()
Extends AbstractEditPart#activate() to also activate all source
ConnectionEditParts. |
org.eclipse.draw2d.IFigure |
createFigure()
Creates the Figure to be used as this part's visuals. |
void |
deactivate()
Extends AbstractEditPart#deactivate() to
also deactivate the source ConnectionEditParts. |
void |
eraseTargetFeedback(Request request)
Erases target feedback for the specified Request . |
org.eclipse.draw2d.IFigure |
getContentPane()
If the children's Figures should be |
void |
openMenu()
Opens the menu to display the choices for the active entry. |
protected void |
refreshChildren()
Updates the set of children EditParts so that it is in sync with the model children. |
void |
showTargetFeedback(Request request)
Shows or updates target feedback for the given request. |
Methods inherited from class org.eclipse.gef.internal.ui.palette.editparts.PaletteEditPart |
createAccessible, createEditPolicies, createToolTip, getAccessibleEditPart, getDragTracker, getImageCache, getModelChildren, getPaletteEntry, getPreferenceSource, getToolTipFigure, getToolTipText, nameNeededInToolTip, propertyChange, restoreState, saveState, setImageDescriptor, setImageInFigure |
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, getChildren, getCommand, getEditPolicy, getModel, getParent, getRoot, getSelected, getTargetEditPart, getViewer, hasFocus, installEditPolicy, isActive, isSelectable, performRequest, removeEditPartListener, removeEditPolicy, setFocus, setModel, setParent, setSelected, showSourceFeedback, understandsRequest |
Constructor Detail |
public PaletteStackEditPart(PaletteStack model)
model
- the PaletteStack to associate with this EditPart.Method Detail |
public void activate()
AbstractGraphicalEditPart
AbstractEditPart.activate()
to also activate all source
ConnectionEditParts.
activate
in interface EditPart
activate
in class PaletteEditPart
EditPart.activate()
public org.eclipse.draw2d.IFigure createFigure()
AbstractGraphicalEditPart
Figure
to be used as this part's visuals. This is
called from AbstractGraphicalEditPart.getFigure()
if the figure has not been created.
createFigure
in class AbstractGraphicalEditPart
AbstractGraphicalEditPart.createFigure()
public void deactivate()
AbstractGraphicalEditPart
AbstractEditPart.deactivate()
to
also deactivate the source ConnectionEditParts. Subclasses should extend this
method to remove any listeners added in AbstractGraphicalEditPart.activate()
.
deactivate
in interface EditPart
deactivate
in class PaletteEditPart
EditPart.deactivate()
public void eraseTargetFeedback(Request request)
EditPart
Request
. A Request is used to
describe the type of target feedback that should be erased. This method should only be
called once to erase feedback. It should only be called in conjunction with a prior
call to EditPart.showTargetFeedback(Request)
.
eraseTargetFeedback
in interface EditPart
eraseTargetFeedback
in class AbstractEditPart
request
- Command requesting the erase.EditPart.eraseTargetFeedback(org.eclipse.gef.Request)
public org.eclipse.draw2d.IFigure getContentPane()
AbstractGraphicalEditPart
getContentPane
in interface GraphicalEditPart
getContentPane
in class AbstractGraphicalEditPart
GraphicalEditPart.getContentPane()
public void openMenu()
protected void refreshChildren()
AbstractEditPart
AbstractEditPart.refresh()
, and may also be called in response to
notification from the model. This method requires linear time complete. Clients
should call this method as few times as possible. Consider also calling AbstractEditPart.removeChild(EditPart)
and AbstractEditPart.addChild(EditPart, int)
which run in constant
time.
The update is performed by comparing the exising EditParts with the set of model
children returned from AbstractEditPart.getModelChildren()
. EditParts whose model no longer
exists are removed
. New models have their EditParts
created
.
This method should not be overridden.
refreshChildren
in class AbstractEditPart
AbstractEditPart.refreshChildren()
public void showTargetFeedback(Request request)
EditPart
showTargetFeedback
in interface EditPart
showTargetFeedback
in class AbstractEditPart
request
- the RequestEditPart.showTargetFeedback(org.eclipse.gef.Request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |