/* (non-Javadoc)
  * @see org.eclipse.pde.internal.ui.editor.StructuredViewerSection#buttonSelected(int)
  */
 protected void buttonSelected(int index) {
   switch (index) {
     case 0:
       handleAdd();
       break;
     case 1:
       handleAddWorkingSet();
       break;
     case 2:
       handleAddRequired(getProduct().getPlugins(), fIncludeOptionalButton.getSelection());
       break;
     case 3:
       handleDelete();
       break;
     case 4:
       handleRemoveAll();
       break;
     case 5:
       handleProperties();
       break;
   }
 }
Ejemplo n.º 2
0
 @Override
 public void widgetSelected(SelectionEvent e) {
   Button selectedButton = (Button) e.widget;
   if (!selectedButton.getSelection()) return;
   for (int i = 0; i < 3; i++) if (selectedButton == buttons[i]) pickAncestor(i);
 }
 public boolean includeOptionalDependencies() {
   return fIncludeOptionalButton.getSelection();
 }