public class ContextButtonManagerForPad extends java.lang.Object implements IContextButtonManager
| Constructor and Description |
|---|
ContextButtonManagerForPad(DiagramBehavior diagramBehavior,
IResourceRegistry resourceRegistry)
Creates a new ContextButtonManagerForPad.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deRegister(org.eclipse.gef.GraphicalEditPart graphicalEditPart)
Deregisters a given edit-part, which is opposite to
register(GraphicalEditPart). |
DiagramBehavior |
getDiagramBehavior()
Returns the container this context button manager works on.
|
void |
hideContextButtonsInstantly()
Hides the context button pad (if there is currently a context button pad
active).
|
void |
register(org.eclipse.gef.GraphicalEditPart graphicalEditPart)
Registers a given edit-part.
|
void |
setContextButtonShowing(boolean enable)
Sets the general availability of the context button pad.
|
public ContextButtonManagerForPad(DiagramBehavior diagramBehavior, IResourceRegistry resourceRegistry)
container - The container on which this context button manager works, see
#getContainer().iResourceRegistry - public DiagramBehavior getDiagramBehavior()
public void register(org.eclipse.gef.GraphicalEditPart graphicalEditPart)
register in interface IContextButtonManagergraphicalEditPart - The graphical edit-part to register for the context button
manager.public void deRegister(org.eclipse.gef.GraphicalEditPart graphicalEditPart)
register(GraphicalEditPart). If a context-button pad is
currently shown for this edit-part / figure, it is hidden first.
Typically this method is called, when an edit-part is deactivated.deRegister in interface IContextButtonManagergraphicalEditPart - The graphical edit-part to deregister from the context button
manager.public void hideContextButtonsInstantly()
hideContextButtonsInstantly in interface IContextButtonManagerpublic void setContextButtonShowing(boolean enable)
setContextButtonShowing in interface IContextButtonManager