Search in sources :

Example 6 with AttributeItemFigure

use of org.jkiss.dbeaver.ext.erd.figures.AttributeItemFigure in project dbeaver by dbeaver.

the class AttributePart method commitNameChange.

/**
 * Handles when successfully applying direct edit
 */
@Override
protected void commitNameChange(PropertyChangeEvent evt) {
    AttributeItemFigure label = getFigure();
    label.setText(getAttribute().getLabelText());
    setSelected(EditPart.SELECTED_PRIMARY);
    label.revalidate();
}
Also used : AttributeItemFigure(org.jkiss.dbeaver.ext.erd.figures.AttributeItemFigure)

Aggregations

AttributeItemFigure (org.jkiss.dbeaver.ext.erd.figures.AttributeItemFigure)6 Color (org.eclipse.swt.graphics.Color)2 Font (org.eclipse.swt.graphics.Font)2 ERDEntityAttribute (org.jkiss.dbeaver.ext.erd.model.ERDEntityAttribute)2