Change Workbench.getInstance() to PlatformUI.getWorkbench()