Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2007 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 13-22
Link Here
|
13 |
import org.eclipse.compare.CompareUI; |
13 |
import org.eclipse.compare.CompareUI; |
14 |
import org.eclipse.jface.preference.BooleanFieldEditor; |
14 |
import org.eclipse.jface.preference.BooleanFieldEditor; |
15 |
import org.eclipse.jface.preference.IPreferencePageContainer; |
15 |
import org.eclipse.jface.preference.IPreferencePageContainer; |
16 |
import org.eclipse.swt.widgets.Button; |
|
|
17 |
import org.eclipse.swt.widgets.Composite; |
18 |
import org.eclipse.team.internal.ui.SWTUtils; |
16 |
import org.eclipse.team.internal.ui.SWTUtils; |
19 |
import org.eclipse.ui.PlatformUI; |
|
|
20 |
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; |
17 |
import org.eclipse.ui.preferences.IWorkbenchPreferenceContainer; |
21 |
|
18 |
|
22 |
/** |
19 |
/** |
Lines 46-58
Link Here
|
46 |
ICVSUIConstants.PREF_CONSIDER_CONTENTS, |
43 |
ICVSUIConstants.PREF_CONSIDER_CONTENTS, |
47 |
CVSUIMessages.ComparePreferencePage_4, |
44 |
CVSUIMessages.ComparePreferencePage_4, |
48 |
BooleanFieldEditor.DEFAULT, |
45 |
BooleanFieldEditor.DEFAULT, |
49 |
getFieldEditorParent()) { |
46 |
getFieldEditorParent())); |
50 |
protected Button getChangeControl(Composite parent) { |
|
|
51 |
Button button = super.getChangeControl(parent); |
52 |
PlatformUI.getWorkbench().getHelpSystem().setHelp(button, IHelpContextIds.PREF_CONSIDER_CONTENT); |
53 |
return button; |
54 |
} |
55 |
}); |
56 |
addField(new BooleanFieldEditor( |
47 |
addField(new BooleanFieldEditor( |
57 |
ICVSUIConstants.PREF_SHOW_COMPARE_REVISION_IN_DIALOG, |
48 |
ICVSUIConstants.PREF_SHOW_COMPARE_REVISION_IN_DIALOG, |
58 |
CVSUIMessages.ComparePreferencePage_3, |
49 |
CVSUIMessages.ComparePreferencePage_3, |