Search in sources :

Example 1 with NoteSetTextCommand

use of org.jkiss.dbeaver.erd.ui.command.NoteSetTextCommand in project dbeaver by dbeaver.

the class NoteDirectEditPolicy method getDirectEditCommand.

@Override
protected Command getDirectEditCommand(DirectEditRequest request) {
    CellEditor cellEditor = request.getCellEditor();
    String newNote = (String) cellEditor.getValue();
    return new NoteSetTextCommand((NotePart) getHost(), newNote);
}
Also used : NoteSetTextCommand(org.jkiss.dbeaver.erd.ui.command.NoteSetTextCommand) CellEditor(org.eclipse.jface.viewers.CellEditor)

Example 2 with NoteSetTextCommand

use of org.jkiss.dbeaver.erd.ui.command.NoteSetTextCommand in project dbeaver by serge-rider.

the class NoteDirectEditPolicy method getDirectEditCommand.

@Override
protected Command getDirectEditCommand(DirectEditRequest request) {
    CellEditor cellEditor = request.getCellEditor();
    String newNote = (String) cellEditor.getValue();
    return new NoteSetTextCommand((NotePart) getHost(), newNote);
}
Also used : NoteSetTextCommand(org.jkiss.dbeaver.erd.ui.command.NoteSetTextCommand) CellEditor(org.eclipse.jface.viewers.CellEditor)

Aggregations

CellEditor (org.eclipse.jface.viewers.CellEditor)2 NoteSetTextCommand (org.jkiss.dbeaver.erd.ui.command.NoteSetTextCommand)2