### Eclipse Workspace Patch 1.0
#P org.eclipse.jst.jsf.facesconfig.ui
Index: plugin.properties
===================================================================
RCS file: /cvsroot/webtools/org.eclipse.jsf/components/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/plugin.properties,v
retrieving revision 1.6
diff -u -r1.6 plugin.properties
--- plugin.properties 11 Jun 2007 19:27:23 -0000 1.6
+++ plugin.properties 29 May 2008 23:12:22 -0000
@@ -55,3 +55,7 @@
#preference page
preferencepage.jsffacesconfigui.name=FacesConfig Editor
+
+# Key Binding Context
+editor.binding.context.name=In Faces Config Editor
+editor.binding.context.description=Key binding context when using the Faces Config Editor
Index: plugin.xml
===================================================================
RCS file: /cvsroot/webtools/org.eclipse.jsf/components/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/plugin.xml,v
retrieving revision 1.17
diff -u -r1.17 plugin.xml
--- plugin.xml 23 Apr 2008 19:25:09 -0000 1.17
+++ plugin.xml 29 May 2008 23:12:22 -0000
@@ -106,4 +106,29 @@
label="%propertyTab.general"/>
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: src/org/eclipse/jst/jsf/facesconfig/ui/FacesConfigEditor.java
===================================================================
RCS file: /cvsroot/webtools/org.eclipse.jsf/components/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/FacesConfigEditor.java,v
retrieving revision 1.28
diff -u -r1.28 FacesConfigEditor.java
--- src/org/eclipse/jst/jsf/facesconfig/ui/FacesConfigEditor.java 21 Apr 2008 19:47:34 -0000 1.28
+++ src/org/eclipse/jst/jsf/facesconfig/ui/FacesConfigEditor.java 29 May 2008 23:12:22 -0000
@@ -90,6 +90,7 @@
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
+import org.eclipse.ui.contexts.IContextService;
import org.eclipse.ui.dialogs.SaveAsDialog;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
@@ -349,6 +350,14 @@
return;
}
+
+ // Activate plugin context
+ IContextService contextService = (IContextService) getSite()
+ .getService(IContextService.class);
+ contextService
+ .activateContext("org.eclipse.jst.jsf.facesconfig.editorContext");
+
+
createActions();
ResourcesPlugin.getWorkspace().addResourceChangeListener(