added context help file for Compare plugin
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
index 32a752b..b7c46e5 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/EditionSelectionDialog.java
@@ -32,6 +32,7 @@
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.compare.internal.*;
import org.eclipse.compare.structuremergeviewer.*;
+import org.eclipse.compare.internal.ICompareContextIds;
/**
@@ -667,6 +669,14 @@
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/compare/org/eclipse/compare/internal/ICompareContextIds.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/ICompareContextIds.java
new file mode 100644
index 0000000..2805474
--- /dev/null
+++ b/bundles/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$
+}
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 32a752b..b7c46e5 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.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.compare.internal.*;
import org.eclipse.compare.structuremergeviewer.*;
+import org.eclipse.compare.internal.ICompareContextIds;
/**
@@ -667,6 +669,14 @@
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 0000000..2805474
--- /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$
+}