Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Weinand2003-02-20 10:57:38 +0000
committerAndre Weinand2003-02-20 10:57:38 +0000
commit5217b88774b4ac130ff6fdc102319fdf448774da (patch)
treed4c2c6479a1c1ded1473188f83be8d4547ae177d /bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare
parent43c0d8216f6974c0103a0bc33f7af8836c487c1e (diff)
downloadeclipse.platform.team-5217b88774b4ac130ff6fdc102319fdf448774da.tar.gz
eclipse.platform.team-5217b88774b4ac130ff6fdc102319fdf448774da.tar.xz
eclipse.platform.team-5217b88774b4ac130ff6fdc102319fdf448774da.zip
added context help file for Compare pluginv20030220
Diffstat (limited to 'bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare')
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java10
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/ICompareContextIds.java25
2 files changed, 35 insertions, 0 deletions
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
index 32a752be9..b7c46e559 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
@@ -32,6 +32,7 @@ import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Button;
+import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.*;
@@ -42,6 +43,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.compare.internal.*;
import org.eclipse.compare.structuremergeviewer.*;
+import org.eclipse.compare.internal.ICompareContextIds;
/**
@@ -667,6 +669,14 @@ public class EditionSelectionDialog extends ResizableDialog {
return null;
}
+ /*
+ * @see org.eclipse.jface.window.Window#configureShell(Shell)
+ */
+ protected void configureShell(Shell newShell) {
+ super.configureShell(newShell);
+ WorkbenchHelp.setHelp(newShell, ICompareContextIds.EDITION_DIALOG);
+ }
+
/* (non Javadoc)
* Creates SWT control tree.
*/
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/ICompareContextIds.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/ICompareContextIds.java
new file mode 100644
index 000000000..28054749d
--- /dev/null
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/ICompareContextIds.java
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2000, 2003 IBM Corp. All rights reserved.
+ * This file is made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ */
+package org.eclipse.compare.internal;
+
+import org.eclipse.compare.CompareUI;
+
+/**
+ * Help context ids for the Compare UI.
+ * <p>
+ * This interface contains constants only; it is not intended to be implemented
+ * or extended.
+ * </p>
+ *
+ */
+public interface ICompareContextIds {
+
+ public static final String PREFIX= CompareUI.PLUGIN_ID + '.';
+
+ public static final String COMPARE_DIALOG= PREFIX + "compare_dialog_context"; //$NON-NLS-1$
+ public static final String EDITION_DIALOG= PREFIX + "edition_dialog_context"; //$NON-NLS-1$
+}

Back to the top