Search in sources :

Example 1 with AssignEditorNameDialog

use of com.cubrid.common.ui.common.dialog.AssignEditorNameDialog in project cubrid-manager by CUBRID.

the class AssignEditorNameAction method run.

public void run() {
    IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
    if (window == null) {
        return;
    }
    IEditorPart editor = window.getActivePage().getActiveEditor();
    if (editor != null && editor instanceof QueryEditorPart) {
        QueryEditorPart queryEditorPart = (QueryEditorPart) editor;
        AssignEditorNameDialog dialog = new AssignEditorNameDialog(Display.getCurrent().getActiveShell(), queryEditorPart);
        dialog.open();
    }
}
Also used : IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) QueryEditorPart(com.cubrid.common.ui.query.editor.QueryEditorPart) AssignEditorNameDialog(com.cubrid.common.ui.common.dialog.AssignEditorNameDialog) IEditorPart(org.eclipse.ui.IEditorPart)

Aggregations

AssignEditorNameDialog (com.cubrid.common.ui.common.dialog.AssignEditorNameDialog)1 QueryEditorPart (com.cubrid.common.ui.query.editor.QueryEditorPart)1 IEditorPart (org.eclipse.ui.IEditorPart)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1