474682: Declare NCX and OPF file types and open these in XML editor

* Associate the two file extensions with the core XML type.
* Also fix feature version number, should have been 3.0.0.

Change-Id: Ic401874718db617ae1e72be50e44242ea8107f3e
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=474682
diff --git a/org.eclipse.mylyn.docs.epub-feature/feature.xml b/org.eclipse.mylyn.docs.epub-feature/feature.xml
index 8fb2f86..1950a02 100644
--- a/org.eclipse.mylyn.docs.epub-feature/feature.xml
+++ b/org.eclipse.mylyn.docs.epub-feature/feature.xml
@@ -2,7 +2,7 @@
 <feature
       id="org.eclipse.mylyn.docs.epub"
       label="%featureName"
-      version="2.1.0.qualifier"
+      version="3.0.0.qualifier"
       provider-name="%providerName"
       plugin="org.eclipse.mylyn.docs.epub.core"
       license-feature="org.eclipse.license"
diff --git a/org.eclipse.mylyn.docs.epub-feature/pom.xml b/org.eclipse.mylyn.docs.epub-feature/pom.xml
index 423b630..7830d6c 100644
--- a/org.eclipse.mylyn.docs.epub-feature/pom.xml
+++ b/org.eclipse.mylyn.docs.epub-feature/pom.xml
@@ -8,7 +8,7 @@
     <version>2.6.0-SNAPSHOT</version>
   </parent>
   <artifactId>org.eclipse.mylyn.docs.epub</artifactId>
-  <version>2.1.0-SNAPSHOT</version>
+  <version>3.0.0-SNAPSHOT</version>
   <packaging>eclipse-feature</packaging>
   <groupId>org.eclipse.mylyn.docs.epub</groupId>
 </project>
diff --git a/org.eclipse.mylyn.docs.epub.ui/plugin.xml b/org.eclipse.mylyn.docs.epub.ui/plugin.xml
index b68b3d1..8a65edb 100644
--- a/org.eclipse.mylyn.docs.epub.ui/plugin.xml
+++ b/org.eclipse.mylyn.docs.epub.ui/plugin.xml
@@ -21,5 +21,22 @@
          </command>
       </menuContribution>
    </extension>
+   <extension
+         point="org.eclipse.core.contenttype.contentTypes">
+      <content-type
+            base-type="org.eclipse.core.runtime.xml"
+            file-extensions="opf"
+            id="org.eclipse.mylyn.docs.epub.ui.contentType.OPF"
+            name="Open Publication Format manifest (OPF)"
+            priority="normal">
+      </content-type>
+      <content-type
+            base-type="org.eclipse.core.runtime.xml"
+            file-extensions="ncx"
+            id="org.eclipse.mylyn.docs.epub.ui.contentType.NCX"
+            name="Navigation Control file for XML (NCX)"
+            priority="normal">
+      </content-type>
+   </extension>
 
 </plugin>