org.eclipse.ui.intro.IIntroPart Java Examples
The following examples show how to use
org.eclipse.ui.intro.IIntroPart.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AllCleanRule.java From wildwebdeveloper with Eclipse Public License 2.0 | 6 votes |
@Override protected void starting(Description description) { super.starting(description); IIntroPart intro = PlatformUI.getWorkbench().getIntroManager().getIntro(); if (intro != null) { PlatformUI.getWorkbench().getIntroManager().closeIntro(intro); } IWorkbenchPage activePage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); for (IViewReference ref : activePage.getViewReferences()) { activePage.hideView(ref); } ScopedPreferenceStore prefs = new ScopedPreferenceStore(InstanceScope.INSTANCE, "org.eclipse.lsp4e"); prefs.putValue("org.eclipse.wildwebdeveloper.angular.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.jsts.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.css.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.html.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.json.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.xml.file.logging.enabled", Boolean.toString(true)); prefs.putValue("org.eclipse.wildwebdeveloper.yaml.file.logging.enabled", Boolean.toString(true)); clearProjects(); }
Example #2
Source File: DeveloperStudioPerspective.java From devstudio-tooling-ei with Apache License 2.0 | 6 votes |
@Override public void createInitialLayout(IPageLayout layout) { //Handling Win32 OS specifically since animated dashboard doesn't support if (Platform.getOS().equals(Platform.OS_WIN32)) { final IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager().getIntro(); PlatformUI.getWorkbench().getIntroManager().closeIntro(introPart); IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); IWorkbenchPage page = window.getActivePage(); try { hideDashboards(); PlatformUI.getWorkbench().showPerspective(J2EE_PERSPECTIVE_ID, window); page.openEditor(new NullEditorInput(), CLASSIC_DASHBOARD_ID); } catch (Exception e) { MessageDialog.openError(window.getShell(), "Could not create initial layout", e.getMessage()); } } else { String editorArea = layout.getEditorArea(); IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 1f, editorArea); topLeft.addView(ANIMATED_DASHBOARD_ID); } }
Example #3
Source File: KickStartNewProjectAction.java From solidity-ide with Eclipse Public License 1.0 | 6 votes |
@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(); } }
Example #4
Source File: GetStartedAction.java From codewind-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public void run() { // Close the Eclipse welcome page IIntroManager manager = PlatformUI.getWorkbench().getIntroManager(); IIntroPart introPart = manager.getIntro(); if (introPart != null) { manager.closeIntro(introPart); } // Open the J2EE perspective try { IWorkbench workbench = PlatformUI.getWorkbench(); workbench.showPerspective("org.eclipse.jst.j2ee.J2EEPerspective", workbench.getActiveWorkbenchWindow()); } catch (Exception e) { Logger.logError("An error occurred trying to open the J2EE perspective", e); } // Open the Codewind welcome page IEditorPart part = OpenWelcomePageAction.openWelcomePage(); // Open the Codewind Explorer view ViewHelper.openCodewindExplorerViewNoExec(); // Make the welcome page the focus if (part != null) { IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { IWorkbenchPage page = window.getActivePage(); if (page != null) { page.activate(part); } } } }
Example #5
Source File: AbstractWorkbenchTest.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
protected static void closeWelcomePage() throws InterruptedException { IIntroManager introManager = getWorkbench().getIntroManager(); IIntroPart intro = introManager.getIntro(); if (intro != null) { introManager.closeIntro(intro); } }
Example #6
Source File: AbstractXtextTestUtil.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * Closes the welcome page if it is open. */ protected void closeWelcomePage() { UiThreadDispatcher.dispatchAndWait(new Runnable() { @Override public void run() { IIntroPart intro = PlatformUI.getWorkbench().getIntroManager().getIntro(); if (intro != null) { PlatformUI.getWorkbench().getIntroManager().closeIntro(intro); } } }); }
Example #7
Source File: SarlExampleInstallerWizard.java From sarl with Apache License 2.0 | 5 votes |
/** Close the welcome page. */ protected static void closeWelcomePage() { final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); if (introManager != null) { final IIntroPart intro = introManager.getIntro(); if (intro != null) { introManager.closeIntro(intro); } } }
Example #8
Source File: StartupSaros.java From saros with GNU General Public License v2.0 | 5 votes |
private static void openSarosView() { IIntroManager m = PlatformUI.getWorkbench().getIntroManager(); IIntroPart i = m.getIntro(); /* * if there is a welcome screen, do not open the SarosView * because it would be maximized and hiding the workbench window. */ if (i == null) ViewUtils.openSarosView(); }
Example #9
Source File: GhidraDevStartup.java From ghidra with Apache License 2.0 | 4 votes |
@Override public void earlyStartup() { Job job = new Job(Activator.PLUGIN_ID + " startup") { @Override protected IStatus run(IProgressMonitor monitor) { monitor.beginTask("Initializing " + Activator.PLUGIN_ID, 2); // If we were launched from Ghidra, close the Eclipse welcome screen if present, // and make it so it never shows up again. if (Activator.getDefault().isLaunchedByGhidra()) { IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); IIntroPart intro = introManager.getIntro(); if (intro != null) { Display.getDefault().syncExec(() -> introManager.closeIntro(intro)); } PlatformUI.getPreferenceStore().setValue( IWorkbenchPreferenceConstants.SHOW_INTRO, false); } // Ask the user (only once) for consent before listening on any ports boolean firstTimeConsent = false; if (!GhidraRootPreferences.requestedConsentToOpenPorts()) { firstTimeConsent = EclipseMessageUtils.showQuestionDialog( Activator.PLUGIN_ID + "User Consent", Activator.PLUGIN_ID + " opens ports to enable communication with Ghidra " + "for various features such as initiating script editing and symbol " + "lookup from Ghidra.\n\nDo you consent to the ports being opened?\n\n" + "If you do not consent now, you can enable these features at any " + "time in the " + Activator.PLUGIN_ID + " preferences."); GhidraRootPreferences.setOpenPortConsentRequest(true); } // Initialize the script editor ScriptEditorInitializer.init(firstTimeConsent); monitor.worked(1); // Initialize symbol lookup SymbolLookupInitializer.init(firstTimeConsent); monitor.worked(1); monitor.done(); return Status.OK_STATUS; } }; job.schedule(); }