use of org.jkiss.dbeaver.erd.ui.directedit.ExtendedDirectEditManager in project dbeaver by serge-rider.
the class NotePart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
NoteFigure figure = (NoteFigure) getFigure();
manager = new ExtendedDirectEditManager(this, MultilineTextCellEditor.class, new FigureEditorLocator(figure), figure, value -> null);
}
manager.show();
}
use of org.jkiss.dbeaver.erd.ui.directedit.ExtendedDirectEditManager in project dbeaver by dbeaver.
the class AttributePart method performDirectEdit.
protected void performDirectEdit() {
ERDGraphicalViewer viewer = (ERDGraphicalViewer) getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
Label l = getFigure().getLabel();
ColumnNameTypeCellEditorValidator columnNameTypeCellEditorValidator = new ColumnNameTypeCellEditorValidator(handler);
DirectEditManager manager = new ExtendedDirectEditManager(this, TextCellEditor.class, new LabelCellEditorLocator(l), l, columnNameTypeCellEditorValidator);
manager.show();
}
use of org.jkiss.dbeaver.erd.ui.directedit.ExtendedDirectEditManager in project dbeaver by dbeaver.
the class NotePart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
NoteFigure figure = (NoteFigure) getFigure();
manager = new ExtendedDirectEditManager(this, MultilineTextCellEditor.class, new FigureEditorLocator(figure), figure, value -> null);
}
manager.show();
}
use of org.jkiss.dbeaver.erd.ui.directedit.ExtendedDirectEditManager 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.directedit.ExtendedDirectEditManager in project dbeaver by serge-rider.
the class AttributePart method performDirectEdit.
protected void performDirectEdit() {
ERDGraphicalViewer viewer = (ERDGraphicalViewer) getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
Label l = getFigure().getLabel();
ColumnNameTypeCellEditorValidator columnNameTypeCellEditorValidator = new ColumnNameTypeCellEditorValidator(handler);
DirectEditManager manager = new ExtendedDirectEditManager(this, TextCellEditor.class, new LabelCellEditorLocator(l), l, columnNameTypeCellEditorValidator);
manager.show();
}
Aggregations