- private Runnable addSubscriptions(ReadGraph graph, Resource subscription, List<VariableReference> references,
+ private Runnable handleStringDrop(ReadGraph graph, Resource subscription, Resource targetModel, String source) throws DatabaseException {
+ try {
+ List<VariableReference> refs = VariableUtils.getVariableReferencesFromString(graph, targetModel, source);
+ return addSubscriptions(graph, subscription, refs, Collections.emptySet());
+ } catch (DatabaseException e) {
+ Activator.getDefault().getLog().log(new Status(IStatus.WARNING, Activator.PLUGIN_ID, getClass().getSimpleName() + ": Unrecognized String input: " + source));
+ return null;
+ }
+ }
+
+ private Runnable addSubscriptions(ReadGraph graph, Resource subscription, List<VariableReference> references,