mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Was using the wrong store
This commit is contained in:
parent
ded13023be
commit
e83262eb3d
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ import org.eclipse.cdt.core.ToolFactory;
|
|||
import org.eclipse.cdt.core.formatter.CodeFormatter;
|
||||
import org.eclipse.cdt.internal.corext.Assert;
|
||||
import org.eclipse.cdt.ui.CUIPlugin;
|
||||
import org.eclipse.core.runtime.Preferences;
|
||||
import org.eclipse.jface.preference.IPreferenceStore;
|
||||
import org.eclipse.jface.text.BadLocationException;
|
||||
import org.eclipse.jface.text.BadPositionCategoryException;
|
||||
import org.eclipse.jface.text.DefaultPositionUpdater;
|
||||
|
@ -135,8 +135,8 @@ public class CodeFormatterUtil {
|
|||
}
|
||||
|
||||
public static int getTabWidth() {
|
||||
Preferences preferences= CUIPlugin.getDefault().getPluginPreferences();
|
||||
return preferences.getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH);
|
||||
IPreferenceStore store = CUIPlugin.getDefault().getCombinedPreferenceStore();
|
||||
return store.getInt(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_TAB_WIDTH);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue