Class AtlCodeFormatterProfilesTabPage
java.lang.Object
org.eclipse.m2m.atl.adt.ui.preferences.ModifyDialogTabPage
org.eclipse.m2m.atl.adt.ui.preferences.AtlCodeFormatterProfilesTabPage
- All Implemented Interfaces:
IModifyDialogTabPage
The ATL formatter profiles tab page.
-
Nested Class Summary
Nested classes/interfaces inherited from class ModifyDialogTabPage
ModifyDialogTabPage.ButtonPreference, ModifyDialogTabPage.CheckboxPreference, ModifyDialogTabPage.ComboPreference, ModifyDialogTabPage.DefaultFocusManager, ModifyDialogTabPage.NumberPreference, ModifyDialogTabPage.Preference, ModifyDialogTabPage.RadioPreference, ModifyDialogTabPage.StringPreferenceNested classes/interfaces inherited from interface IModifyDialogTabPage
IModifyDialogTabPage.IModificationListener -
Field Summary
Fields inherited from class ModifyDialogTabPage
fDefaultFocusManager, fPixelConverter, fShowInvisibleButton, fUpdater, fWorkingValues -
Constructor Summary
ConstructorsConstructorDescriptionAtlCodeFormatterProfilesTabPage(ProfileManager manager, ProfileStore store, boolean isProjectSpecific) -
Method Summary
Modifier and TypeMethodDescriptionprotected AtlPreviewdoCreateAtlPreview(org.eclipse.swt.widgets.Composite parent) To be implemented by subclasses.protected voiddoCreatePreferences(org.eclipse.swt.widgets.Composite composite, int numColumns) Create the left side of the modify dialog.protected org.eclipse.swt.widgets.CompositedoCreatePreviewPane(org.eclipse.swt.widgets.Composite composite, int numColumns) Create the right side of the modify dialog.protected voidUpdate the preview.org.eclipse.swt.widgets.Buttonorg.eclipse.swt.widgets.Listprotected voidThis method is called after all controls have been allocated, including the preview.voidupdateTab(boolean enabled) Methods inherited from class ModifyDialogTabPage
createCheckboxPref, createComboPref, createContents, createGridData, createGridLayout, createGroup, createLabel, createLabel, createNumberPref, createRadioPref, createStringPref, getShowInvisibleButton, makeVisible, notifyValuesModified, setInitialFocus, setModifyListener, setPreview, setWorkingValues, updateStatus
-
Constructor Details
-
AtlCodeFormatterProfilesTabPage
public AtlCodeFormatterProfilesTabPage(ProfileManager manager, ProfileStore store, boolean isProjectSpecific)
-
-
Method Details
-
getPreview
- Overrides:
getPreviewin classModifyDialogTabPage
-
getProfilesList
public org.eclipse.swt.widgets.List getProfilesList() -
getManager
-
getfEnableProjectSpecificSettings
public org.eclipse.swt.widgets.Button getfEnableProjectSpecificSettings() -
initializePage
protected void initializePage()Description copied from class:ModifyDialogTabPageThis method is called after all controls have been allocated, including the preview. It can be used to set the preview text and to create listeners.- Specified by:
initializePagein classModifyDialogTabPage
-
doCreatePreferences
protected void doCreatePreferences(org.eclipse.swt.widgets.Composite composite, int numColumns) Description copied from class:ModifyDialogTabPageCreate the left side of the modify dialog. This is meant to be implemented by subclasses.- Specified by:
doCreatePreferencesin classModifyDialogTabPage- Parameters:
composite- Composite to create innumColumns- Number of columns to use
-
doCreatePreviewPane
protected org.eclipse.swt.widgets.Composite doCreatePreviewPane(org.eclipse.swt.widgets.Composite composite, int numColumns) Description copied from class:ModifyDialogTabPageCreate the right side of the modify dialog. By default, the preview is displayed there. Subclasses can override this method in order to customize the right-hand side of the dialog.- Overrides:
doCreatePreviewPanein classModifyDialogTabPage- Parameters:
composite- Composite to create innumColumns- Number of columns to use- Returns:
- Created composite
-
doUpdatePreview
protected void doUpdatePreview()Description copied from class:ModifyDialogTabPageUpdate the preview. To be implemented by subclasses.- Specified by:
doUpdatePreviewin classModifyDialogTabPage
-
doCreateAtlPreview
Description copied from class:ModifyDialogTabPageTo be implemented by subclasses. This method should return an instance of JavaPreview. Currently, the choice is between CompilationUnitPreview which contains a valid compilation unit, or a SnippetPreview which formats several independent code snippets and displays them in the same window.- Specified by:
doCreateAtlPreviewin classModifyDialogTabPage- Parameters:
parent- Parent composite- Returns:
- Created preview
-
updateTab
public void updateTab(boolean enabled) - Specified by:
updateTabin classModifyDialogTabPage
-