org.symbian.tools.wrttools/plugin.xml
changeset 281 c4e6bebd078c
parent 275 12c2ea2194c7
child 282 39bbb3a15d6f
equal deleted inserted replaced
279:2c8fd0932460 281:c4e6bebd078c
    62          </action>
    62          </action>
    63       </objectContribution>	 
    63       </objectContribution>	 
    64 -->                
    64 -->                
    65     
    65     
    66       
    66       
    67 	  <objectContribution
       
    68            objectClass="org.eclipse.core.resources.IResource" 
       
    69 		   adaptable="true"         
       
    70            id="org.symbian.tools.wrttools.widget.wrttool">
       
    71 	 	   <filter
       
    72 	     	name="projectNature"
       
    73 	     	value="org.symbian.tools.wrttools.WidgetProjectNature"/>
       
    74 	       <action
       
    75 	             class="org.symbian.tools.wrttools.core.packager.WrtPackageActionDelegate"
       
    76 	             enablesFor="+"
       
    77 	             icon="icons/package_widget.gif"
       
    78 	             id="org.symbian.tools.wrttools.widget.package.WrtPackageActionDelegate"
       
    79 	             label="Package WRT Application"
       
    80 	             menubarPath="org.symbian.tools.wrttools.contextMenuGroupMarker">
       
    81 	       </action>
       
    82       </objectContribution> 
       
    83       <objectContribution
    67       <objectContribution
    84             objectClass="org.eclipse.core.resources.IResource"            
    68             objectClass="org.eclipse.core.resources.IResource"            
    85             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
    69             id="org.symbian.tools.wrttools.widget.wrttool.packageoptions">
    86          <visibility>
    70          <visibility>
    87             <not>
    71             <not>
   663           id="org.symbian.tools.wrttools.commands.maincategory"
   647           id="org.symbian.tools.wrttools.commands.maincategory"
   664           name="WRT Tools">
   648           name="WRT Tools">
   665     </category>
   649     </category>
   666     <command
   650     <command
   667           categoryId="org.symbian.tools.wrttools.commands.maincategory"
   651           categoryId="org.symbian.tools.wrttools.commands.maincategory"
   668           description="Deploys application to phone or emulator"
   652           description="Deploys an application to phone or emulator"
   669           id="org.symbian.tools.wrttools.commands.deploy"
   653           id="org.symbian.tools.wrttools.commands.deploy"
   670           name="Deploy Application">
   654           name="Deploy Application">
       
   655     </command>
       
   656     <command
       
   657           categoryId="org.symbian.tools.wrttools.commands.maincategory"
       
   658           description="Packages an application for distribution or deployment"
       
   659           id="org.symbian.tools.wrttools.commands.package"
       
   660           name="Package Application">
   671     </command>
   661     </command>
   672  </extension>
   662  </extension>
   673  <extension
   663  <extension
   674        point="org.eclipse.ui.menus">
   664        point="org.eclipse.ui.menus">
   675     <menuContribution
   665     <menuContribution
   677        <toolbar
   667        <toolbar
   678              id="org.symbian.tools.wrttools">
   668              id="org.symbian.tools.wrttools">
   679           <command
   669           <command
   680                 commandId="org.symbian.tools.wrttools.commands.deploy"
   670                 commandId="org.symbian.tools.wrttools.commands.deploy"
   681                 icon="icons/deploy_widget.gif"
   671                 icon="icons/deploy_widget.gif"
   682                 id="org.symbian.tools.wrttools.toolbars.deploy"
   672                 id="org.symbian.tools.wrttools.toolbars.deploy">
   683                 label="Deploy"
   673           </command>
   684                 tooltip="Deploy application">
   674           <command
       
   675                 commandId="org.symbian.tools.wrttools.commands.package"
       
   676                 icon="icons/package_widget.gif"
       
   677                 id="org.symbian.tools.wrttools.toolbars.package">
   685           </command>
   678           </command>
   686        </toolbar>
   679        </toolbar>
       
   680     </menuContribution>
       
   681     <menuContribution
       
   682           locationURI="menu:project?after=additions">
       
   683        <separator
       
   684              name="org.symbian.tools.wrttools.beginwert"
       
   685              visible="true">
       
   686        </separator>
       
   687        <command
       
   688              commandId="org.symbian.tools.wrttools.commands.deploy"
       
   689              icon="icons/deploy_widget.gif"
       
   690              id="org.symbian.tools.wrttools.toolbars.deploy">
       
   691        </command>
       
   692        <command
       
   693              commandId="org.symbian.tools.wrttools.commands.package"
       
   694              icon="icons/package_widget.gif"
       
   695              id="org.symbian.tools.wrttools.toolbars.package">
       
   696        </command>
       
   697        <separator
       
   698              name="org.symbian.tools.wrttools.endwrt"
       
   699              visible="true">
       
   700        </separator>
       
   701     </menuContribution>
       
   702     <menuContribution
       
   703           locationURI="popup:org.eclipse.ui.popup.any?after=sourceMenuId">
       
   704        <separator
       
   705              name="org.symbian.tools.wrttools.beginwert"
       
   706              visible="true">
       
   707        </separator>
       
   708        <command
       
   709              commandId="org.symbian.tools.wrttools.commands.deploy"
       
   710              icon="icons/deploy_widget.gif"
       
   711              id="org.symbian.tools.wrttools.toolbars.deploy">
       
   712           <visibleWhen>
       
   713              <and>
       
   714                 <iterate
       
   715                       ifEmpty="false"
       
   716                       operator="and">
       
   717                    <adapt
       
   718                          type="org.eclipse.core.resources.IProject">
       
   719                    </adapt>
       
   720                 </iterate>
       
   721                 <count
       
   722                       value="1">
       
   723                 </count>
       
   724              </and>
       
   725           </visibleWhen>
       
   726        </command>
       
   727        <command
       
   728              commandId="org.symbian.tools.wrttools.commands.package"
       
   729              icon="icons/package_widget.gif"
       
   730              id="org.symbian.tools.wrttools.toolbars.package">
       
   731           <visibleWhen>
       
   732              <and>
       
   733                 <iterate
       
   734                       ifEmpty="false"
       
   735                       operator="and">
       
   736                    <adapt
       
   737                          type="org.eclipse.core.resources.IProject">
       
   738                    </adapt>
       
   739                 </iterate>
       
   740                 <count
       
   741                       value="1">
       
   742                 </count>
       
   743              </and>
       
   744           </visibleWhen>
       
   745        </command>
       
   746        <separator
       
   747              name="org.symbian.tools.wrttools.endwrt"
       
   748              visible="true">
       
   749        </separator>
   687     </menuContribution>
   750     </menuContribution>
   688  </extension>
   751  </extension>
   689  <extension
   752  <extension
   690        point="org.eclipse.ui.handlers">
   753        point="org.eclipse.ui.handlers">
   691     <handler
   754     <handler
   692           class="org.symbian.tools.wrttools.handlers.DeployHandler"
   755           class="org.symbian.tools.wrttools.handlers.DeployHandler"
   693           commandId="org.symbian.tools.wrttools.commands.deploy">
   756           commandId="org.symbian.tools.wrttools.commands.deploy">
   694        <enabledWhen>
   757        <enabledWhen>
       
   758           <reference
       
   759                 definitionId="org.symbian.tools.wrttools.symbianproject">
       
   760           </reference>
       
   761        </enabledWhen>
       
   762     </handler>
       
   763     <handler
       
   764           class="org.symbian.tools.wrttools.handlers.PackageApplicationHandler"
       
   765           commandId="org.symbian.tools.wrttools.commands.package">
       
   766        <enabledWhen>
       
   767           <reference
       
   768                 definitionId="org.symbian.tools.wrttools.symbianproject">
       
   769           </reference>
       
   770        </enabledWhen>
       
   771     </handler>
       
   772  </extension>
       
   773  <extension
       
   774        point="org.eclipse.core.expressions.definitions">
       
   775     <definition
       
   776           id="org.symbian.tools.wrttools.symbianproject">
   695           <or>
   777           <or>
   696              <with
   778              <with
   697                    variable="selection">
   779                    variable="selection">
   698                 <and>
   780                 <and>
   699                    <count
   781                    <count
   723                          type="org.eclipse.core.resources.IResource">
   805                          type="org.eclipse.core.resources.IResource">
   724                    </adapt>
   806                    </adapt>
   725                 </with>
   807                 </with>
   726              </and>
   808              </and>
   727           </or>
   809           </or>
   728        </enabledWhen>
   810     </definition>
   729     </handler>
       
   730  </extension>
   811  </extension>
   731 </plugin>
   812 </plugin>