mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
dc0f8122c3
commit
cdd6f113b5
1 changed files with 14 additions and 19 deletions
|
@ -48,12 +48,7 @@ import org.eclipse.cdt.ui.CUIPlugin;
|
|||
import org.eclipse.cdt.internal.ui.preferences.BuildConsolePreferencePage;
|
||||
|
||||
public class BuildConsolePartitioner
|
||||
implements
|
||||
IDocumentPartitioner,
|
||||
IDocumentPartitionerExtension,
|
||||
IConsole,
|
||||
IPropertyChangeListener {
|
||||
|
||||
implements IDocumentPartitioner, IDocumentPartitionerExtension, IConsole, IPropertyChangeListener {
|
||||
private IProject fProject;
|
||||
|
||||
/**
|
||||
|
@ -66,7 +61,7 @@ public class BuildConsolePartitioner
|
|||
/**
|
||||
* The stream that was last appended to
|
||||
*/
|
||||
BuildConsoleStreamDecorator fLastStream = null;
|
||||
BuildConsoleStreamDecorator fLastStream;
|
||||
|
||||
BuildConsoleDocument fDocument;
|
||||
DocumentMarkerManager fDocumentMarkerManager;
|
||||
|
@ -153,7 +148,6 @@ public class BuildConsolePartitioner
|
|||
public int getEventType() {
|
||||
return eventType;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -219,7 +213,8 @@ public class BuildConsolePartitioner
|
|||
StreamEntry entry = fQueue.get(i - 1);
|
||||
// if last stream is the same and we have not exceeded our
|
||||
// display write limit, append.
|
||||
if (entry.getStream()==stream && entry.getEventType()==StreamEntry.EVENT_APPEND && entry.getMarker()==marker && entry.size()<10000) {
|
||||
if (entry.getStream() == stream && entry.getEventType() == StreamEntry.EVENT_APPEND &&
|
||||
entry.getMarker() == marker && entry.size() < 10000) {
|
||||
entry.appendText(text);
|
||||
addToQueue = false;
|
||||
}
|
||||
|
@ -496,7 +491,7 @@ public class BuildConsolePartitioner
|
|||
int overflow = 0;
|
||||
try {
|
||||
overflow = fDocument.getLineOffset(nLines - fMaxLines);
|
||||
} catch (BadLocationException e1) {
|
||||
} catch (BadLocationException e) {
|
||||
}
|
||||
// update partitions
|
||||
List<ITypedRegion> newParitions = new ArrayList<ITypedRegion>(fPartitions.size());
|
||||
|
|
Loading…
Add table
Reference in a new issue