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

java.lang.Object
  extended by com.aptana.ide.ui.editors.preferences.formatter.ProfileConfigurationBlock
      extended by com.aptana.ide.ui.editors.preferences.formatter.CodeFormatterConfigurationBlock

public abstract class CodeFormatterConfigurationBlock
extends ProfileConfigurationBlock

The code formatter preference page.


Field Summary
protected static java.lang.String DIALOGSTORE_LASTSAVELOADPATH
           
protected static java.lang.String FORMATTER_DIALOG_PREFERENCE_KEY
           
protected  java.lang.String PREVIEW
          Some Java source code used for preview.
 
Fields inherited from class com.aptana.ide.ui.editors.preferences.formatter.ProfileConfigurationBlock
pluginId
 
Constructor Summary
CodeFormatterConfigurationBlock(org.eclipse.core.resources.IProject project, PreferencesAccess access, java.lang.String editor, org.eclipse.jface.preference.IPreferenceStore store, java.lang.String preview, java.lang.String pluginId)
          Create a new CodeFormatterConfigurationBlock.
 
Method Summary
protected  void configurePreview(org.eclipse.swt.widgets.Composite composite, int numColumns, ProfileManager profileManager)
           
protected abstract  ModifyDialog createModifyDialog(org.eclipse.swt.widgets.Shell shell, ProfileManager.Profile profile, ProfileManager profileManager, ProfileStore profileStore, boolean newProfile)
           
protected  ProfileManager createProfileManager(java.util.List profiles, org.eclipse.core.runtime.preferences.IScopeContext context, PreferencesAccess access)
           
protected  ProfileStore createProfileStore()
           
 
Methods inherited from class com.aptana.ide.ui.editors.preferences.formatter.ProfileConfigurationBlock
createContents, createLabel, dispose, enableProjectSpecificSettings, hasProjectSpecificOptions, performApply, performDefaults, performOk, preferenceChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORMATTER_DIALOG_PREFERENCE_KEY

protected static final java.lang.String FORMATTER_DIALOG_PREFERENCE_KEY
See Also:
Constant Field Values

DIALOGSTORE_LASTSAVELOADPATH

protected static final java.lang.String DIALOGSTORE_LASTSAVELOADPATH
See Also:
Constant Field Values

PREVIEW

protected final java.lang.String PREVIEW
Some Java source code used for preview.

Constructor Detail

CodeFormatterConfigurationBlock

public CodeFormatterConfigurationBlock(org.eclipse.core.resources.IProject project,
                                       PreferencesAccess access,
                                       java.lang.String editor,
                                       org.eclipse.jface.preference.IPreferenceStore store,
                                       java.lang.String preview,
                                       java.lang.String pluginId)
Create a new CodeFormatterConfigurationBlock.

Parameters:
project -
access -
editor -
store -
preview -
pluginId -
Method Detail

createProfileStore

protected ProfileStore createProfileStore()
Specified by:
createProfileStore in class ProfileConfigurationBlock
Returns:
ProfileStore
See Also:
ProfileConfigurationBlock.createProfileStore()

createProfileManager

protected ProfileManager createProfileManager(java.util.List profiles,
                                              org.eclipse.core.runtime.preferences.IScopeContext context,
                                              PreferencesAccess access)
Specified by:
createProfileManager in class ProfileConfigurationBlock
Returns:
ProfileManager
See Also:
ProfileConfigurationBlock.createProfileManager(java.util.List, org.eclipse.core.runtime.preferences.IScopeContext, com.aptana.ide.internal.ui.dialogs.PreferencesAccess)

configurePreview

protected void configurePreview(org.eclipse.swt.widgets.Composite composite,
                                int numColumns,
                                ProfileManager profileManager)
Specified by:
configurePreview in class ProfileConfigurationBlock
See Also:
ProfileConfigurationBlock.configurePreview(org.eclipse.swt.widgets.Composite, int, com.aptana.ide.ui.editors.preferences.formatter.ProfileManager)

createModifyDialog

protected abstract ModifyDialog createModifyDialog(org.eclipse.swt.widgets.Shell shell,
                                                   ProfileManager.Profile profile,
                                                   ProfileManager profileManager,
                                                   ProfileStore profileStore,
                                                   boolean newProfile)
Specified by:
createModifyDialog in class ProfileConfigurationBlock
Returns:
ModifyDialog
See Also:
ProfileConfigurationBlock.createModifyDialog(org.eclipse.swt.widgets.Shell, com.aptana.ide.ui.editors.preferences.formatter.ProfileManager.Profile, com.aptana.ide.ui.editors.preferences.formatter.ProfileManager, com.aptana.ide.ui.editors.preferences.formatter.ProfileStore, boolean)