Ejemplo n.º 1
0
 private void doSelectionChanged() {
   StatusInfo status = new StatusInfo();
   List selected = fHistoryList.getSelectedElements();
   if (selected.size() != 1) {
     status.setError(""); // $NON-NLS-1$
     fResult = null;
   } else {
     fResult = (IModelElement) selected.get(0);
   }
   fHistoryList.enableButton(
       0, fHistoryList.getSize() > selected.size() && selected.size() != 0);
   fHistoryStatus = status;
   updateStatus(status);
 }
Ejemplo n.º 2
0
 /** Method doCustomButtonPressed. */
 private void doCustomButtonPressed() {
   fHistoryList.removeElements(fHistoryList.getSelectedElements());
 }