public class NullIdeTaskListManager implements TaskListManager {
public void addSourcelineTask(String message, ISourceLocation sourceLocation, IMessage.Kind kind) {
- System.out.println("> added sourceline task: " + message + ", file: " + sourceLocation.getSourceFile().getAbsolutePath()
- + ": " + sourceLocation.getLine());
+// System.out.println("> added sourceline task: " + message + ", file: " + sourceLocation.getSourceFile().getAbsolutePath()
+// + ": " + sourceLocation.getLine());
}
public void addProjectTask(String message, IMessage.Kind kind) {
- System.out.println("> added project task: " + message + ", kind: " + kind);
+// System.out.println("> added project task: " + message + ", kind: " + kind);
}
public void clearTasks() {
- System.out.println("> cleared tasks");
+// System.out.println("> cleared tasks");
}
}
return result;
}
+// XXX this should work
// public void testFieldInitializerCorrespondence() throws IOException {
// File testFile = createFile("testdata/examples/figures-coverage/figures/Figure.java");
// StructureNode node = Ajde.getDefault().getStructureModelManager().getStructureModel().findNodeForSourceLine(
new ArrayList());
if (kind == ProgramElementNode.Kind.METHOD) {
+ // !! should probably discriminate more
if (label.equals("main")) {
- peNode.setRunnable(true);
+ ((ProgramElementNode)stack.peek()).setRunnable(true);
}
}
config = command.genBuildConfig(
new String[] { "-incremental", "testdata/src1/Hello.java" },
messageWriter);
-
+
assertTrue(
"specified a file",
- outputWriter.getContents().indexOf("can not directly specify files") != -1); ;
+ outputWriter.getContents().indexOf("incremental mode only handles source files using -sourceroots") != -1); ;
}
public void testBadOptionAndUsagePrinting() throws InvalidInputException {