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); }
/** Method doCustomButtonPressed. */ private void doCustomButtonPressed() { fHistoryList.removeElements(fHistoryList.getSelectedElements()); }