Bug 42068 Pref Pages button order
The button order of: New.../Add... Edit... Remove Should be the same on the following preference pages: Classpath Variables Debug/Detail Formatter Editor/Templates Installed JREs Organize Imports Task Tags @@@ There should be no extra space on: Classpath Variables Task Tags @@@@ The "Up" and "Down" Buttons on Organize Imports should be placed after "New...", "Edit...", and "Remove" for consistency. There should be an extra space between "Remove" and "Enable All" on Debug/Step Filtering for consistency. There should be an extra space between "Remove" and "Search" on Installed JREs for consistency.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/ImportOrganizePreferencePage.java
private static final String PREF_IMPORTORDER= PreferenceConstants.ORGIMPORTS_IMPORTORDER;
	private static final String PREF_ONDEMANDTHRESHOLD= PreferenceConstants.ORGIMPORTS_ONDEMANDTHRESHOLD;
	private static final String PREF_IGNORELOWERCASE= PreferenceConstants.ORGIMPORTS_IGNORELOWERCASE;
	private static final String PREF_LASTLOADPATH= JavaUI.ID_PLUGIN + ".importorder.loadpath"; 
	private static final String PREF_LASTSAVEPATH= JavaUI.ID_PLUGIN + ".importorder.savepath"; 
	/**
	 * @deprecated Inline to avoid reference to preference page
	 */
	public static String[] getImportOrderPreference() {
		IPreferenceStore prefs= JavaPlugin.getDefault().getPreferenceStore();
		String str= prefs.getString(PREF_IMPORTORDER);
		if (str != null) {
			return unpackOrderList(str);
		}
		return new String[0];
	}
	
	
	
	private static String[] unpackOrderList(String str) {
		StringTokenizer tok= new StringTokenizer(str, ";"); 
		int nTokens= tok.countTokens();
		String[] res= new String[nTokens];
		for (int i= 0; i < nTokens; i++) {
			res[i]= tok.nextToken();
		}
		return res;
	}