use of org.jkiss.dbeaver.erd.ui.figures.EditableLabel in project dbeaver by dbeaver.
the class EntityPart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
ERDGraphicalViewer viewer = getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
EntityFigure figure = getFigure();
EditableLabel nameLabel = figure.getNameLabel();
manager = new ExtendedDirectEditManager(this, TextCellEditor.class, new LabelCellEditorLocator(nameLabel), nameLabel, new TableNameCellEditorValidator(handler));
}
manager.show();
}
use of org.jkiss.dbeaver.erd.ui.figures.EditableLabel in project dbeaver by dbeaver.
the class EntityPart method handleNameChange.
public void handleNameChange(String value) {
EntityFigure entityFigure = getFigure();
EditableLabel label = entityFigure.getNameLabel();
label.setVisible(false);
refreshVisuals();
}
use of org.jkiss.dbeaver.erd.ui.figures.EditableLabel in project dbeaver by serge-rider.
the class EntityPart method directEditHitTest.
private boolean directEditHitTest(Point requestLoc) {
EntityFigure figure = getFigure();
EditableLabel nameLabel = figure.getNameLabel();
nameLabel.translateToRelative(requestLoc);
return nameLabel.containsPoint(requestLoc);
}
use of org.jkiss.dbeaver.erd.ui.figures.EditableLabel in project dbeaver by serge-rider.
the class EntityPart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
ERDGraphicalViewer viewer = getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
EntityFigure figure = getFigure();
EditableLabel nameLabel = figure.getNameLabel();
manager = new ExtendedDirectEditManager(this, TextCellEditor.class, new LabelCellEditorLocator(nameLabel), nameLabel, new TableNameCellEditorValidator(handler));
}
manager.show();
}
Aggregations