コード例 #1
0
 /* (non-Javadoc)
  * @see org.eclipse.equinox.internal.p2.ui.dialogs.ProvisioningOperationWizard#getProfileChangeOperation(java.lang.Object[])
  */
 protected ProfileChangeOperation getProfileChangeOperation(Object[] elements) {
   InstallOperation op =
       new InstallOperation(ui.getSession(), ElementUtils.elementsToIUs(elements));
   op.setProfileId(getProfileId());
   //		op.setRootMarkerKey(getRootMarkerKey());
   return op;
 }
コード例 #2
0
 protected void initializeResolutionModelElements(Object[] selectedElements) {
   root = new IUElementListRoot(ui);
   ArrayList<AvailableIUElement> list = new ArrayList<AvailableIUElement>(selectedElements.length);
   ArrayList<AvailableIUElement> selected =
       new ArrayList<AvailableIUElement>(selectedElements.length);
   for (int i = 0; i < selectedElements.length; i++) {
     IInstallableUnit iu = ElementUtils.getIU(selectedElements[i]);
     if (iu != null) {
       AvailableIUElement element =
           new AvailableIUElement(root, iu, getProfileId(), shouldShowProvisioningPlanChildren());
       list.add(element);
       selected.add(element);
     }
   }
   root.setChildren(list.toArray());
   planSelections = selected.toArray();
   if (licensePage != null) {
     licensePage.update(
         ElementUtils.elementsToIUs(planSelections).toArray(new IInstallableUnit[0]), operation);
   }
 }
コード例 #3
0
 protected Collection<IInstallableUnit> getIUs() {
   return ElementUtils.elementsToIUs(input.getChildren(input));
 }
コード例 #4
0
 protected IInstallableUnit getSelectedIU() {
   java.util.List<IInstallableUnit> units = ElementUtils.elementsToIUs(getSelectedElements());
   if (units.size() == 0) return null;
   return units.get(0);
 }