Exemple #1
0
 @Nullable
 private OpenFileDescriptor getDescriptorForTargetNode(MessageNode node) {
   final String targetName = node.getText()[0];
   final AntBuildTargetBase target =
       (AntBuildTargetBase) myBuildFile.getModel().findTarget(targetName);
   return (target == null) ? null : target.getOpenFileDescriptor();
 }
Exemple #2
0
 private @Nullable OpenFileDescriptor getDescriptorForTaskNode(MessageNode node) {
   final String[] text = node.getText();
   if (text == null || text.length == 0) return null;
   final String taskName = text[0];
   final TreeNode parentNode = node.getParent();
   if (!(parentNode instanceof MessageNode)) return null;
   final MessageNode messageNode = (MessageNode) parentNode;
   if (messageNode.getType() != AntBuildMessageView.MessageType.TARGET) return null;
   final BuildTask task =
       ((AntBuildModelBase) myBuildFile.getModel()).findTask(messageNode.getText()[0], taskName);
   return (task == null) ? null : task.getOpenFileDescriptor();
 }
Exemple #3
0
 public static OutputParser attachParser(
     final Project myProject,
     JUnitProcessHandler handler,
     final AntBuildMessageView errorView,
     final ProgressIndicator progress,
     final AntBuildFile buildFile) {
   OutputParser2 parser =
       new OutputParser2(myProject, handler, errorView, progress, buildFile.getName());
   DeferedActionsQueue queue = new DeferedActionsQueueImpl();
   attach(parser, handler.getOut(), queue);
   attach(parser, handler.getErr(), queue);
   return parser;
 }