Class ComparePreferencePage
- All Implemented Interfaces:
IDialogPage
,IMessageProvider
,IPreferencePage
,IWorkbenchPreferencePage
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies the given data to this page.protected Control
createContents
(Composite parent) Creates and returns the SWT control for the customized body of this preference page under the given parent composite.void
dispose()
TheDialogPage
implementation of thisIDialogPage
method disposes of the page image if it has one.static boolean
void
init
(IWorkbench workbench) Initializes this preference page for the given workbench.static void
initDefaults
(IPreferenceStore store) protected void
Performs special processing when this page's Defaults button has been pressed.boolean
Notifies that the OK button of this page's container has been pressed.static void
setSaveAllEditors
(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, updateApplyButton
Methods 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, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
Methods 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:IWorkbenchPreferencePage
Initializes 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:
init
in interfaceIWorkbenchPreferencePage
- Parameters:
workbench
- the workbench
-
performOk
public boolean performOk()Description copied from interface:IPreferencePage
Notifies that the OK button of this page's container has been pressed.- Specified by:
performOk
in interfaceIPreferencePage
- Overrides:
performOk
in classPreferencePage
- Returns:
false
to abort the container's OK processing andtrue
to allow the OK to happen
-
performDefaults
protected void performDefaults()Description copied from class:PreferencePage
Performs 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:
performDefaults
in classPreferencePage
-
dispose
public void dispose()Description copied from class:DialogPage
TheDialogPage
implementation of thisIDialogPage
method disposes of the page image if it has one. Subclasses may extend.- Specified by:
dispose
in interfaceIDialogPage
- Overrides:
dispose
in classDialogPage
-
getSaveAllEditors
public static boolean getSaveAllEditors() -
setSaveAllEditors
public static void setSaveAllEditors(boolean value) -
createContents
Description copied from class:PreferencePage
Creates 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
Composite
object whoseLayout
has default margins (for example, aGridLayout
) is expected to set the margins of thisLayout
to 0 pixels.- Specified by:
createContents
in classPreferencePage
- Parameters:
parent
- the parent composite- Returns:
- the new control
-
applyData
Description copied from class:PreferencePage
Applies 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:
applyData
in classPreferencePage
- Parameters:
data
- the data as specified by the subclass
-