changeset 7:10b66ed53154

Create new content type for thermostat-plugin.xml
author Omair Majid <omajid@redhat.com>
date Mon, 02 Dec 2013 15:06:24 -0500
parents dd96341f94c3
children 0efa1858bbd0
files plugin.xml
diffstat 1 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugin.xml	Mon Dec 02 12:52:22 2013 -0500
+++ b/plugin.xml	Mon Dec 02 15:06:24 2013 -0500
@@ -8,7 +8,7 @@
             class="thermostatplugin.editors.MultiPageEditor"
             contributorClass="thermostatplugin.editors.MultiPageEditorContributor"
             extensions="xml"
-            icon="icons/sample.gif"
+            icon="icons/thermostat.png"
             id="thermostatplugin.editors.MultiPageEditor"
             name="Thermostat Plugin Editor">
       </editor>
@@ -61,5 +61,22 @@
             project="false">
       </wizard>
    </extension>
+   <extension
+         id="com.redhat.thermostat.eclipse.plugin.contenttypes"
+         point="org.eclipse.core.contenttype.contentTypes">
+      <content-type
+            file-names="thermostat-plugin.xml"
+            id="com.redhat.thermostat.plugin.eclipse.xml"
+            name="Thermostat Plugin XML"
+            priority="normal">
+         <describer
+               class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber2">
+            <parameter
+                  name="element"
+                  value="plugin">
+            </parameter>
+         </describer>
+      </content-type>
+   </extension>
 
 </plugin>