Search in sources :

Example 1 with ColumnNameTypeCellEditorValidator

use of com.cubrid.common.ui.er.directedit.ColumnNameTypeCellEditorValidator 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));
    }
}
Also used : ValidationGraphicalViewer(com.cubrid.common.ui.er.ValidationGraphicalViewer) ERDirectEditManager(com.cubrid.common.ui.er.directedit.ERDirectEditManager) LabelCellEditorLocator(com.cubrid.common.ui.er.directedit.LabelCellEditorLocator) ValidationMessageHandler(com.cubrid.common.ui.er.ValidationMessageHandler) EditableLabel(com.cubrid.common.ui.er.figures.EditableLabel) Label(org.eclipse.draw2d.Label) TextCellEditor(org.eclipse.jface.viewers.TextCellEditor) ColumnNameTypeCellEditorValidator(com.cubrid.common.ui.er.directedit.ColumnNameTypeCellEditorValidator)

Aggregations

ValidationGraphicalViewer (com.cubrid.common.ui.er.ValidationGraphicalViewer)1 ValidationMessageHandler (com.cubrid.common.ui.er.ValidationMessageHandler)1 ColumnNameTypeCellEditorValidator (com.cubrid.common.ui.er.directedit.ColumnNameTypeCellEditorValidator)1 ERDirectEditManager (com.cubrid.common.ui.er.directedit.ERDirectEditManager)1 LabelCellEditorLocator (com.cubrid.common.ui.er.directedit.LabelCellEditorLocator)1 EditableLabel (com.cubrid.common.ui.er.figures.EditableLabel)1 Label (org.eclipse.draw2d.Label)1 TextCellEditor (org.eclipse.jface.viewers.TextCellEditor)1