Search in sources :

Example 16 with EditableLabel

use of com.cubrid.common.ui.er.figures.EditableLabel 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();
}
Also used : ValidationGraphicalViewer(com.cubrid.common.ui.er.ValidationGraphicalViewer) TableFigure(com.cubrid.common.ui.er.figures.TableFigure) EditableLabel(com.cubrid.common.ui.er.figures.EditableLabel) ERDirectEditManager(com.cubrid.common.ui.er.directedit.ERDirectEditManager) LabelCellEditorLocator(com.cubrid.common.ui.er.directedit.LabelCellEditorLocator) ValidationMessageHandler(com.cubrid.common.ui.er.ValidationMessageHandler) TableNameCellEditor(com.cubrid.common.ui.er.editor.TableNameCellEditor) TableNameCellEditorValidator(com.cubrid.common.ui.er.directedit.TableNameCellEditorValidator)

Aggregations

EditableLabel (com.cubrid.common.ui.er.figures.EditableLabel)16 TableFigure (com.cubrid.common.ui.er.figures.TableFigure)6 ERTableColumn (com.cubrid.common.ui.er.model.ERTableColumn)5 ERTable (com.cubrid.common.ui.er.model.ERTable)2 Relationship (com.cubrid.common.ui.er.model.Relationship)2 EditPart (org.eclipse.gef.EditPart)2 ValidationGraphicalViewer (com.cubrid.common.ui.er.ValidationGraphicalViewer)1 ValidationMessageHandler (com.cubrid.common.ui.er.ValidationMessageHandler)1 ERDirectEditManager (com.cubrid.common.ui.er.directedit.ERDirectEditManager)1 LabelCellEditorLocator (com.cubrid.common.ui.er.directedit.LabelCellEditorLocator)1 TableNameCellEditorValidator (com.cubrid.common.ui.er.directedit.TableNameCellEditorValidator)1 TableNameCellEditor (com.cubrid.common.ui.er.editor.TableNameCellEditor)1 Rectangle (org.eclipse.draw2d.geometry.Rectangle)1