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();
}
}
Aggregations