PlatformUIクラスを使う
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
IWorkbenchPage page = window.getActivePage();
IEditorPart editor = page.getActiveEditor();
MessageDialog.openInformation(
window.getShell(),
"Helloworld Plug-in",
editor.getTitle());
こんな具合。