use of com.cubrid.common.ui.er.directedit.LabelCellEditorLocator in project cubrid-manager by CUBRID.
the class ColumnPart method createDirectEditManager.
private void createDirectEditManager() {
if (manager == null) {
ValidationGraphicalViewer viewer = (ValidationGraphicalViewer) getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
Label label = (Label) getFigure();
ColumnNameTypeCellEditorValidator columnNameTypeCellEditorValidator = new ColumnNameTypeCellEditorValidator(handler, (ERTableColumn) getModel());
manager = new ERDirectEditManager(label, columnNameTypeCellEditorValidator, this, TextCellEditor.class, new LabelCellEditorLocator(label));
}
}
use of com.cubrid.common.ui.er.directedit.LabelCellEditorLocator in project cubrid-manager by CUBRID.
the class TablePart method performDirectEdit.
protected void performDirectEdit() {
if (manager == null) {
ValidationGraphicalViewer viewer = (ValidationGraphicalViewer) getViewer();
ValidationMessageHandler handler = viewer.getValidationHandler();
TableFigure figure = (TableFigure) getFigure();
EditableLabel nameLabel = figure.getNameLabel();
manager = new ERDirectEditManager(nameLabel, new TableNameCellEditorValidator(handler), this, TableNameCellEditor.class, new LabelCellEditorLocator(nameLabel));
}
manager.show();
}
Aggregations