package melnorme.lang.ide.ui;

import melnorme.lang.ide.core.utils.prefs.IntPreference;
import melnorme.lang.ide.core.utils.prefs.StringPreference;


public interface CodeFormatterConstants_Actual {
	
	public static final String QUALIFIER = LangUIPlugin.PLUGIN_ID;
	
	public static final String TAB = "CodeFormatterConstants.TAB";
	public static final String SPACES = "CodeFormatterConstants.SPACE";
	public static final String MIXED = "CodeFormatterConstants.MIXED";
	
	
	StringPreference FORMATTER_INDENT_MODE = 
			new StringPreference(QUALIFIER, "CodeFormatterConstants.FORMATTER_TAB_CHAR", TAB);
	IntPreference FORMATTER_TAB_SIZE = 
			new IntPreference(QUALIFIER, "CodeFormatterConstants.FORMATTER_TAB_SIZE", 4);
	IntPreference FORMATTER_INDENTATION_SPACES_SIZE = 
			new IntPreference(QUALIFIER, "CodeFormatterConstants.FORMATTER_INDENTATION_SIZE", 4);
	
	class Helper {
		
		public static void initDefaults() {
			// This will ensure default value is initialized
			FORMATTER_INDENT_MODE.get();
			FORMATTER_TAB_SIZE.get();
			FORMATTER_INDENTATION_SPACES_SIZE.get();
		}
		
	}
	
}
@@ -1,8 +1,569 @@
+/*******************************************************************************%0D%0A * Copyright (c) 2014, 2014 Bruno Medeiros and other Contributors.%0D%0A * All rights reserved. This program and the accompanying materials%0D%0A * are made available under the terms of the Eclipse Public License v1.0%0D%0A * which accompanies this distribution, and is available at%0D%0A * http://www.eclipse.org/legal/epl-v10.html%0D%0A *%0D%0A * Contributors:%0D%0A *     Bruno Medeiros - initial API and implementation%0D%0A *******************************************************************************/%0D%0A
 package 
@@ -706,16 +706,56 @@
 rence;%0D%0A
+import melnorme.utilbox.misc.MiscUtil;%0D%0A
 %0D%0A%0D%0Apubl
@@ -1548,25 +1548,19 @@
 %09// 
-This will e
+E
 nsure 
+all 
 defa
@@ -1568,19 +1568,21 @@
 lt value
- is
+s are
  initial
@@ -1589,114 +1589,167 @@
 ized
-%0D%0A%09%09%09FORMATTER_INDENT_MODE.get();%0D%0A%09%09%09FORMATTER_TAB_SIZE.get();%0D%0A%09%09%09FORMATTER_INDENTATION_SPACES_SIZE.get(
+, in case prefs are accessed by means other%0D%0A%09%09%09// than by referencing the constants above %0D%0A%09%09%09MiscUtil.loadClass(LangAutoEditPreferenceConstants_Actual.class
 );%0D%0A

Fix defaults init NPE.