Examples of AboutBundleData


Examples of org.eclipse.ui.internal.about.AboutBundleData

              WorkbenchMessages.BundleSigningTray_Cant_Find_Service),
          StatusManager.LOG);
      return;
    }

    final AboutBundleData myData = data;
    final Job signerJob = new Job(NLS.bind(WorkbenchMessages.BundleSigningTray_Determine_Signer_For, myData.getId())) {

      protected IStatus run(IProgressMonitor monitor) {
        try {
          if (myData != data)
            return Status.OK_STATUS;
          CertificateVerifier verifier = certFactory.getVerifier(myData
              .getBundle());
          if (myData != data)
            return Status.OK_STATUS;
          CertificateChain[] chains = verifier.getChains();
          final String signerText, dateText;
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

        this.productName = productName;
       
        // create a data object for each bundle, remove duplicates, and include only resolved bundles (bug 65548)
        Map map = new HashMap();
        for (int i = 0; i < bundles.length; ++i) {
            AboutBundleData data = new AboutBundleData(bundles[i]);
            if (BundleUtility.isReady(data.getState()) && !map.containsKey(data.getVersionedId())) {
        map.put(data.getVersionedId(), data);
      }
        }
        bundleInfos = (AboutBundleData[]) map.values().toArray(
                new AboutBundleData[0]);
    }
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

    else {
      //show
      getButton(SIGNING_ID).setText(WorkbenchMessages.AboutPluginsDialog_signingInfo_hide);
      if (existingTray != null)
        closeTray();
      AboutBundleData bundleInfo = (AboutBundleData) ((IStructuredSelection) vendorInfo
          .getSelection()).getFirstElement();
      BundleSigningTray tray = new BundleSigningTray(this);
      tray.setData(bundleInfo);
      openTray(tray);
    }
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

      public void selectionChanged(SelectionChangedEvent event) {
        // enable if there is an item selected and that
                // item has additional info
        IStructuredSelection selection = (IStructuredSelection) event.getSelection();
        if (selection.getFirstElement() instanceof AboutBundleData) {
          AboutBundleData selected = (AboutBundleData) selection.getFirstElement();
          moreInfo.setEnabled(selectionHasInfo(selected));
          signingInfo.setEnabled(true);
          if (getTray() instanceof BundleSigningTray) {
            ((BundleSigningTray)getTray()).setData(selected);
          }
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

    }
       
        if (vendorInfo.getSelection().isEmpty())
          return;
       
        AboutBundleData bundleInfo = (AboutBundleData) ((IStructuredSelection) vendorInfo
        .getSelection()).getFirstElement();
       
        if (!openBrowser(getMoreInfoURL(bundleInfo, true))) {
      String message = NLS.bind(
          WorkbenchMessages.AboutPluginsDialog_unableToOpenFile,
          PLUGININFO, bundleInfo.getId());
      StatusUtil.handleStatus(
          WorkbenchMessages.AboutPluginsDialog_errorTitle
              + ": " + message, StatusManager.SHOW, getShell()); //$NON-NLS-1$
    }
    }
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

     * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnImage(java.lang.Object, int)
     */
    public Image getColumnImage(Object element, int columnIndex) {
      if (columnIndex == 0) {
        if (element instanceof AboutBundleData) {
          final AboutBundleData data = (AboutBundleData) element;
          if (data.isSignedDetermined()) {
            return WorkbenchImages
                .getImage(data.isSigned() ? IWorkbenchGraphicConstants.IMG_OBJ_SIGNED_YES
                    : IWorkbenchGraphicConstants.IMG_OBJ_SIGNED_NO);
          }
          Job resolveJob = new Job(data.getId()){

            protected IStatus run(IProgressMonitor monitor) {
             
              data.isSigned();
              Shell dialogShell = getShell();
              if (dialogShell == null || dialogShell.isDisposed())
                return Status.OK_STATUS;
               
              dialogShell.getDisplay().asyncExec(new Runnable() {
View Full Code Here

Examples of org.eclipse.ui.internal.about.AboutBundleData

    /* (non-Javadoc)
     * @see org.eclipse.jface.viewers.ITableLabelProvider#getColumnText(java.lang.Object, int)
     */
    public String getColumnText(Object element, int columnIndex) {
      if (element instanceof AboutBundleData) {
        AboutBundleData data = (AboutBundleData) element;
        switch (columnIndex) {
        case 1:
          return data.getProviderName();
        case 2:
          return data.getName();
        case 3:
          return data.getVersion();
        case 4:
          return data.getId();
        }
      }
      return ""; //$NON-NLS-1$
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.