Search in sources :

Example 6 with CompoundBorder

use of org.eclipse.draw2d.CompoundBorder 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;
}
Also used : Insets(org.eclipse.draw2d.geometry.Insets) MarginBorder(org.eclipse.draw2d.MarginBorder) CompoundBorder(org.eclipse.draw2d.CompoundBorder) IFigure(org.eclipse.draw2d.IFigure)

Aggregations

CompoundBorder (org.eclipse.draw2d.CompoundBorder)6 ComboCellLabel (org.talend.designer.gefabstractmap.figures.ComboCellLabel)3 ColumnBorder (org.talend.designer.gefabstractmap.figures.borders.ColumnBorder)3 RowBorder (org.talend.designer.gefabstractmap.figures.borders.RowBorder)3 Figure (org.eclipse.draw2d.Figure)2 Label (org.eclipse.draw2d.Label)2 LineBorder (org.eclipse.draw2d.LineBorder)2 MarginBorder (org.eclipse.draw2d.MarginBorder)2 MouseEvent (org.eclipse.draw2d.MouseEvent)2 MouseListener (org.eclipse.draw2d.MouseListener)2 RowLayout (org.talend.designer.gefabstractmap.figures.layout.RowLayout)2 ColumnSash (org.talend.designer.gefabstractmap.figures.table.ColumnSash)2 TableColumn (org.talend.designer.gefabstractmap.figures.table.TableColumn)2 IFigure (org.eclipse.draw2d.IFigure)1 Insets (org.eclipse.draw2d.geometry.Insets)1 VarNodeExpression (org.talend.designer.gefabstractmap.figures.VarNodeExpression)1 CompositeFigure (org.whole.lang.ui.figures.CompositeFigure)1