Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2007-01-08 19:59:41 +0000
committerMichael Valenta2007-01-08 19:59:41 +0000
commit6dd519754e6b8d8b5d5f3b9568aa59236ab14a84 (patch)
tree2674d6c0bf903c36c967431453c09b624f949641
parent462b2724a57a4bbb91211d526d580cddbd962d69 (diff)
downloadeclipse.platform.team-6dd519754e6b8d8b5d5f3b9568aa59236ab14a84.tar.gz
eclipse.platform.team-6dd519754e6b8d8b5d5f3b9568aa59236ab14a84.tar.xz
eclipse.platform.team-6dd519754e6b8d8b5d5f3b9568aa59236ab14a84.zip
Bug 52359 [Edit] Created When In Compare Editor key binding contextI20070108
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java1
-rw-r--r--bundles/org.eclipse.compare/plugin.properties3
-rw-r--r--bundles/org.eclipse.compare/plugin.xml11
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java1
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties3
-rw-r--r--bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.xml11
6 files changed, 30 insertions, 0 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
index 761fb422c..1d5cf8695 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
@@ -332,6 +332,7 @@ public class CompareEditor extends EditorPart implements IReusableEditor, ISavea
parent.setData(this);
fPageBook = new PageBook(parent, SWT.NONE);
createCompareControl();
+ getSite().getKeyBindingService().setScopes(new String[] { "org.eclipse.compare.compareEditorScope" }); //$NON-NLS-1$
}
private void createCompareControl() {
diff --git a/bundles/org.eclipse.compare/plugin.properties b/bundles/org.eclipse.compare/plugin.properties
index a539e13c8..829963c49 100644
--- a/bundles/org.eclipse.compare/plugin.properties
+++ b/bundles/org.eclipse.compare/plugin.properties
@@ -212,3 +212,6 @@ rejectedPatchMarker.name= Rejected Patch
ValidateEdit.error.unable_to_perform= Operation cannot be performed.
ValidateEdit.error.fileModified= File ''{0}'' has been modified since the beginning of the operation.
ValidateEdit.error.stillReadonly= File ''{0}'' is read-only.
+
+context.description = Comparing in an Editor
+context.name = Comparing in an Editor \ No newline at end of file
diff --git a/bundles/org.eclipse.compare/plugin.xml b/bundles/org.eclipse.compare/plugin.xml
index b81152379..613ad9cd9 100644
--- a/bundles/org.eclipse.compare/plugin.xml
+++ b/bundles/org.eclipse.compare/plugin.xml
@@ -104,6 +104,17 @@
</extension>
<!-- commands and their bindings -->
+
+ <extension
+ point="org.eclipse.ui.contexts">
+ <context
+ name="%context.name"
+ description="%context.description"
+ parentId="org.eclipse.ui.contexts.window"
+ id="org.eclipse.compare.compareEditorScope">
+ </context>
+ </extension>
+
<extension
point="org.eclipse.ui.commands">
<category
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
index 761fb422c..1d5cf8695 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/compare/org/eclipse/compare/internal/CompareEditor.java
@@ -332,6 +332,7 @@ public class CompareEditor extends EditorPart implements IReusableEditor, ISavea
parent.setData(this);
fPageBook = new PageBook(parent, SWT.NONE);
createCompareControl();
+ getSite().getKeyBindingService().setScopes(new String[] { "org.eclipse.compare.compareEditorScope" }); //$NON-NLS-1$
}
private void createCompareControl() {
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
index a539e13c8..829963c49 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.properties
@@ -212,3 +212,6 @@ rejectedPatchMarker.name= Rejected Patch
ValidateEdit.error.unable_to_perform= Operation cannot be performed.
ValidateEdit.error.fileModified= File ''{0}'' has been modified since the beginning of the operation.
ValidateEdit.error.stillReadonly= File ''{0}'' is read-only.
+
+context.description = Comparing in an Editor
+context.name = Comparing in an Editor \ No newline at end of file
diff --git a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.xml b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.xml
index b81152379..613ad9cd9 100644
--- a/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.xml
+++ b/bundles/org.eclipse.compare/plugins/org.eclipse.compare/plugin.xml
@@ -104,6 +104,17 @@
</extension>
<!-- commands and their bindings -->
+
+ <extension
+ point="org.eclipse.ui.contexts">
+ <context
+ name="%context.name"
+ description="%context.description"
+ parentId="org.eclipse.ui.contexts.window"
+ id="org.eclipse.compare.compareEditorScope">
+ </context>
+ </extension>
+
<extension
point="org.eclipse.ui.commands">
<category

Back to the top