|
|
*/ | */ |
public final static String ECLIPSE21_PROFILE= "org.eclipse.jdt.ui.default_profile"; //$NON-NLS-1$ | 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 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 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$ | public final static String SHARED_PROFILE= "org.eclipse.jdt.ui.default.shared"; //$NON-NLS-1$ |
| |
|
|
final Profile eclipse21Profile= new BuiltInProfile(ECLIPSE21_PROFILE, FormatterMessages.getString("ProfileManager.default_profile.name"), getEclipse21Settings(), 3); //$NON-NLS-1$ | final Profile eclipse21Profile= new BuiltInProfile(ECLIPSE21_PROFILE, FormatterMessages.getString("ProfileManager.default_profile.name"), getEclipse21Settings(), 3); //$NON-NLS-1$ |
profiles.put(eclipse21Profile.getID(), eclipse21Profile); | profiles.put(eclipse21Profile.getID(), eclipse21Profile); |
profilesByName.add(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); |
} | } |
| |
| |
|
|
ProfileVersioner.setLatestCompliance(options); | ProfileVersioner.setLatestCompliance(options); |
return 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. | * @return Returns the settings for the Java Conventions profile. |
*/ | */ |
public static Map getJavaSettings() { | public static Map getJavaSettings() { |