use of org.eclipse.draw2d.geometry.Insets in project statecharts by Yakindu.
the class XtextDirectEditManager method getCellEditorFrame.
/**
* Overridden to enlarge the cell editor frame for a control decorator
*/
protected IFigure getCellEditorFrame() {
IFigure cellEditorFrame = super.getCellEditorFrame();
cellEditorFrame.setBorder(new CompoundBorder(new MarginBorder(new Insets(0, 10, 0, 0)), BORDER_FRAME));
return cellEditorFrame;
}
use of org.eclipse.draw2d.geometry.Insets in project jbosstools-hibernate by jbosstools.
the class EditableLabel method getSelectionRectangle.
private Rectangle getSelectionRectangle() {
Rectangle bounds = getTextBounds().getCopy();
bounds.expand(new Insets(2, 2, 0, 0));
translateToParent(bounds);
bounds.intersect(getBounds());
return bounds;
}
Aggregations