debuggercdi/com.nokia.cdt.debug.launch/plugin.xml
changeset 956 d1e221a2875f
parent 821 093070e1f6e0
child 985 e40f3bd8c5a0
equal deleted inserted replaced
948:ee68c935ffb7 956:d1e221a2875f
   170             class="com.nokia.cdt.internal.debug.launch.ui.T32StopModeConfigurationTabGroup"
   170             class="com.nokia.cdt.internal.debug.launch.ui.T32StopModeConfigurationTabGroup"
   171             id="com.nokia.cdt.debug.launch.t32LaunchTabGroup">
   171             id="com.nokia.cdt.debug.launch.t32LaunchTabGroup">
   172       </launchConfigurationTabGroup>
   172       </launchConfigurationTabGroup>
   173     </extension>
   173     </extension>
   174     
   174     
       
   175  
   175     <extension
   176     <extension
   176          point="org.eclipse.debug.ui.launchShortcuts">
   177          point="org.eclipse.debug.ui.launchShortcuts">
   177       <shortcut
   178       <shortcut
   178             label="Symbian OS Application"
   179             label="Symbian OS Board Launch"
   179             icon="icons/launch_config_file_16x16.png"
   180             icon="icons/launch_config_file_16x16.png"
   180             modes="run, debug"
   181             modes="run, debug"
   181             class="com.nokia.cdt.internal.debug.launch.SymbianLaunchShortcut"
   182             class="com.nokia.cdt.internal.debug.launch.BoardLaunchShortcut"
   182             id="com.nokia.cdt.debug.launch.symbianCPPShortcut">
   183             id="com.nokia.cdt.debug.launch.symbianCPPShortcut.board">
   183          <contextualLaunch>
   184          <contextualLaunch>
   184            <enablement>
   185            <enablement>
   185              <with variable="selection">
   186              <with variable="selection">
   186                <count value="1"/>
   187                <count value="1"/>
   187                <iterate>
   188                <iterate>
   207                            property="com.nokia.cdt.debug.launch.isCarbideProject"/>
   208                            property="com.nokia.cdt.debug.launch.isCarbideProject"/>
   208                    <test
   209                    <test
   209                            forcePluginActivation="true"
   210                            forcePluginActivation="true"
   210                            property="com.nokia.cdt.debug.launch.isExecutable"/>
   211                            property="com.nokia.cdt.debug.launch.isExecutable"/>
   211                    </or>
   212                    </or>
       
   213                    <test
       
   214                          forcePluginActivation="true"
       
   215                          property="com.nokia.cdt.debug.launch.isNotEmulator">
       
   216                    </test>
   212  				</and>
   217  				</and>
   213                </iterate>
   218                </iterate>
   214              </with>
   219              </with>
   215            </enablement>
   220            </enablement>
   216            <contextLabel
   221            <contextLabel
   217          	  mode="run"
   222          	  mode="run"
   218          	  label="Run Symbian OS Application"/>
   223          	  label="Run Symbian OS Application on board"/>
   219   		   <contextLabel
   224   		   <contextLabel
   220   		 	  mode="debug"
   225   		 	  mode="debug"
   221   		 	  label="Debug Symbian OS Application"/>
   226   		 	  label="Debug Symbian OS Application on board"/>
   222   		 </contextualLaunch>
   227   		 </contextualLaunch>
   223          <description
   228          <description
   224              mode="run"
   229              mode="run"
   225              description="Runs a Symbian OS executable"/>
   230              description="Runs on a development board or reference hardware using a JTAG connection."/>
   226           <description
   231           <description
   227              mode="debug"
   232              mode="debug"
   228              description="Debugs a Symbian OS executable"/>
   233              description="Debugs on a development board or reference hardware using a JTAG connection."/>
       
   234       </shortcut>
       
   235       <shortcut
       
   236             class="com.nokia.cdt.internal.debug.launch.PhoneLaunchShortcut"
       
   237             icon="icons/launch_config_file_16x16.png"
       
   238             id="com.nokia.cdt.debug.launch.symbianCPPShortcut.phone"
       
   239             label="Symbian OS Phone Launch"
       
   240             modes="run, debug">
       
   241          <contextualLaunch>
       
   242             <enablement>
       
   243                <with
       
   244                      variable="selection">
       
   245                   <count
       
   246                         value="1">
       
   247                   </count>
       
   248                   <iterate>
       
   249                      <and>
       
   250                         <or>
       
   251                            <instanceof
       
   252                                  value="org.eclipse.cdt.core.model.IBinary">
       
   253                            </instanceof>
       
   254                            <instanceof
       
   255                                  value="org.eclipse.cdt.core.model.ICProject">
       
   256                            </instanceof>
       
   257                            <instanceof
       
   258                                  value="org.eclipse.cdt.debug.core.executables.Executable">
       
   259                            </instanceof>
       
   260                            <test
       
   261                                  forcePluginActivation="true"
       
   262                                  property="org.eclipse.cdt.launch.isExecutable">
       
   263                            </test>
       
   264                            <test
       
   265                                  forcePluginActivation="true"
       
   266                                  property="org.eclipse.cdt.launch.isCProject">
       
   267                            </test>
       
   268                            <and>
       
   269                               <instanceof
       
   270                                     value="org.eclipse.ui.IFileEditorInput">
       
   271                               </instanceof>
       
   272                               <adapt
       
   273                                     type="org.eclipse.core.resources.IResource">
       
   274                                  <adapt
       
   275                                        type="org.eclipse.cdt.core.model.ICElement">
       
   276                                  </adapt>
       
   277                               </adapt>
       
   278                            </and>
       
   279                            <test
       
   280                                  forcePluginActivation="true"
       
   281                                  property="com.nokia.cdt.debug.launch.isCarbideProject">
       
   282                            </test>
       
   283                            <test
       
   284                                  forcePluginActivation="true"
       
   285                                  property="com.nokia.cdt.debug.launch.isExecutable">
       
   286                            </test>
       
   287                         </or>
       
   288                         <test
       
   289                               forcePluginActivation="true"
       
   290                               property="com.nokia.cdt.debug.launch.isNotEmulator">
       
   291                         </test>
       
   292                      </and>
       
   293                   </iterate>
       
   294                </with>
       
   295             </enablement>
       
   296             <contextLabel
       
   297                   label="Run Symbian OS Application on phone"
       
   298                   mode="run">
       
   299             </contextLabel>
       
   300             <contextLabel
       
   301                   label="Debug Symbian OS Application on phone"
       
   302                   mode="debug">
       
   303             </contextLabel>
       
   304          </contextualLaunch>
       
   305          <description
       
   306                description="Debugs on a phone using System TRK or Application TRK"
       
   307                mode="debug">
       
   308          </description>
       
   309          <description
       
   310                description="Runs on a phone using System TRK or Application TRK"
       
   311                mode="run">
       
   312          </description>
       
   313       </shortcut>
       
   314       <shortcut
       
   315             class="com.nokia.cdt.internal.debug.launch.EmulatorLaunchShortcut"
       
   316             icon="icons/launch_config_file_16x16.png"
       
   317             id="com.nokia.cdt.debug.launch.symbianCPPShortcut.emulator"
       
   318             label="Symbian OS Emulator Launch"
       
   319             modes="run, debug">
       
   320          <contextualLaunch>
       
   321             <enablement>
       
   322                <with
       
   323                      variable="selection">
       
   324                   <count
       
   325                         value="1">
       
   326                   </count>
       
   327                   <iterate>
       
   328                      <and>
       
   329                         <or>
       
   330                            <instanceof
       
   331                                  value="org.eclipse.cdt.core.model.IBinary">
       
   332                            </instanceof>
       
   333                            <instanceof
       
   334                                  value="org.eclipse.cdt.core.model.ICProject">
       
   335                            </instanceof>
       
   336                            <instanceof
       
   337                                  value="org.eclipse.cdt.debug.core.executables.Executable">
       
   338                            </instanceof>
       
   339                            <test
       
   340                                  forcePluginActivation="true"
       
   341                                  property="org.eclipse.cdt.launch.isExecutable">
       
   342                            </test>
       
   343                            <test
       
   344                                  forcePluginActivation="true"
       
   345                                  property="org.eclipse.cdt.launch.isCProject">
       
   346                            </test>
       
   347                            <and>
       
   348                               <instanceof
       
   349                                     value="org.eclipse.ui.IFileEditorInput">
       
   350                               </instanceof>
       
   351                               <adapt
       
   352                                     type="org.eclipse.core.resources.IResource">
       
   353                                  <adapt
       
   354                                        type="org.eclipse.cdt.core.model.ICElement">
       
   355                                  </adapt>
       
   356                               </adapt>
       
   357                            </and>
       
   358                            <test
       
   359                                  forcePluginActivation="true"
       
   360                                  property="com.nokia.cdt.debug.launch.isCarbideProject">
       
   361                            </test>
       
   362                            <test
       
   363                                  forcePluginActivation="true"
       
   364                                  property="com.nokia.cdt.debug.launch.isExecutable">
       
   365                            </test>
       
   366                         </or>
       
   367                         <test
       
   368                               forcePluginActivation="true"
       
   369                               property="com.nokia.cdt.debug.launch.isEmulator">
       
   370                         </test>
       
   371                      </and>
       
   372                   </iterate>
       
   373                </with>
       
   374             </enablement>
       
   375             <contextLabel
       
   376                   label="Run Symbian OS Application on emulator"
       
   377                   mode="run">
       
   378             </contextLabel>
       
   379             <contextLabel
       
   380                   label="Debug Symbian OS Application on emulator"
       
   381                   mode="debug">
       
   382             </contextLabel>
       
   383          </contextualLaunch>
       
   384          <description
       
   385                description="Debugs using a WINSCW emulator"
       
   386                mode="debug">
       
   387          </description>
       
   388          <description
       
   389                description="Runs using a WINSCW emulator"
       
   390                mode="run">
       
   391          </description>
   229       </shortcut>
   392       </shortcut>
   230      </extension>
   393      </extension>
   231    
   394    
   232  <!-- Property testers -->
   395  <!-- Property testers -->
   233    <extension point="org.eclipse.core.expressions.propertyTesters">
   396    <extension point="org.eclipse.core.expressions.propertyTesters">
   234       <propertyTester
   397       <propertyTester
   235       		namespace="com.nokia.cdt.debug.launch"
   398       		namespace="com.nokia.cdt.debug.launch"
   236             properties="isExecutable, isCarbideProject"
   399             properties="isExecutable, isCarbideProject, isEmulator, isNotEmulator"
   237             type="org.eclipse.core.runtime.IAdaptable"
   400             type="org.eclipse.core.runtime.IAdaptable"
   238             class="com.nokia.cdt.internal.debug.launch.SymbianProjectPropertyTester"
   401             class="com.nokia.cdt.internal.debug.launch.SymbianProjectPropertyTester"
   239             id="com.nokia.cdt.debug.launch.SymbianProjectPropertyTester">
   402             id="com.nokia.cdt.debug.launch.SymbianProjectPropertyTester">
   240       </propertyTester>
   403       </propertyTester>
   241    </extension>
   404    </extension>