Methods Summary |
---|
protected void | createEditPolicies()
super.createEditPolicies();
installEditPolicy(EditPolicy.CONTAINER_ROLE, new ContainerEditPolicy() {
@Override
protected Command getCreateCommand(CreateRequest request) {
return null;
}
});
installLayoutEditPolicy(this);
|
protected org.eclipse.draw2d.IFigure | createFigure()
IFigure f = new LayoutFigure();
f.setLayoutManager(new XYLayout());
return f;
|
public void | hideDropTarget()
mHighlightInfo.clear();
IFigure f = getFigure();
if (f instanceof LayoutFigure) {
((LayoutFigure) f).setHighlighInfo(mHighlightInfo);
}
|
protected void | hideSelection()
IFigure f = getFigure();
if (f instanceof ElementFigure) {
((ElementFigure) f).setSelected(false);
}
|
public void | showDropTarget(org.eclipse.draw2d.geometry.Point where)
if (where != null) {
mHighlightInfo.clear();
mHighlightInfo.drawDropBorder = true;
DropFeedback.computeDropFeedback(this, mHighlightInfo, where);
IFigure f = getFigure();
if (f instanceof LayoutFigure) {
((LayoutFigure) f).setHighlighInfo(mHighlightInfo);
}
}
|
protected void | showSelection()
IFigure f = getFigure();
if (f instanceof ElementFigure) {
((ElementFigure) f).setSelected(true);
}
|