Package org.eclipse.ui.internal.ide

Examples of org.eclipse.ui.internal.ide.AboutInfo


      IProduct product = Platform.getProduct();
      if (product == null) {
        return;
      }

      AboutInfo productInfo = new AboutInfo(product);
      URL url = productInfo.getWelcomePageURL();
      if (url == null) {
        return;
      }

      IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(
          IDEInternalPreferences.WELCOME_DIALOG, false);
      openWelcomeEditor(window, new WelcomeEditorInput(productInfo), null);
    } else {
      // Show the welcome page for any newly installed features
      List welcomeFeatures = new ArrayList();
      for (Iterator it = wbAdvisor.getNewlyAddedBundleGroups().entrySet()
          .iterator(); it.hasNext();) {
        Map.Entry entry = (Map.Entry) it.next();
        AboutInfo info = (AboutInfo) entry.getValue();

        if (info != null && info.getWelcomePageURL() != null) {
          welcomeFeatures.add(info);
          // activate the feature plug-in so it can run some install
          // code
          String pi = info.getBrandingBundleId();
          if (pi != null) {
            // Start the bundle if there is one
            Bundle bundle = Platform.getBundle(pi);
            if (bundle != null) {
              try {
                bundle.start(Bundle.START_TRANSIENT);
              } catch (BundleException exception) {
                StatusManager
                    .getManager()
                    .handle(
                        new Status(
                            IStatus.ERROR,
                            IDEApplication.PLUGIN_ID,
                            "Failed to load feature", exception));//$NON-NLS-1$
              }
            }
          }
        }
      }

      int wCount = getWorkbench().getWorkbenchWindowCount();
      for (int i = 0; i < welcomeFeatures.size(); i++) {
        AboutInfo newInfo = (AboutInfo) welcomeFeatures.get(i);
        String id = newInfo.getWelcomePerspectiveId();
        // Other editors were already opened in postWindowRestore(..)
        if (id == null || i >= wCount) {
          openWelcomeEditor(window, new WelcomeEditorInput(newInfo),
              id);
        }
View Full Code Here


    IBundleGroupProvider[] providers = Platform.getBundleGroupProviders();
    for (int i = 0; i < providers.length; ++i) {
      IBundleGroup[] groups = providers[i].getBundleGroups();
      for (int j = 0; j < groups.length; ++j) {
        IBundleGroup group = groups[j];
        AboutInfo info = new AboutInfo(group);

        String version = info.getVersionId();
        version = version == null ? "0.0.0" //$NON-NLS-1$
            : new Version(version).toString();
        String versionedFeature = group.getIdentifier() + ":" + version; //$NON-NLS-1$

        ids.put(versionedFeature, info);
View Full Code Here

      // support old welcome perspectives if intro plugin is not present
      if (!hasIntro()) {
        Map m = getNewlyAddedBundleGroups();
        ArrayList list = new ArrayList(m.size());
        for (Iterator i = m.values().iterator(); i.hasNext();) {
          AboutInfo info = (AboutInfo) i.next();
          if (info != null && info.getWelcomePerspectiveId() != null
              && info.getWelcomePageURL() != null) {
            list.add(info);
          }
        }
        welcomePerspectiveInfos = new AboutInfo[list.size()];
        list.toArray(welcomePerspectiveInfos);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.internal.ide.AboutInfo

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.