@Override public void updateButtons() { okButton.setEnabled(isCurrentPageValid()); }
@Override public void updateButtons() { okButton.setEnabled(isCurrentPageValid()); }
public void updateButtons() { okButton.setEnabled(isCurrentPageValid()); }
@Override public void selectionChanged(SelectionChangedEvent event) { final Object selection = getSingleSelection(event.getSelection()); if (selection instanceof IPreferenceNode) { BusyIndicator.showWhile(getShell().getDisplay(), () -> { if (!isCurrentPageValid()) { handleError(); } else if (!showPage((IPreferenceNode) selection)) { // Page flipping wasn't successful handleError(); } else { // Everything went well lastSuccessfulNode = (IPreferenceNode) selection; } }); } } });
@Override public void selectionChanged(SelectionChangedEvent event) { final IPreferenceNode node = getSingleSelection(event.getSelection()); if (node != null) { BusyIndicator.showWhile(getShell().getDisplay(), () -> { if (!isCurrentPageValid()) { handleError(); } else if (!showPage(node)) { // Page flipping wasn't successful handleError(); } else { // Everything went well lastSuccessfulNode = node; } }); } } });