@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); }
public static void openEditor(CategorizedEntity model) { openEditor(Descriptors.toDescriptor(model)); }
@Override public void run() { for (ModelElement element : elements) App.openEditor(element.getContent()); }