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

java.lang.Object
  extended by com.aptana.ide.ui.editors.preferences.formatter.ProfileConfigurationBlock
Direct Known Subclasses:
CodeFormatterConfigurationBlock

public abstract class ProfileConfigurationBlock
extends java.lang.Object


Field Summary
protected  java.lang.String pluginId
           
 
Constructor Summary
ProfileConfigurationBlock(org.eclipse.core.resources.IProject project, PreferencesAccess access, java.lang.String lastSaveLoadPathKey, java.lang.String pluginId)
           
 
Method Summary
protected abstract  void configurePreview(org.eclipse.swt.widgets.Composite composite, int numColumns, ProfileManager profileManager)
           
 org.eclipse.swt.widgets.Composite createContents(org.eclipse.swt.widgets.Composite parent)
          Create the contents
protected static org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite composite, java.lang.String text, int numColumns)
           
protected abstract  ModifyDialog createModifyDialog(org.eclipse.swt.widgets.Shell shell, ProfileManager.Profile profile, ProfileManager profileManager, ProfileStore profileStore, boolean newProfile)
           
protected abstract  ProfileManager createProfileManager(java.util.List profiles, org.eclipse.core.runtime.preferences.IScopeContext context, PreferencesAccess access)
           
protected abstract  ProfileStore createProfileStore()
           
 void dispose()
           
 void enableProjectSpecificSettings(boolean useProjectSpecificSettings)
           
 boolean hasProjectSpecificOptions(org.eclipse.core.resources.IProject project)
           
 void performApply()
           
 void performDefaults()
           
 boolean performOk()
           
protected  void preferenceChanged(org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pluginId

protected java.lang.String pluginId
Constructor Detail

ProfileConfigurationBlock

public ProfileConfigurationBlock(org.eclipse.core.resources.IProject project,
                                 PreferencesAccess access,
                                 java.lang.String lastSaveLoadPathKey,
                                 java.lang.String pluginId)
Parameters:
project -
access -
lastSaveLoadPathKey -
pluginId -
Method Detail

preferenceChanged

protected void preferenceChanged(org.eclipse.core.runtime.preferences.IEclipsePreferences.PreferenceChangeEvent event)
Parameters:
event -

createProfileStore

protected abstract ProfileStore createProfileStore()
Returns:
ProfileStore

createProfileManager

protected abstract ProfileManager createProfileManager(java.util.List profiles,
                                                       org.eclipse.core.runtime.preferences.IScopeContext context,
                                                       PreferencesAccess access)
Parameters:
profiles -
context -
access -
Returns:
ProfileManager

createModifyDialog

protected abstract ModifyDialog createModifyDialog(org.eclipse.swt.widgets.Shell shell,
                                                   ProfileManager.Profile profile,
                                                   ProfileManager profileManager,
                                                   ProfileStore profileStore,
                                                   boolean newProfile)
Parameters:
shell -
profile -
profileManager -
profileStore -
newProfile -
Returns:
ModifyDialog

configurePreview

protected abstract void configurePreview(org.eclipse.swt.widgets.Composite composite,
                                         int numColumns,
                                         ProfileManager profileManager)
Parameters:
composite -
numColumns -
profileManager -

createContents

public org.eclipse.swt.widgets.Composite createContents(org.eclipse.swt.widgets.Composite parent)
Create the contents

Parameters:
parent - Parent composite
Returns:
Created control

createLabel

protected static org.eclipse.swt.widgets.Label createLabel(org.eclipse.swt.widgets.Composite composite,
                                                           java.lang.String text,
                                                           int numColumns)
Parameters:
composite -
text -
numColumns -
Returns:
Label

hasProjectSpecificOptions

public final boolean hasProjectSpecificOptions(org.eclipse.core.resources.IProject project)
Parameters:
project -
Returns:
value

performOk

public boolean performOk()
Returns:
boolean

performApply

public void performApply()

performDefaults

public void performDefaults()

dispose

public void dispose()

enableProjectSpecificSettings

public void enableProjectSpecificSettings(boolean useProjectSpecificSettings)
Parameters:
useProjectSpecificSettings -