Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2008-02-06 04:11:06 -0500
committerAnton Leherbauer2008-02-06 04:11:06 -0500
commit144cf6198d7004483864cb6b236311ef6f11abf4 (patch)
tree618d1a14fc441341eabb1dde51c303a4f8a35576
parent695417b5ccea4c7ad32e517a8dc9a162ece5db0f (diff)
downloadorg.eclipse.cdt-144cf6198d7004483864cb6b236311ef6f11abf4.tar.gz
org.eclipse.cdt-144cf6198d7004483864cb6b236311ef6f11abf4.tar.xz
org.eclipse.cdt-144cf6198d7004483864cb6b236311ef6f11abf4.zip
Fix for 186106: The Makefile Editor inserts spaces instead of a tab character
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java13
1 files changed, 11 insertions, 2 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 e5b48e631c4..8b88bfda1b4 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
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 QNX Software Systems and others.
+ * Copyright (c) 2000, 2008 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,7 +7,7 @@
*
* Contributors:
* QNX Software Systems - Initial API and implementation
- * Anton Leherbauer, Wind River Systems, Inc.
+ * Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.make.internal.ui.editor;
@@ -443,4 +443,13 @@ public class MakefileEditor extends TextEditor implements ISelectionChangedListe
System.arraycopy(parentPrefPageIds, 0, prefPageIds, nIds, parentPrefPageIds.length);
return prefPageIds;
}
+
+ /*
+ * @see org.eclipse.ui.texteditor.AbstractDecoratedTextEditor#isTabsToSpacesConversionEnabled()
+ */
+ protected boolean isTabsToSpacesConversionEnabled() {
+ // always false for Makefiles
+ // see http://bugs.eclipse.org/186106
+ return false;
+ }
}

Back to the top