Package org.eclipse.ui.internal.intro

Examples of org.eclipse.ui.internal.intro.IntroDescriptor


        super(IntroMessages.Intro_action_text);
        if (window == null) {
            throw new IllegalArgumentException();
        }
        this.workbenchWindow = window;
        IntroDescriptor introDescriptor = ((Workbench) workbenchWindow
                .getWorkbench()).getIntroDescriptor();
        String labelOverride = introDescriptor.getLabelOverride();
        if (labelOverride != null)
          setText(labelOverride);
       
        setActionDefinitionId("org.eclipse.ui.help.quickStartAction"); //$NON-NLS-1$
       
View Full Code Here


   
    /* (non-Javadoc)
     * @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event)
     */
    public void runWithEvent(Event event) {       
        IntroDescriptor introDescriptor = ((Workbench) workbenchWindow
                .getWorkbench()).getIntroDescriptor();
        if (introDescriptor == null) {
            MessageDialog.openWarning(workbenchWindow.getShell(),
                    IntroMessages.Intro_missing_product_title,
                    IntroMessages.Intro_missing_product_message);
View Full Code Here

    /* (non-Javadoc)
     * @see org.eclipse.jface.action.IAction#getImageDescriptor()
     */
    public ImageDescriptor getImageDescriptor() {
        IntroDescriptor introDescriptor = ((Workbench) workbenchWindow
                .getWorkbench()).getIntroDescriptor();
        if (introDescriptor == null) {
      return null;
    }
        return introDescriptor.getImageDescriptor();
    }
View Full Code Here

    /**
     * @return a new IIntroPart.  This has the side effect of setting the introPart field to the new
     * value.
     */
    /*package*/IIntroPart createNewIntroPart() throws CoreException {
        IntroDescriptor introDescriptor = workbench.getIntroDescriptor();
    introPart = introDescriptor == null ? null
                : introDescriptor.createIntro();
        if (introPart != null) {
          workbench.getExtensionTracker().registerObject(
          introDescriptor.getConfigurationElement()
              .getDeclaringExtension(), introPart,
          IExtensionTracker.REF_WEAK);
        }
      return introPart;
    }
View Full Code Here

    public boolean hasIntro() {
        return workbench.getIntroDescriptor() != null;
    }
   
    public boolean isNewContentAvailable() {
    IntroDescriptor introDescriptor = workbench.getIntroDescriptor();
    if (introDescriptor == null) {
      return false;
    }
    try {
      IntroContentDetector contentDetector = introDescriptor
          .getIntroContentDetector();
      if (contentDetector != null) {
        return contentDetector.isNewContentAvailable();
      }
    } catch (CoreException ex) {
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.intro.IntroDescriptor

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.