Commit c7d5d101 authored by Johannes Roith's avatar Johannes Roith
Browse files

Remove debugging traces.

parent b838c725
......@@ -142,36 +142,28 @@ public class Controller {
ITypedRegion region = document.getPartition(event.getOffset());
//TODO: Space for performance improvements
if (event.getText().trim().length() == 0 && (document.getLength()<=(event.getOffset()+1) || document.getChar(event.getOffset()+1) == (' '))) {
System.out.println("0 Trim detected");
if (event.getText().equals(
System.getProperty("line.separator"))) {
// Some debug outut...
System.out.println("new line");
addJobToDo(JobsToDo.locationPatch);
}
if (event.getText().equals("")) {
System.out.println("delete");
char beforeDelete = '+'; // DUMMY
int offset = event.getOffset();
if (offset > 0)
beforeDelete = document.get().charAt(offset - 1);
//System.out.println(beforeDelete);
if (region.getType().equals(CupPartionScanner.JAVA_CODE)) {
if (beforeDelete == '{') {
System.out.println("comment delete");
addJobToDo(JobsToDo.parseCode);
addJobToDo(JobsToDo.buildTable);
}
} else if (region.getType().equals(CupPartionScanner.SINGLE_COMMENT)){
if (beforeDelete == '/') {
System.out.println("comment delete");
addJobToDo(JobsToDo.parseCode);
addJobToDo(JobsToDo.buildTable);
}
} else if (region.getType().equals(CupPartionScanner.MULTILINE_COMMENT)){
if (beforeDelete == '/' || beforeDelete == '*') {
System.out.println("comment delete");
addJobToDo(JobsToDo.parseCode);
addJobToDo(JobsToDo.buildTable);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment