Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAnton Leherbauer2008-11-05 10:26:58 +0000
committerAnton Leherbauer2008-11-05 10:26:58 +0000
commit415ff10013d3a65823757e9a06361860ad6e08ae (patch)
tree110c2bc82632c479d785c232b0763330b26ae1d2 /build
parent55a0d30355f89f288b2d51597dc2b829f5ec6b37 (diff)
downloadorg.eclipse.cdt-415ff10013d3a65823757e9a06361860ad6e08ae.tar.gz
org.eclipse.cdt-415ff10013d3a65823757e9a06361860ad6e08ae.tar.xz
org.eclipse.cdt-415ff10013d3a65823757e9a06361860ad6e08ae.zip
Code cleanup
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java30
1 files changed, 1 insertions, 29 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java
index 8b88bfda1b4..60cded12cfd 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java
@@ -27,9 +27,7 @@ import org.eclipse.jface.text.FindReplaceDocumentAdapter;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextOperationTarget;
-import org.eclipse.jface.text.ITextViewerExtension;
import org.eclipse.jface.text.rules.IWordDetector;
-import org.eclipse.jface.text.source.IOverviewRuler;
import org.eclipse.jface.text.source.ISourceViewer;
import org.eclipse.jface.text.source.IVerticalRuler;
import org.eclipse.jface.text.source.SourceViewerConfiguration;
@@ -68,32 +66,6 @@ public class MakefileEditor extends TextEditor implements ISelectionChangedListe
*/
private ListenerList fReconcilingListeners= new ListenerList(ListenerList.IDENTITY);
- /**
- * Adapted source viewer for CEditor
- */
-
- public class AdaptedSourceViewer extends ProjectionViewer implements ITextViewerExtension {
-
-
- public AdaptedSourceViewer(Composite parent, IVerticalRuler ruler,
- IOverviewRuler overviewRuler, boolean showsAnnotation, int styles) {
- super(parent, ruler, overviewRuler, showsAnnotation, styles);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.jface.text.source.ISourceViewer#setRangeIndication(int, int, boolean)
- */
- public void setRangeIndication(int offset, int length, boolean moveCursor) {
- // Fixin a bug in the ProjectViewer implemenation
- // PR: https://bugs.eclipse.org/bugs/show_bug.cgi?id=72914
- if (isProjectionMode()) {
- super.setRangeIndication(offset, length, moveCursor);
- } else {
- super.setRangeIndication(offset, length, false);
- }
- }
- }
-
MakefileSourceConfiguration getMakefileSourceConfiguration() {
SourceViewerConfiguration configuration = getSourceViewerConfiguration();
@@ -169,7 +141,7 @@ public class MakefileEditor extends TextEditor implements ISelectionChangedListe
}
protected ISourceViewer createSourceViewer(Composite parent, IVerticalRuler ruler, int styles) {
- ISourceViewer viewer = new AdaptedSourceViewer(parent, ruler, getOverviewRuler(), isOverviewRulerVisible(), styles);
+ ISourceViewer viewer = new ProjectionViewer(parent, ruler, getOverviewRuler(), isOverviewRulerVisible(), styles);
// ensure decoration support has been created and configured.
getSourceViewerDecorationSupport(viewer);

Back to the top