Package org.eclipse.ui.intro

Examples of org.eclipse.ui.intro.IIntroManager


        wbConfig.setData(key, Boolean.TRUE);

        boolean showIntro = PrefUtil.getAPIPreferenceStore().getBoolean(
                IWorkbenchPreferenceConstants.SHOW_INTRO);
       
        IIntroManager introManager = wbConfig.getWorkbench().getIntroManager();
       
        boolean hasIntro = introManager.hasIntro();
        boolean isNewIntroContentAvailable = introManager.isNewContentAvailable();
       
    if (hasIntro && (showIntro || isNewIntroContentAvailable)) {
            introManager
                    .showIntro(getWindowConfigurer().getWindow(), false);

            PrefUtil.getAPIPreferenceStore().setValue(
                    IWorkbenchPreferenceConstants.SHOW_INTRO, false);
            PrefUtil.saveAPIPrefs();
View Full Code Here


    private void closeIntro() {
        PlatformGIS.syncInDisplayThread(new Runnable(){

            public void run() {
                IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
                IIntroPart intro = introManager.getIntro();
                if (intro != null)
                    introManager.closeIntro(intro);
            }

        });
    }
View Full Code Here

     */
    private void closeIntro() {
        PlatformGIS.syncInDisplayThread(new Runnable(){

            public void run() {
                IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
                IIntroPart intro = introManager.getIntro();
                if (intro != null)
                    introManager.closeIntro(intro);
            }

        });
    }
View Full Code Here

   */
    private void standByWelcome() {
        PlatformGIS.syncInDisplayThread(new Runnable(){

            public void run() {
                IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
                IIntroPart intro = introManager.getIntro();
                if (intro != null){
                    introManager.setIntroStandby(intro, true );
                }
            }

        });
    }
View Full Code Here

public abstract class AbstractProjectUITestCase extends AbstractProjectTestCase {

    @Before
    public void abstractProjectUITestCaseSetUp() throws Exception {
        final IIntroManager introManager = PlatformUI.getWorkbench().getIntroManager();
    IIntroPart intro = introManager.getIntro();
    if( intro!=null ){
      introManager.closeIntro(intro);
          UDIGTestUtil.inDisplayThreadWait(3000, new WaitCondition(){

        public boolean isTrue() {
          return introManager.getIntro()==null;
        }
           
          }, true);
    }
    }
View Full Code Here

    // }

    protected void showSarosView() {
        Utils.runSafeSWTSync(log, new Runnable() {
            public void run() {
                IIntroManager m = PlatformUI.getWorkbench().getIntroManager();
                IIntroPart i = m.getIntro();
                /*
                 * if there is a welcome screen, don't activate the SarosView
                 * because it would be maximized and hiding the workbench window
                 */
                if (i != null)
View Full Code Here

    try {
      workbench = PlatformUI.getWorkbench();
    } catch (IllegalStateException e) {
      return;
    }
    IIntroManager introManager = workbench.getIntroManager();
    IIntroPart intro = introManager.getIntro();
    if(intro != null && introManager.isIntroStandby(intro)){
      introManager.closeIntro(intro);
    }
  }
View Full Code Here

public class NewProjectIntroAction implements IIntroAction {

  @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");
  }
View Full Code Here

   * (non-Javadoc)
   *
   * @see org.eclipse.help.search.LuceneSearchParticipant#open(java.lang.String)
   */
  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();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.intro.IIntroManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.