org.symbian.tools.wrttools/plugin.xml
changeset 77 6f45a9788e49
parent 74 1f72e81a1aa7
child 84 b24e6a27768d
equal deleted inserted replaced
76:57613a26af19 77:6f45a9788e49
    57 		         </rules>
    57 		         </rules>
    58             </include>
    58             </include>
    59 		</validator>
    59 		</validator>
    60     </extension> 
    60     </extension> 
    61     
    61     
    62 <!-- Validation markers -->
    62 <!-- Validator Marker -->
    63    
    63    
    64         <extension
    64         <extension
    65            id="org.symbian.tools.wrttools.core.validator.marker"
    65            id="org.symbian.tools.wrttools.core.validator.marker"
    66            name="Validator Marker"
    66            name="Validator Marker"
    67            point="org.eclipse.core.resources.markers">
    67            point="org.eclipse.core.resources.markers">
    68                  <super type="org.eclipse.core.resources.problemmarker"/>
    68                  <super type="org.eclipse.core.resources.problemmarker"/>
    69                  <persistent value ="true"/>
    69                  <persistent value ="true"/>
    70         </extension>
    70         </extension>
    71 
    71 
       
    72 <!-- WRT Tool Integration (Package, Validate, Include, Exclude Settings)-->
    72         <extension	
    73         <extension	
    73           point="org.eclipse.ui.popupMenus">
    74           point="org.eclipse.ui.popupMenus">
    74 	      <objectContribution
    75 		   <objectContribution
       
    76            objectClass="org.eclipse.core.resources.IResource" 
       
    77 		   adaptable="true"         
       
    78            id="org.symbian.tools.wrttools.widget.wrttool">
       
    79 	 	   <filter
       
    80 	     	name="projectNature"
       
    81 	     	value="org.symbian.tools.wrttools.WidgetProjectNature"/>
       
    82 	       <action
       
    83 	             class="org.symbian.tools.wrttools.core.packager.WrtPackageActionDelegate"
       
    84 	             enablesFor="+"
       
    85 	             icon="icons/package_widget.gif"
       
    86 	             id="org.symbian.tools.wrttools.widget.package.WrtPackageActionDelegate"
       
    87 	             label="Package Widget"
       
    88 	             menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker">
       
    89 	       </action>
       
    90           </objectContribution> 
       
    91           	      <objectContribution
    75 			 adaptable="true"
    92 			 adaptable="true"
    76 			 id="com.nokia.wrt.core.validator"
    93 			 id="org.symbian.tools.wrttools.core.validator"
    77              objectClass="org.eclipse.core.resources.IResource">
    94              objectClass="org.eclipse.core.resources.IResource">
    78            <filter
    95            <filter
    79          	name="projectNature"
    96          	name="projectNature"
    80          	value="org.symbian.tools.wrttools.WidgetProjectNature"/>
    97          	value="org.symbian.tools.wrttools.WidgetProjectNature"/>
    81            <action
    98            <action
    82                  class="com.nokia.wrt.core.validator.ValidateAction"
    99                  class="org.symbian.tools.wrttools.core.validator.ValidateAction"
    83                  enablesFor="+"
   100                  enablesFor="+"
    84                  icon="icons/validate_widget.gif"
   101                  icon="icons/validate_widget.gif"
    85                  id="com.nokia.wrt.core.validator.ValidateAction"
   102                  id="org.symbian.tools.wrttools.core.validator.ValidateAction"
    86                  label="Validate Widget"
   103                  label="Validate Widget"
    87                  menubarPath="com.nokia.wrt.contextMenuGroupMarker">
   104                  menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker">
    88 			</action>
   105 			</action>
    89 		   </objectContribution> 
   106 		   </objectContribution>
    90         </extension>  
   107           		<objectContribution
       
   108             objectClass="org.eclipse.core.resources.IResource"            
       
   109             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
       
   110          <visibility>
       
   111             <not>
       
   112                <or>
       
   113                <objectState name="persistentProperty" value="org.symbian.tools.wrttools.packager.exclude"/>
       
   114 			   <objectState name="extension" value="plist"/>
       
   115 			   <objectClass name="org.eclipse.core.resources.IProject"/>
       
   116 			   </or>
       
   117             </not>
       
   118          </visibility>
       
   119      	<filter
       
   120          	name="projectNature"
       
   121          	value="org.symbian.tools.wrttools.WidgetProjectNature"/>           
       
   122        <action
       
   123              class="org.symbian.tools.wrttools.core.packager.ExcludeFileAction"
       
   124              icon="icons/exclude_archive.gif"
       
   125              id="org.symbian.tools.wrttools.widget.wrttool.packageoptions.ExcludeFileAction"
       
   126              label="Exclude From Widget Archive"
       
   127              menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker"> 
       
   128       </action>  
       
   129     </objectContribution>    
       
   130       <objectContribution
       
   131             objectClass="org.eclipse.core.resources.IResource"            
       
   132             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
       
   133       <visibility>
       
   134         <and>
       
   135 	        <not>
       
   136 	        	<objectState name="extension" value="wgz"/>
       
   137 	        </not>
       
   138 	        <and>
       
   139 	        	<objectState name="persistentProperty" value="org.symbian.tools.wrttools.packager.exclude"/>
       
   140 	        	<objectState name="projectNature" value="org.symbian.tools.wrttools.WidgetProjectNature"/>
       
   141 	        </and>
       
   142         </and>
       
   143        </visibility>
       
   144        <action
       
   145              class="org.symbian.tools.wrttools.core.packager.IncludeFileAction"
       
   146              icon="icons/include_archive.gif"
       
   147              id="org.symbian.tools.wrttools.widget.wrttool.packageoptions.IncludeFileAction"
       
   148              label="Include in Widget Archive"
       
   149              menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker"> 
       
   150       </action>  
       
   151     </objectContribution>
       
   152    </extension>  
    91 
   153 
    92 <!-- WRT Project Templates - CSS Validator -->
   154 <!-- WRT Project Templates - CSS Validator -->
    93 	<extension-point id="projectTemplates" name="WRT application project templates" schema="schema/projectTemplates.exsd"/>
   155 	<extension-point id="projectTemplates" name="WRT application project templates" schema="schema/projectTemplates.exsd"/>
    94 	<extension id="org.symbian.tools.wrttools.core.cssvalidator"
   156 	<extension id="org.symbian.tools.wrttools.core.cssvalidator"
    95 		name="CSS Validator" point="org.eclipse.wst.validation.validatorV2">
   157 		name="CSS Validator" point="org.eclipse.wst.validation.validatorV2">
   143         id-pattern="com.{0}.basic.widget">
   205         id-pattern="com.{0}.basic.widget">
   144 			<description>
   206 			<description>
   145 				This wizard generates an empty widget project with a minimal Info.plist, html,css and js.
   207 				This wizard generates an empty widget project with a minimal Info.plist, html,css and js.
   146          </description>
   208          </description>
   147 		</projectTemplate>
   209 		</projectTemplate>
       
   210       <projectTemplate
       
   211             archive="projecttemplates/wrtkit.zip"
       
   212             default-css-name="basic"
       
   213             default-html-name="index"
       
   214             default-js-name="basic"
       
   215             icon="icons/main16.gif"
       
   216             id-pattern="com.{0}.basic.widget"
       
   217             name="Basic WRT Project with WRTKit Support">
       
   218          <description>
       
   219             This wizard generates an basic project with a minimal Info.plist, html,css and js along with WRTKit.
       
   220          </description>
       
   221       </projectTemplate>
       
   222       <projectTemplate
       
   223             archive="projecttemplates/flickr.zip"
       
   224             default-css-name="Flickr"
       
   225             default-html-name="index"
       
   226             default-js-name="Flickr"
       
   227             icon="icons/flickr.gif"
       
   228             id-pattern="com.{0}.flickr.widget"
       
   229             name="Flickr Application Project"
       
   230             wizard-page-factory="org.symbian.tools.wrttools.wizards.FlickrProjectDetailsWizardPage$Factory">
       
   231          <description>
       
   232             This wizard generates an Flickr project with a minimal Info.plist, html,css and js and WRTKit.
       
   233          </description>
       
   234       </projectTemplate>
       
   235       <projectTemplate
       
   236             archive="projecttemplates/rssreader.zip"
       
   237             default-css-name="RSSReader"
       
   238             default-html-name="index"
       
   239             default-js-name="RSSReader"
       
   240             icon="icons/rss.gif"
       
   241             id-pattern="com.{0}.rssreader.widget"
       
   242             name="RSS Reader Application Project"
       
   243             wizard-page-factory="org.symbian.tools.wrttools.wizards.RssReaderProjectDetailsWizardPage$Factory">
       
   244          <description>
       
   245             This wizard generates an RSS Reader project with a minimal Info.plist, html,css and js and WRTKit.
       
   246          </description>
       
   247       </projectTemplate>
   148 	</extension>
   248 	</extension>
   149 	
   249 	
   150 <!-- Import Wizard -->
   250 <!-- Import Wizard -->
   151 	<extension point="org.eclipse.ui.importWizards">
   251 	<extension point="org.eclipse.ui.importWizards">
   152 		<category id="org.symbian.tools.wrttools.import" name="Web Runtime(WRT)">
   252 		<category id="org.symbian.tools.wrttools.import" name="Web Runtime(WRT)">
   154 		<wizard category="org.symbian.tools.wrttools.import"
   254 		<wizard category="org.symbian.tools.wrttools.import"
   155 			class="org.symbian.tools.wrttools.wizards.AptanaProjectsImportWizard"
   255 			class="org.symbian.tools.wrttools.wizards.AptanaProjectsImportWizard"
   156 			icon="icons/main16.gif" id="org.symbian.tools.wrttools.import.aptanaImport"
   256 			icon="icons/main16.gif" id="org.symbian.tools.wrttools.import.aptanaImport"
   157 			name="Aptana IDE WRT Project">
   257 			name="Aptana IDE WRT Project">
   158 		</wizard>
   258 		</wizard>
   159   <wizard
       
   160         category="org.symbian.tools.wrttools.import"
       
   161         class="org.symbian.tools.wrttools.wizards.WgzImportWizard"
       
   162         icon="icons/main16.gif"
       
   163         id="org.symbian.tools.wrttools.importwgz"
       
   164         name="Import WRT Application Archive">
       
   165   </wizard>
       
   166 	</extension>
   259 	</extension>
   167 	
   260 	
   168 <!-- Problem Markers -->
   261 <!-- Problem Markers -->
   169 	<extension id="org.symbian.tools.wrt.xmlProblem" name="XML Problem"
   262 	<extension id="org.symbian.tools.wrt.xmlProblem" name="XML Problem"
   170 		point="org.eclipse.core.resources.markers">
   263 		point="org.eclipse.core.resources.markers">
   448           <enablement>
   541           <enablement>
   449              <or>
   542              <or>
   450                 <adapt
   543                 <adapt
   451                       type="org.eclipse.core.resources.IResource">
   544                       type="org.eclipse.core.resources.IResource">
   452                 </adapt>
   545                 </adapt>
   453                 <adapt
   546                 <count
   454                       type="java.util.Collection">
   547                       value="0">
   455 	                <count
   548                 </count>
   456 	                      value="0">
       
   457 	                </count>
       
   458                 </adapt>
       
   459              </or>
       
   460           </enablement>
       
   461        </commonWizard>
       
   462        <commonWizard
       
   463              type="import"
       
   464              wizardId="org.symbian.tools.wrttools.importwgz">
       
   465           <enablement>
       
   466              <or>
       
   467                 <adapt
       
   468                       type="org.eclipse.core.resources.IResource">
       
   469                 </adapt>
       
   470                 <adapt
       
   471                       type="java.util.Collection">
       
   472 	                <count
       
   473 	                      value="0">
       
   474 	                </count>
       
   475                 </adapt>
       
   476              </or>
   549              </or>
   477           </enablement>
   550           </enablement>
   478        </commonWizard>
   551        </commonWizard>
   479        <dropAssistant
   552        <dropAssistant
   480              class="org.eclipse.wst.jsdt.internal.ui.navigator.JavaDropAdapterAssistant"
   553              class="org.eclipse.wst.jsdt.internal.ui.navigator.JavaDropAdapterAssistant"