コード例 #1
0
 @Override
 public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
   // save the graph nodes that are removed from the hiding model
   shownNeighbors.clear();
   Set<NodeContentPart> hiddenNeighbors = hidingModel.getHiddenNeighborParts(nodePart);
   if (hiddenNeighbors != null && !hiddenNeighbors.isEmpty()) {
     for (NodeContentPart neighborPart : hiddenNeighbors) {
       neighborPart.activate();
       hidingModel.show(neighborPart);
       shownNeighbors.add(neighborPart);
     }
   }
   return Status.OK_STATUS;
 }
コード例 #2
0
 @Override
 public boolean isNoOp() {
   Set<NodeContentPart> hiddenNeighbors = hidingModel.getHiddenNeighborParts(nodePart);
   return hiddenNeighbors != null && !hiddenNeighbors.isEmpty();
 }