protected void closeWelcomePage() throws InterruptedException { if (PlatformUI.getWorkbench().getIntroManager().getIntro() != null) { PlatformUI.getWorkbench().getIntroManager().closeIntro( PlatformUI.getWorkbench().getIntroManager().getIntro()); } }
protected void closeWelcomePage() throws InterruptedException { if (PlatformUI.getWorkbench().getIntroManager().getIntro() != null) { PlatformUI.getWorkbench().getIntroManager().closeIntro( PlatformUI.getWorkbench().getIntroManager().getIntro()); } }
/** * Returns the Intro Part. */ public static IIntroPart getIntro() { IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager() .getIntro(); return introPart; }
/** * Returns the standby state of the Intro Part. If the intro is closed, * retruns false. */ public static boolean closeIntro() { // Relies on Workbench. return PlatformUI.getWorkbench().getIntroManager().closeIntro( getIntro()); }
/** * Sets the standby state of the Intro Part. If the intro is closed, retruns * false. */ public static void setIntroStandby(boolean standby) { PlatformUI.getWorkbench().getIntroManager().setIntroStandby(getIntro(), standby); }
/** * Return true if the intro plugin is present and false otherwise. * * @return boolean */ public boolean hasIntro() { return getWorkbenchConfigurer().getWorkbench().getIntroManager() .hasIntro(); }
/** 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); } } }
/** * Returns the standby state of the Intro Part. If the intro is closed, * retruns false. */ public static boolean isIntroStandby() { return PlatformUI.getWorkbench().getIntroManager().isIntroStandby( getIntro()); }
/** * Returns the Intro Part after forcing an open on it. */ public static IIntroPart showIntro(boolean standby) { IIntroPart introPart = PlatformUI.getWorkbench().getIntroManager() .showIntro(PlatformUI.getWorkbench().getActiveWorkbenchWindow(), standby); return introPart; }
private void restartIntro() { IIntroManager manager = PlatformUI.getWorkbench().getIntroManager(); IIntroPart part = manager.getIntro(); if (part != null && part instanceof CustomizableIntroPart) { IntroModelRoot modelRoot = IntroPlugin.getDefault().getIntroModelRoot(); String currentPageId = modelRoot.getCurrentPageId(); IWorkbenchWindow window = part.getIntroSite().getWorkbenchWindow(); boolean standby = manager.isIntroStandby(part); PlatformUI.getWorkbench().getIntroManager().closeIntro(part); IntroPlugin.getDefault().resetVolatileImageRegistry(); part = PlatformUI.getWorkbench().getIntroManager().showIntro(window, standby); if (part != null && !standby) { StringBuilder url = new StringBuilder(); url.append("http://org.eclipse.ui.intro/showPage?id="); //$NON-NLS-1$ url.append(currentPageId); IIntroURL introURL = IntroURLFactory.createIntroURL(url.toString()); if (introURL != null) introURL.execute(); } } }
@Override public boolean open(String id) { IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager(); IIntroPart intro = introManager .showIntro(PlatformUI.getWorkbench().getActiveWorkbenchWindow(), false); if (intro == null) return false; IIntroURL url = IntroURLFactory.createIntroURL("http://org.eclipse.ui.intro/showPage?id=" + id); //$NON-NLS-1$ return url.execute(); }
@Override public void run(IIntroSite site, Properties params) { IIntroManager introManager = site.getWorkbenchWindow().getWorkbench().getIntroManager(); IIntroPart introPart = introManager.getIntro(); if (introPart != null) { introManager.closeIntro(introPart); } openWizard(site.getShell(), site.getWorkbenchWindow().getWorkbench(), null, "ccw.project.new.wizard"); }
@Override public void dispose() { eventBroker.unsubscribe(zoomChangeListener); setBarVisibility(true); getSite().getWorkbenchWindow().getWorkbench().getIntroManager() .closeIntro(introPart); introPart.dispose(); super.dispose(); }
if (getWorkbenchConfigurer().getWorkbench().getIntroManager() .hasIntro()) { PrefUtil.getAPIPreferenceStore().setValue( PrefUtil.saveAPIPrefs(); getWorkbenchConfigurer().getWorkbench().getIntroManager() .showIntro(configurer.getWindow(), false);
private boolean switchToLaunchBar() { IIntroPart intro = PlatformUI.getWorkbench().getIntroManager() .getIntro(); if (intro == null) return false; CustomizableIntroPart cpart = (CustomizableIntroPart) intro; IntroModelRoot modelRoot = IntroPlugin.getDefault().getIntroModelRoot(); Rectangle bounds = cpart.getControl().getBounds(); Rectangle startBounds = Geometry.toDisplay(cpart.getControl() .getParent(), bounds); IntroLaunchBarElement launchBarElement = modelRoot.getPresentation().getLaunchBarElement(); if (launchBarElement == null) return true; IWorkbenchWindow window = intro.getIntroSite().getWorkbenchWindow(); IntroLaunchBar launchBar = IntroLaunchBar.create(window, modelRoot, launchBarElement); PlatformUI.getWorkbench().getIntroManager().setIntroStandby(intro, true); closeIntro(); Rectangle endBounds = Geometry.toDisplay(launchBar.getControl() .getParent(), launchBar.getControl().getBounds()); AnimationEngine.createTweakedAnimation(window.getShell(), 400, startBounds, endBounds); return true; } }
IWorkbenchPreferenceConstants.SHOW_INTRO); IIntroManager introManager = wbConfig.getWorkbench().getIntroManager();
protected IIntroPart closeLaunchBar(boolean restore) { IntroPlugin.getDefault().setLaunchBar(null); // if we've already been removed, this won't hurt us if (trimControl.getParent() != null) { trimControl.getParent().getChildren().remove(trimControl); } IIntroPart intro = null; if (restore) { IWorkbenchWindow window = getWorkbenchWindow(); intro = PlatformUI.getWorkbench().getIntroManager().showIntro(window, false); CustomizableIntroPart cpart = (CustomizableIntroPart) intro; Rectangle startBounds = Geometry.toDisplay(getControl().getParent(), getControl().getBounds()); Rectangle endBounds = Geometry.toDisplay(cpart.getControl().getParent(), cpart.getControl() .getBounds()); AnimationEngine.createTweakedAnimation(window.getShell(), 400, startBounds, endBounds); } dispose(); return intro; }
Shell activeShell = getActiveShell(); if (window != null && isActiveShell(activeShell, window)) { IIntroManager introMng = PlatformUI.getWorkbench().getIntroManager(); IIntroPart intro = introMng.getIntro(); if (intro != null && !introMng.isIntroStandby(intro))
Shell activeShell = getActiveShell(); if (window != null && isActiveShell(activeShell, window)) { IIntroManager introMng = PlatformUI.getWorkbench().getIntroManager(); IIntroPart intro = introMng.getIntro(); if (intro != null && !introMng.isIntroStandby(intro))
register(projectPropertyDialogAction); if (window.getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); register(introAction);