Class EditorPreferencePage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.emf.compare.ide.ui.internal.preferences.EditorPreferencePage
- All Implemented Interfaces:
EventListener,org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.preference.IPreferencePage,org.eclipse.jface.util.IPropertyChangeListener,org.eclipse.ui.IWorkbenchPreferencePage
public class EditorPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage
Preference page for UI settings related to the comparison editor.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.ui.dialogs.PreferenceLinkAreaLink to color preference page.protected org.eclipse.swt.widgets.CompositeColor tab.static final StringPreference page ID.protected org.eclipse.swt.widgets.TabFolderTab folder for all tabs in this page.protected org.eclipse.jface.preference.IntegerFieldEditorEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_AUTO_EXPAND_LEVEL.protected org.eclipse.jface.preference.BooleanFieldEditorEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_AUTO_SELECT_FIRST_CHANGE.protected org.eclipse.jface.preference.IntegerFieldEditorEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_EXPAND_TIMEOUT.protected org.eclipse.jface.preference.BooleanFieldEditorEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGES.protected org.eclipse.swt.widgets.CompositeTree tab.Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACINGFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.jface.preference.IntegerFieldEditorcreateAutoExpandTreeLevel(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_AUTO_EXPAND_LEVELpreference.protected org.eclipse.jface.preference.BooleanFieldEditorcreateAutoSelectFirstChange(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_AUTO_SELECT_FIRST_CHANGEpreference.protected org.eclipse.ui.dialogs.PreferenceLinkAreacreateColorsAndFontsLink(org.eclipse.swt.widgets.Composite parent) Creates a link to the preference page setting the colors and fonts for the Compare Editor.protected voidCreates and adds the content of the color tab.protected org.eclipse.swt.widgets.ControlcreateContents(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.jface.preference.IntegerFieldEditorcreateExpandTreeTimeout(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_EXPAND_TIMEOUTpreference.protected voidprotected org.eclipse.jface.preference.BooleanFieldEditorcreateHighlightRelatedChanges(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGESpreference.protected org.eclipse.jface.preference.BooleanFieldEditorcreateSelectNextUnresolvedDiff(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGESpreference.protected org.eclipse.swt.widgets.CompositecreateTabSkeleton(String tabLabel) Create a skeleton of a tab.protected org.eclipse.swt.widgets.CompositecreateTabSkeleton(String tabLabel, String introText) Create a skeleton of a tab.protected voidCreates and adds the content of the tree tab.protected org.eclipse.swt.widgets.CompositeReturns the lazily created color tab.protected org.eclipse.swt.widgets.CompositeReturns the lazily created tree tab.voidinit(org.eclipse.ui.IWorkbench workbench) Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisibleMethods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButtonMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
-
Field Details
-
PAGE_ID
Preference page ID.- See Also:
-
tabFolder
protected org.eclipse.swt.widgets.TabFolder tabFolderTab folder for all tabs in this page. -
colorTab
protected org.eclipse.swt.widgets.Composite colorTabColor tab. -
treeTab
protected org.eclipse.swt.widgets.Composite treeTabTree tab. -
colorsAndFontsLink
protected org.eclipse.ui.dialogs.PreferenceLinkArea colorsAndFontsLinkLink to color preference page. -
treeAutoSelectFirstChange
protected org.eclipse.jface.preference.BooleanFieldEditor treeAutoSelectFirstChangeEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_AUTO_SELECT_FIRST_CHANGE. -
treeAutoExpandLevel
protected org.eclipse.jface.preference.IntegerFieldEditor treeAutoExpandLevelEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_AUTO_EXPAND_LEVEL. -
treeExpandTimeout
protected org.eclipse.jface.preference.IntegerFieldEditor treeExpandTimeoutEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_EXPAND_TIMEOUT. -
treeHighlightRelatedChanges
protected org.eclipse.jface.preference.BooleanFieldEditor treeHighlightRelatedChangesEditor for preferenceEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGES.
-
-
Constructor Details
-
EditorPreferencePage
public EditorPreferencePage()
-
-
Method Details
-
init
public void init(org.eclipse.ui.IWorkbench workbench) - Specified by:
initin interfaceorg.eclipse.ui.IWorkbenchPreferencePage
-
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent) - Overrides:
createContentsin classorg.eclipse.jface.preference.FieldEditorPreferencePage
-
createTabSkeleton
Create a skeleton of a tab.- Parameters:
tabLabel- tab label- Returns:
- main composite of the tab
-
createTabSkeleton
Create a skeleton of a tab.- Parameters:
tabLabel- tab labelintroText- Text use as description a tab (may be null)- Returns:
- main composite of the tab
-
getColorTab
protected org.eclipse.swt.widgets.Composite getColorTab()Returns the lazily created color tab.- Returns:
- color tab
-
getTreeTab
protected org.eclipse.swt.widgets.Composite getTreeTab()Returns the lazily created tree tab.- Returns:
- color tab
-
createFieldEditors
protected void createFieldEditors()- Specified by:
createFieldEditorsin classorg.eclipse.jface.preference.FieldEditorPreferencePage
-
createColorTabContent
protected void createColorTabContent()Creates and adds the content of the color tab. -
createTreeTabContent
protected void createTreeTabContent()Creates and adds the content of the tree tab. -
createColorsAndFontsLink
protected org.eclipse.ui.dialogs.PreferenceLinkArea createColorsAndFontsLink(org.eclipse.swt.widgets.Composite parent) Creates a link to the preference page setting the colors and fonts for the Compare Editor.- Parameters:
parent- link parent- Returns:
- link
-
createAutoExpandTreeLevel
protected org.eclipse.jface.preference.IntegerFieldEditor createAutoExpandTreeLevel(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_AUTO_EXPAND_LEVELpreference.- Parameters:
parent- editor parent- Returns:
- editor
-
createExpandTreeTimeout
protected org.eclipse.jface.preference.IntegerFieldEditor createExpandTreeTimeout(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_EXPAND_TIMEOUTpreference.- Parameters:
parent- editor parent- Returns:
- editor
-
createAutoSelectFirstChange
protected org.eclipse.jface.preference.BooleanFieldEditor createAutoSelectFirstChange(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_AUTO_SELECT_FIRST_CHANGEpreference.- Parameters:
parent- editor parent- Returns:
- editor
-
createHighlightRelatedChanges
protected org.eclipse.jface.preference.BooleanFieldEditor createHighlightRelatedChanges(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGESpreference.- Parameters:
parent- editor parent- Returns:
- editor
-
createSelectNextUnresolvedDiff
protected org.eclipse.jface.preference.BooleanFieldEditor createSelectNextUnresolvedDiff(org.eclipse.swt.widgets.Composite parent) Creates an editor for theEMFCompareUIPreferences.EDITOR_TREE_HIGHLIGHT_RELATED_CHANGESpreference.- Parameters:
parent- editor parent- Returns:
- editor
-