- parent.getDisplay().asyncExec(new Runnable() {
- @Override
- public void run() {
- if (parent.isDisposed())
- return;
-
-// System.out.println("ACTIONS: " + Arrays.toString(actions));
- IAction action = chooseAction(parent, actions, resourceName, neverPromptForAction);
- if (action != null) {
- action.run();
- return;
- }
-
-// // 2. No actions ran, thus just open/close the tree
-// // node.
-// if (viewer.getExpandedState(singleSelection)) {
-// viewer.collapseToLevel(singleSelection, 1);
-// } else {
-// viewer.expandToLevel(singleSelection, 1);
-// }
-
+ parent.getDisplay().asyncExec(() -> {
+ if (parent.isDisposed())
+ return;
+// System.out.println("ACTIONS: " + Arrays.toString(actions));
+ IAction action = chooseAction(parent, actions, resourceName, neverPromptForAction);
+ if (action != null) {
+ action.run();
+ return;