IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); try { IDE.openEditor(page, file, true); } catch (PartInitException e) { } }
IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); try { IDE.openEditor(activePage, file, true); } catch (PartInitException e) { e.printStackTrace(); } }
			public void run() {				IWorkbenchPage page =					PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();				try {					IDE.openEditor(page, file, true);				} catch (PartInitException e) {				}			}