@Override public void run() { Object selection = Viewers.getFirstSelected(tree); if (!(selection instanceof UpstreamTreeNode)) return; UpstreamTreeNode node = (UpstreamTreeNode) selection; LongPair processProduct = node.getProcessProduct(); ProcessDescriptor process = Cache.getEntityCache().get(ProcessDescriptor.class, processProduct.getFirst()); if (process != null) App.openEditor(process); }
@Override public void run() { for (ModelElement element : elements) App.openEditor(element.getContent()); }