This minor change is needed by sysdyn to be able to add Modules to
symbol groups.
gitlab #69
Change-Id: I7df2c397a299e1a49a7912809fa7773917e6cfe3
*/
public class AssignSymbolGroupsHandler extends AbstractHandler {
+ public static Object handleStatic(Collection<Resource> res) throws ExecutionException {
+ return executeImpl(res);
+ }
+
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
ISelection s = HandlerUtil.getCurrentSelection(event);
return null;
Collection<Resource> res = ISelectionUtils.getPossibleKeys(s, SelectionHints.KEY_MAIN, Resource.class);
+ return executeImpl(res);
+ }
+
+ private static Object executeImpl(Collection<Resource> res) throws ExecutionException {
if (!res.isEmpty())
new AssignSymbolGroup().assignGroups(res);
-
return null;
}