Index: ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterMessages.properties =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterMessages.properties,v retrieving revision 1.39 diff -u -r1.39 FormatterMessages.properties --- ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterMessages.properties 1 Apr 2005 13:45:00 -0000 1.39 +++ ui/org/eclipse/jdt/internal/ui/preferences/formatter/FormatterMessages.properties 18 Apr 2005 18:26:05 -0000 @@ -522,6 +522,7 @@ ProfileManager_default_profile_name=Eclipse 2.1 [built-in] ProfileManager_eclipse_profile_name=Eclipse [built-in] +ProfileManager_gnu_profile_name=GNU [built-in] ProfileManager_unnamed_profile_name0=Unnamed profile ProfileManager_java_conventions_profile_name=Java Conventions [built-in] Index: ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileManager.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileManager.java,v retrieving revision 1.19 diff -u -r1.19 ProfileManager.java --- ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileManager.java 1 Apr 2005 13:45:00 -0000 1.19 +++ ui/org/eclipse/jdt/internal/ui/preferences/formatter/ProfileManager.java 18 Apr 2005 18:26:05 -0000 @@ -292,6 +292,7 @@ */ public final static String ECLIPSE21_PROFILE= "org.eclipse.jdt.ui.default_profile"; //$NON-NLS-1$ public final static String ECLIPSE_PROFILE= "org.eclipse.jdt.ui.default.eclipse_profile"; //$NON-NLS-1$ + public final static String GNU_PROFILE= "org.eclipse.jdt.ui.default.gnu_profile"; //$NON-NLS-1$ public final static String JAVA_PROFILE= "org.eclipse.jdt.ui.default.sun_profile"; //$NON-NLS-1$ public final static String SHARED_PROFILE= "org.eclipse.jdt.ui.default.shared"; //$NON-NLS-1$ @@ -582,6 +583,10 @@ final Profile eclipse21Profile= new BuiltInProfile(ECLIPSE21_PROFILE, FormatterMessages.getString("ProfileManager.default_profile.name"), getEclipse21Settings(), 3); //$NON-NLS-1$ profiles.put(eclipse21Profile.getID(), eclipse21Profile); profilesByName.add(eclipse21Profile); + + final Profile gnuProfile = new BuiltInProfile(GNU_PROFILE, FormatterMessages.getString("ProfileManager.gnu_profile.name"), getGNUSettings(), 4); //$NON-NLS-1$ + profiles.put(gnuProfile.getID(), gnuProfile); + profilesByName.add(gnuProfile); } @@ -604,8 +609,18 @@ ProfileVersioner.setLatestCompliance(options); return options; } - - /** + + /** + * @return Returns the settings for the GNU profile. + */ + public static Map getGNUSettings() { + final Map options = DefaultCodeFormatterConstants.getGNUSettings(); + + ProfileVersioner.setLatestCompliance(options); + return options; + } + + /** * @return Returns the settings for the Java Conventions profile. */ public static Map getJavaSettings() {