Skip to content

Commit

Permalink
Run/ Debug Configurations tab Plug-ins issue #311
Browse files Browse the repository at this point in the history
In Run/Debug configurations when changing Start Level/ Auto-Start for
some plug-ins and apply the changes,
and closing and reopening the popup will make changes to disappear
provided "Only show selected" is selected.

Fixes #311
  • Loading branch information
lathapatil authored and gireeshpunathil committed Sep 20, 2023
1 parent ec3cb35 commit 86ad78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1113,12 +1113,12 @@ protected void resetGroup(NamedElement group) {
}

protected final void initializePluginsState(Map<IPluginModelBase, String> selectedPlugins) {
fPluginTreeViewer.setCheckedElements(selectedPlugins.keySet().toArray());
for (Entry<IPluginModelBase, String> entry : selectedPlugins.entrySet()) {
IPluginModelBase model = entry.getKey();
setText(model, entry.getValue());
}

fPluginTreeViewer.setCheckedElements(selectedPlugins.keySet().toArray());
countSelectedModels();
resetGroup(fWorkspacePlugins);
resetGroup(fExternalPlugins);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public boolean setChecked(Object element, boolean state) {

@Override
public void setCheckedElements(Object[] elements) {
super.setCheckedElements(elements);

if (checkState == null) {
checkState = new HashSet<>();
} else {
Expand All @@ -180,6 +180,7 @@ public void setCheckedElements(Object[] elements) {
}
}
}
super.setCheckedElements(elements);
}

@Override
Expand Down

0 comments on commit 86ad78d

Please sign in to comment.