2014-05-15 34 views
-2
<menuContribution 
      allPopups="false" 
      locationURI="popup:common.new.menu?after=additions"> 
     <command 
       commandId="newproproject" 
       label="My PRO Application Debug" 
       style="push"> 
     </command> 
</menuContribution> 

http://i.stack.imgur.com/2uuuH.png如何添加新的命令?

我想在紅框中添加新的命令。 但我不知道那裏locationURI。 我嘗試做「ALT + Shift + F2」。 但我不知道。

什麼是locationUri?

+1

可能的重複:http://stackoverflow.com/questions/2319874/how-to-add-menu-entry-to-run-as – Calon

回答

0

這不起作用。

這是另一個擴展點。我也爲此而苦惱。

它看起來像這樣:

<plugin> 
<extension point="org.eclipse.debug.core.launchConfigurationTypes"> 
    <launchConfigurationType 
     delegate="com.example..launch.ExampleLaunchConfigurationDelegate" 
     id="com.example.launch" 
     modes="run, debug" 
     name="MyLauncher"> 
    </launchConfigurationType> 
</extension> 
</plugin> 

你必須實現ILaunchConfigurationDelegate在Delegateclass。