Пример #1
0
 @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);
 }
Пример #2
0
 @Override
 public void run() {
   for (ModelElement element : elements) App.openEditor(element.getContent());
 }