com.aptana.ide.ui.editors.preferences.formatter
Class FormatterProfileManager

java.lang.Object
  extended by java.util.Observable
      extended by com.aptana.ide.ui.editors.preferences.formatter.ProfileManager
          extended by com.aptana.ide.ui.editors.preferences.formatter.FormatterProfileManager

public class FormatterProfileManager
extends ProfileManager


Nested Class Summary
 
Nested classes/interfaces inherited from class com.aptana.ide.ui.editors.preferences.formatter.ProfileManager
ProfileManager.BuiltInProfile, ProfileManager.CustomProfile, ProfileManager.KeySet, ProfileManager.Profile, ProfileManager.SharedProfile
 
Field Summary
static java.lang.String DEFAULT_PROFILE
           
static java.lang.String JAVA_PROFILE
           
static java.lang.String NO_FORMATTING
           
 
Fields inherited from class com.aptana.ide.ui.editors.preferences.formatter.ProfileManager
ID_PREFIX, pluginId, PROFILE_CREATED_EVENT, PROFILE_DELETED_EVENT, PROFILE_RENAMED_EVENT, SELECTION_CHANGED_EVENT, SETTINGS_CHANGED_EVENT
 
Constructor Summary
FormatterProfileManager(java.util.List profiles, org.eclipse.core.runtime.preferences.IScopeContext context, PreferencesAccess preferencesAccess, java.lang.String pluginId)
           
 
Method Summary
 ProfileManager.Profile getDefaultProfile()
           
static java.util.Map getDefaultSettings()
           
static java.util.Map getEclipse21Settings()
           
static java.util.Map getEclipseSettings()
           
static java.util.Map getJavaSettings()
           
static java.util.Map getNoFormattingSettings()
           
protected  java.lang.String getSelectedProfileId(org.eclipse.core.runtime.preferences.IScopeContext instanceScope)
           
 
Methods inherited from class com.aptana.ide.ui.editors.preferences.formatter.ProfileManager
addProfile, clearAllSettings, commitChanges, containsName, deleteProfile, deleteSelected, getProfile, getSelected, getSortedDisplayNames, getSortedProfiles, hasProjectSpecificSettings, hasProjectSpecificSettings, notifyObservers, profileChanged, profileRenamed, profileReplaced, setSelected, updateProfilesWithName
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA_PROFILE

public static final java.lang.String JAVA_PROFILE
See Also:
Constant Field Values

NO_FORMATTING

public static final java.lang.String NO_FORMATTING
See Also:
Constant Field Values

DEFAULT_PROFILE

public static final java.lang.String DEFAULT_PROFILE
See Also:
Constant Field Values
Constructor Detail

FormatterProfileManager

public FormatterProfileManager(java.util.List profiles,
                               org.eclipse.core.runtime.preferences.IScopeContext context,
                               PreferencesAccess preferencesAccess,
                               java.lang.String pluginId)
Parameters:
profiles -
context -
preferencesAccess -
pluginId -
Method Detail

getNoFormattingSettings

public static java.util.Map getNoFormattingSettings()
Returns:
Returns the settings for the no formatting profile.

getEclipse21Settings

public static java.util.Map getEclipse21Settings()
Returns:
Returns the settings for the default profile.

getEclipseSettings

public static java.util.Map getEclipseSettings()
Returns:
Returns the settings for the new eclipse profile.

getJavaSettings

public static java.util.Map getJavaSettings()
Returns:
Returns the settings for the Java Conventions profile.

getDefaultSettings

public static java.util.Map getDefaultSettings()
Returns:
Returns the default settings.

getSelectedProfileId

protected java.lang.String getSelectedProfileId(org.eclipse.core.runtime.preferences.IScopeContext instanceScope)
Overrides:
getSelectedProfileId in class ProfileManager
Returns:
String
See Also:
ProfileManager.getSelectedProfileId(org.eclipse.core.runtime.preferences.IScopeContext)

getDefaultProfile

public ProfileManager.Profile getDefaultProfile()
Specified by:
getDefaultProfile in class ProfileManager
Returns:
default Profile
See Also:
ProfileManager.getDefaultProfile()