@Override public void run(IIntroSite site, Properties params) { WorkspaceModifyOperation op = new WorkspaceModifyOperation() { @Override protected void execute(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { IProject project = createProject(monitor); createExample(project); } }; try { PlatformUI.getWorkbench().getProgressService().run(true, true, op); final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); IIntroPart part = introManager.getIntro(); introManager.closeIntro(part); IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); IDE.openEditor(page, ResourcesPlugin.getWorkspace().getRoot().getFile(new Path("hello-world/greeter.sol"))); } catch (Exception e) { e.printStackTrace(); } }
@BeforeClass public static void closeWelcome() { final IIntroManager introManager = PlatformUI.getWorkbench() .getIntroManager(); IIntroPart part = introManager.getIntro(); introManager.closeIntro(part); }
@Override public IIntroManager getIntroManager() { // TODO Auto-generated method stub return null; }
/** * Return the intro manager for this workbench. * * @return the intro manager for this workbench. Guaranteed not to be * <code>null</code>. * @since 3.0 */ public IIntroManager getIntroManager();