コード例 #1
0
 @NotNull
 SliceNode copy() {
   SliceUsage newUsage = getValue().copy();
   SliceNode newNode = new SliceNode(getProject(), newUsage, targetEqualUsages);
   newNode.dupNodeCalculated = dupNodeCalculated;
   newNode.duplicate = duplicate;
   return newNode;
 }
コード例 #2
0
 @Nullable
 private List<UsageInfo> getSelectedUsageInfos() {
   TreePath[] paths = myTree.getSelectionPaths();
   if (paths == null) return null;
   final ArrayList<UsageInfo> result = new ArrayList<UsageInfo>();
   for (TreePath path : paths) {
     SliceNode sliceNode = fromPath(path);
     if (sliceNode != null) {
       result.add(sliceNode.getValue().getUsageInfo());
     }
   }
   if (result.isEmpty()) return null;
   return result;
 }
コード例 #3
0
 @Override
 public final void actionPerformed(final AnActionEvent e) {
   SliceNode rootNode = (SliceNode) myBuilder.getRootNode().getUserObject();
   rootNode.setChanged();
   myBuilder.addSubtreeToUpdate(myBuilder.getRootNode());
 }