Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2007, 2018 IBM Corporation and others.
* Copyright (c) 2007, 2026 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -277,6 +277,14 @@ void setAllChecked(boolean checked) {
updateSelection();
}

private void updatePageCompleteAsync() {
Display displayPage = availableIUGroup.getCheckboxTreeViewer().getControl().getDisplay();
displayPage.asyncExec(() -> {
Object[] checked = availableIUGroup.getCheckboxTreeViewer().getCheckedElements();
setPageComplete(checked.length > 0);
});
}

private void createViewControlsArea(Composite parent) {
showLatestVersionsCheckbox = new Button(parent, SWT.CHECK);
showLatestVersionsCheckbox.setText(ProvUIMessages.AvailableIUsPage_ShowLatestVersions);
Expand All @@ -285,12 +293,14 @@ private void createViewControlsArea(Composite parent) {
public void widgetDefaultSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}

@Override
public void widgetSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}
});

Expand All @@ -301,12 +311,14 @@ public void widgetSelected(SelectionEvent e) {
public void widgetDefaultSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}

@Override
public void widgetSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}
});

Expand All @@ -317,12 +329,14 @@ public void widgetSelected(SelectionEvent e) {
public void widgetDefaultSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}

@Override
public void widgetSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}
});

Expand All @@ -343,12 +357,14 @@ public void runWithEvent(Event event) {
public void widgetDefaultSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}

@Override
public void widgetSelected(SelectionEvent e) {
updateQueryContext();
availableIUGroup.updateAvailableViewState();
updatePageCompleteAsync();
}
});

Expand Down
Loading