Class ComparePreferencePage
- All Implemented Interfaces:
IDialogPage,IMessageProvider,IPreferencePage,IWorkbenchPreferencePage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the given data to this page.protected ControlcreateContents(Composite parent) Creates and returns the SWT control for the customized body of this preference page under the given parent composite.voiddispose()TheDialogPageimplementation of thisIDialogPagemethod disposes of the page image if it has one.static booleanvoidinit(IWorkbench workbench) Initializes this preference page for the given workbench.static voidinitDefaults(IPreferenceStore store) protected voidPerforms special processing when this page's Defaults button has been pressed.booleanNotifies that the OK button of this page's container has been pressed.static voidsetSaveAllEditors(boolean value) Methods inherited from class org.eclipse.jface.preference.PreferencePage
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, setMessage, setVisibleMethods 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, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisibleMethods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
-
Field Details
-
OPEN_STRUCTURE_COMPARE
- See Also:
-
USE_OUTLINE_VIEW
- See Also:
-
SYNCHRONIZE_SCROLLING
- See Also:
-
SHOW_PSEUDO_CONFLICTS
- See Also:
-
INITIALLY_SHOW_ANCESTOR_PANE
- See Also:
-
PREF_SAVE_ALL_EDITORS
- See Also:
-
IGNORE_WHITESPACE
- See Also:
-
USE_SINGLE_LINE
- See Also:
-
HIGHLIGHT_TOKEN_CHANGES
- See Also:
-
CAPPING_DISABLED
- See Also:
-
PATH_FILTER
- See Also:
-
ADDED_LINES_REGEX
- See Also:
-
REMOVED_LINES_REGEX
- See Also:
-
SWAPPED
- See Also:
-
fKeys
-
-
Constructor Details
-
ComparePreferencePage
public ComparePreferencePage()
-
-
Method Details
-
initDefaults
-
init
Description copied from interface:IWorkbenchPreferencePageInitializes this preference page for the given workbench.This method is called automatically as the preference page is being created and initialized. Clients must not call this method.
- Specified by:
initin interfaceIWorkbenchPreferencePage- Parameters:
workbench- the workbench
-
performOk
public boolean performOk()Description copied from interface:IPreferencePageNotifies that the OK button of this page's container has been pressed.- Specified by:
performOkin interfaceIPreferencePage- Overrides:
performOkin classPreferencePage- Returns:
falseto abort the container's OK processing andtrueto allow the OK to happen
-
performDefaults
protected void performDefaults()Description copied from class:PreferencePagePerforms special processing when this page's Defaults button has been pressed.This is a framework hook method for subclasses to do special things when the Defaults button has been pressed. Subclasses may override, but should call
super.performDefaults.- Overrides:
performDefaultsin classPreferencePage
-
dispose
public void dispose()Description copied from class:DialogPageTheDialogPageimplementation of thisIDialogPagemethod disposes of the page image if it has one. Subclasses may extend.- Specified by:
disposein interfaceIDialogPage- Overrides:
disposein classDialogPage
-
getSaveAllEditors
public static boolean getSaveAllEditors() -
setSaveAllEditors
public static void setSaveAllEditors(boolean value) -
createContents
Description copied from class:PreferencePageCreates and returns the SWT control for the customized body of this preference page under the given parent composite.This framework method must be implemented by concrete subclasses. Any subclass returning a
Compositeobject whoseLayouthas default margins (for example, aGridLayout) is expected to set the margins of thisLayoutto 0 pixels.- Specified by:
createContentsin classPreferencePage- Parameters:
parent- the parent composite- Returns:
- the new control
-
applyData
Description copied from class:PreferencePageApplies the given data to this page.It is up to the subclasses to specify the contract and the data format. The contract is not guaranteed if the subclass is in an internal package.
Note: The implementation must silently ignore all unknown data.
The default implementation does nothing.
- Overrides:
applyDatain classPreferencePage- Parameters:
data- the data as specified by the subclass
-