Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2014-03-20 17:20:02 -0400
committerFlorian Thienel2014-03-23 05:59:06 -0400
commit0c935f16ff0519297184871087720a5333b6f344 (patch)
treefeef519ea37e7497f6173d8312e66281369d3eda /org.eclipse.vex.docbook
parentf863cf9c7f1167e4e687b43308aef5732f3a9997 (diff)
downloadorg.eclipse.mylyn.docs.vex-0c935f16ff0519297184871087720a5333b6f344.tar.gz
org.eclipse.mylyn.docs.vex-0c935f16ff0519297184871087720a5333b6f344.tar.xz
org.eclipse.mylyn.docs.vex-0c935f16ff0519297184871087720a5333b6f344.zip
[423130] use an IContentDescriber to associate Vex with files
Vex should be associated only with files containing documents of registered document types. Therefor the VexContentDescriber reads the DTD and the root element to decide if a file contains such a document. Furthermore it is not essentially required for bundles that register a document type to also register a new content type. This is only necessary if a custom file extension (!= xml) should be used. Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=423130 Change-Id: I695e512c03f49f87f6221d3c3c6529ea04935477 Signed-off-by: Florian Thienel <florian@thienel.org>
Diffstat (limited to 'org.eclipse.vex.docbook')
-rw-r--r--org.eclipse.vex.docbook/plugin.properties3
-rw-r--r--org.eclipse.vex.docbook/plugin.xml9
2 files changed, 1 insertions, 11 deletions
diff --git a/org.eclipse.vex.docbook/plugin.properties b/org.eclipse.vex.docbook/plugin.properties
index 6750db3c..f42b6031 100644
--- a/org.eclipse.vex.docbook/plugin.properties
+++ b/org.eclipse.vex.docbook/plugin.properties
@@ -15,5 +15,4 @@ doctype.docbook4_5=DocBook v4.5
doctype.docbook5_0_DTD=DocBook v5.0 (DTD)
doctype.docbook5_0_XSD2=DocBook v5.0 (XML Schema)
-style.docbook-plain=DocBook Plain
-contentType.name=DocBook XML Document
+style.docbook-plain=DocBook Plain
diff --git a/org.eclipse.vex.docbook/plugin.xml b/org.eclipse.vex.docbook/plugin.xml
index 65a9911e..4d7fecb7 100644
--- a/org.eclipse.vex.docbook/plugin.xml
+++ b/org.eclipse.vex.docbook/plugin.xml
@@ -2,15 +2,6 @@
<?eclipse version="3.2"?>
<plugin>
- <extension point="org.eclipse.core.contenttype.contentTypes">
- <content-type
- base-type="org.eclipse.vex.ui.XmlDocument"
- file-extensions="xml,docbook"
- id="org.eclipse.vex.ui.docbook"
- name="%contentType.name"
- priority="low">
- </content-type>
- </extension>
<extension
point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution

Back to the top