Bug 512571 - Fix enablement of Zoom handlers for text

Signed-off-by: Mickael Istria <mistria@redhat.com>
diff --git a/org.eclipse.ui.workbench.texteditor/plugin.xml b/org.eclipse.ui.workbench.texteditor/plugin.xml
index c5b9c21..7316269 100644
--- a/org.eclipse.ui.workbench.texteditor/plugin.xml
+++ b/org.eclipse.ui.workbench.texteditor/plugin.xml
@@ -1308,10 +1308,24 @@
       <handler
             class="org.eclipse.ui.texteditor.TextZoomInHandler"
             commandId="org.eclipse.ui.edit.text.zoomIn">
+         <enabledWhen>
+            <with variable="activePart">
+               <instanceof
+                     value="org.eclipse.ui.texteditor.ITextEditor">
+               </instanceof>
+            </with>
+         </enabledWhen>
       </handler>
       <handler
             class="org.eclipse.ui.texteditor.TextZoomOutHandler"
             commandId="org.eclipse.ui.edit.text.zoomOut">
+         <enabledWhen>
+            <with variable="activePart">
+               <instanceof
+                     value="org.eclipse.ui.texteditor.ITextEditor">
+               </instanceof>
+            </with>
+         </enabledWhen>
       </handler>
    </extension>
    <extension