org.symbian.tools.wrttools/plugin.xml
author TasneemS@US-TASNEEMS
Thu, 07 Jan 2010 13:39:47 -0800
changeset 3 d3477de62514
parent 0 ddc9cde0ba07
child 8 683bdcbc3ebd
permissions -rw-r--r--
Added new wizards for importing WRT projects. Added CSS Validator.

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension-point id="org.eclipse.core.resources" name="Incremental Project Builders" schema="schema/org.eclipse.core.resources.exsd"/>
   <extension-point id="org.eclipse.ui.javaScriptProjectNatureImage" name="JavaScript Nature Image" schema="schema/org.eclipse.ui.javaScriptProjectNatureImage.exsd"/>

   <extension
         id="PropertiesFileAuditor"
         name="Properties File Auditor Project Builder"
         point="org.eclipse.core.resources.builders">
      <builder
            hasNature="true">
         <run
               class="org.symbian.tools.wrttools.builder.PropertiesFileAuditor">
         </run>
      </builder>
   </extension>
   <extension
         id="PropertiesAuditorNature"
         name="Properties Auditor Nature"
         point="org.eclipse.core.resources.natures">
      <runtime>
         <run
               class="org.symbian.tools.wrttools.builder.PropertiesAuditorNature">
         </run>
      </runtime>
      <requires-nature id="org.eclipse.wst.jsdt.core.jsNature"/>
      <requires-nature id="org.eclipse.pde.PluginNature"/>
      <builder
            id="org.symbian.tools.wrttools.builder.PropertiesFileAuditor">
      </builder>
   </extension>
   <extension-point id="projectTemplates" name="WRT application project templates" schema="schema/projectTemplates.exsd"/>
    <extension
         id="org.symbian.tools.wrttools.core.cssvalidator"
         name="CSS Validator"
         point="org.eclipse.wst.validation.validatorV2">
      <validator
            build="true"
            class="org.symbian.tools.wrttools.core.internal.validation.CssBuildValidator"
            manual="true"
            markerId="org.symbian.tools.wrttools.core.cssValidationMarker"
            version="0.0.1">
         <include>
            <rules>
               <contentType
                     exactMatch="false"
                     id="org.eclipse.wst.css.core.csssource">
               </contentType>
            </rules>
         </include>
      </validator>
   </extension>
   <extension
         point="org.eclipse.ui.newWizards">
      <category
            id="org.symbian.tools.wrttools.core.category"
            name="Symbian WRT">
      </category>
      <wizard
            category="org.symbian.tools.wrttools.core.category"
            class="org.symbian.tools.wrttools.wizards.WrtWidgetWizard"
            finalPerspective="org.eclipse.wst.jsdt.ui.JavaPerspective"
            hasPages="true"
            icon="icons/main16.gif"
            id="org.symbian.tools.wrttools.core.wrtwidgetwizard"
            name="WRT Widget"
            project="true">
         <description>
            Creates a new Symbian WRT widget project using one of the provided templates
         </description>
      </wizard>
   </extension>
   <extension
         point="org.symbian.tools.wrttools.projectTemplates">
      <projectTemplate
            archive="projecttemplates/basic.zip"
            default-css-name="basic"
            default-html-name="index"
            default-js-name="basic"
            icon="icons/main16.gif"
            id-pattern="com.{0}.basic.widget"
            name="Basic Widget Project">
         <description>
            This wizard generates an empty widget project with a minimal Info.plist, html,css and js.
         </description>
      </projectTemplate>
   </extension>
   <extension
         point="org.eclipse.ui.importWizards">
      <category
            id="org.symbian.tools.wrttools.import"
            name="WRT Tools">
      </category>
      <wizard
            category="org.symbian.tools.wrttools.import"
            class="org.symbian.tools.wrttools.wizards.AptanaProjectsImportWizard"
            icon="icons/main16.gif"
            id="org.symbian.tools.wrttools.import.aptanaImport"
            name="Aptana IDE WRT Project">
      </wizard>
   </extension>

   
   <extension
         id="org.eclipse.wst.xml.ui.ExampleProjectCreationWizardExtension"
         name="Example Project Creation Wizard"
         point="org.eclipse.wst.common.ui.exampleProjectCreationWizard"> 
      <wizard
           id="org.eclipse.wst.xml.ui.ExampleProjectCreationWizard"
           banner="icons/newSampleProject_wizbanner.gif">
         <projectsetup
               pagetitle="%XMLExampleProjectCreationWizard.pagetitle"
               name="%XMLExampleProjectCreationWizard.projectname"
               label="%XMLExampleProjectCreationWizard.label"
               pagedescription="%XMLExampleProjectCreationWizard.pagedescription"
               open="readme.html">
            <import
                  dest=""
                  src="org.symbian.tools.wrttools.wizards.examples.FlickrApplication.zip">
            </import>
        </projectsetup>
     </wizard>
   </extension>
   
   <extension
         point="org.eclipse.ui.popupMenus">
      <objectContribution
            adaptable="true"
            objectClass="org.eclipse.core.resources.IProject"
            nameFilter="*"
            id="org.symbian.tools.wrt.contribution1">
         <action
               label="Add/Remove Sample Nature"
               class="org.symbian.tools.wrt.builder.ToggleNatureAction"
               menubarPath="additions"
               enablesFor="+"
               id="org.symbian.tools.wrt.addRemoveNatureAction">
         </action>
      </objectContribution>
   </extension>
   <extension
         id="org.symbian.tools.wrt.xmlProblem"
         name="XML Problem"
         point="org.eclipse.core.resources.markers">
      <super
            type="org.eclipse.core.resources.problemmarker">
      </super>
      <persistent
            value="true">
      </persistent>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            class="org.symbian.tools.wrt.builder.Contribution1"
            locationURI="menu:org.eclipse.ui.main.menu?after=additions&quot;">
      </menuContribution>
   </extension>
   <extension
         id="org.symbian.tools.wrt.jsProblem"
         name="JSProblem"
         point="org.eclipse.core.resources.markers">
      <super
            type="org.eclipse.core.resources.problemmarker">
      </super>
      <persistent
            value="true">
      </persistent>
   </extension>

</plugin>