Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Barnes2006-02-09 17:33:26 -0500
committerKevin Barnes2006-02-09 17:33:26 -0500
commit49d408d814370e204191dc174816b651c0d3eb61 (patch)
treeee3e95f25c51fbd78d3ad5ebb1e8dc14e696a64a /org.eclipse.ui.console
parentdd6074401a94d00e6658ed78def44e1067c6400d (diff)
downloadeclipse.platform.debug-49d408d814370e204191dc174816b651c0d3eb61.tar.gz
eclipse.platform.debug-49d408d814370e204191dc174816b651c0d3eb61.tar.xz
eclipse.platform.debug-49d408d814370e204191dc174816b651c0d3eb61.zip
Bug 127130 - ConsoleDocumentAdapter.repairLines needs review
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
index 0b345fa3d..f42c147c0 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleDocumentAdapter.java
@@ -63,15 +63,15 @@ public class ConsoleDocumentAdapter implements IDocumentAdapter, IDocumentListen
}
try {
int docLine = document.getLineOfOffset(eventOffset);
- int docLineStart = document.getLineOffset(docLine);
- int textLine = getLineAtOffset(docLineStart);
+ int docLineOffset = document.getLineOffset(docLine);
+ int widgetLine = getLineAtOffset(docLineOffset);
- for (int i=regionCount-1; i>=textLine; i--) {
+ for (int i=regionCount-1; i>=widgetLine; i--) {
regionCount--;
}
int numLinesInDoc = document.getNumberOfLines();
- String line = null;
+
int nextOffset = document.getLineOffset(docLine);
for (int i = docLine; i<numLinesInDoc; i++) {
int offset = nextOffset;
@@ -102,10 +102,6 @@ public class ConsoleDocumentAdapter implements IDocumentAdapter, IDocumentListen
}
}
}
- if (line != null && lineEndsWithDelimeter(line)) {
- addRegion(nextOffset, 0);
- }
-
} catch (BadLocationException e) {
}

Back to the top