Commit 27b20ac2 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

lets not require the stream for output.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent 02f22975
...@@ -292,16 +292,15 @@ public class ChangeCreator { ...@@ -292,16 +292,15 @@ public class ChangeCreator {
if (needSorting || (removeImports && !isused)) { if (needSorting || (removeImports && !isused)) {
if (reportDebug) { if (reportDebug) {
final MessageConsoleStream stream = TITANDebugConsole.getConsole().newMessageStream();
TITANDebugConsole.println("Removing " TITANDebugConsole.println("Removing "
+ "'" + "'"
+ doc.substring(startLineRegion.getOffset(), endLineRegion.getOffset() + doc.substring(startLineRegion.getOffset(), endLineRegion.getOffset()
+ endLineRegion.getLength() + delLength) + "'", stream); + endLineRegion.getLength() + delLength) + "'");
TITANDebugConsole.println("From " TITANDebugConsole.println("From "
+ startLineRegion.getOffset() + startLineRegion.getOffset()
+ " till " + " till "
+ ((endLineRegion.getOffset() - startLineRegion.getOffset()) + ((endLineRegion.getOffset() - startLineRegion.getOffset())
+ endLineRegion.getLength() + delLength), stream); + endLineRegion.getLength() + delLength));
} }
removeEdit.addChild(new DeleteEdit(startLineRegion.getOffset(), removeEdit.addChild(new DeleteEdit(startLineRegion.getOffset(),
......
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