コード例 #1
0
  private void addParameterValues(Map values, IWizardCategory wizardCategory) {

    final IWizardDescriptor[] wizardDescriptors = wizardCategory.getWizards();
    for (int i = 0; i < wizardDescriptors.length; i++) {
      final IWizardDescriptor wizardDescriptor = wizardDescriptors[i];

      // Note: using description instead of label for the name
      // to reduce possibilities of key collision in the map
      // final String name = wizardDescriptor.getDescription();

      // by request
      String name = wizardDescriptor.getLabel();
      final String id = wizardDescriptor.getId();
      final String value = (String) values.get(name);
      if (value != null && !value.equals(id)) {
        name = name + " (" + id + ")"; // $NON-NLS-1$//$NON-NLS-2$
      }
      values.put(name, id);
    }

    final IWizardCategory[] childCategories = wizardCategory.getCategories();
    for (int i = 0; i < childCategories.length; i++) {
      final IWizardCategory childCategory = childCategories[i];
      addParameterValues(values, childCategory);
    }
  }
コード例 #2
0
ファイル: WorkbenchWizardNode.java プロジェクト: oaperez/rap
 /* (non-Javadoc)
  * @see org.eclipse.ui.IPluginContribution#getLocalId()
  */
 public String getLocalId() {
   IPluginContribution contribution =
       (IPluginContribution) Util.getAdapter(wizardElement, IPluginContribution.class);
   if (contribution != null) {
     return contribution.getLocalId();
   }
   return wizardElement.getId();
 }
コード例 #3
0
ファイル: NewActionProvider.java プロジェクト: eclipse/cdo
 public String getId() {
   return delegate.getId();
 }