2011-12-16 17 views
5

は、私は私のplugin.xmlEclipseプラグインの開発:廃止予定のActionSetの回避方法公式Eclipseプラグイン開発のチュートリアルから

<extension point = "org.eclipse.ui.actionSets"> 
     <actionSet 
      id="org.eclipse.examples.helloworld.HelloWorldActionSet" 
      label="Hello World" 
     visible="true" 
     description="The action set for the Eclipse Hello World example"> 
     <menu 
     id="org.eclipse.examples.helloworld.HelloWorldMenu" 
     label="Samples"> 
     <separator name="samples"/> 
     </menu> 
     <action id="org.eclipse.examples.helloworld.actions.HelloWorldAction" 
     menubarPath="org.eclipse.examples.helloworld.HelloWorldMenu/samples" 
     toolbarPath="Normal"    
     label="Hello World" 
     tooltip="Press to see a message" 
     icon="icons/helloworld.gif" 
     class="org.eclipse.examples.helloworld.HelloWorldAction"/> 
     </actionSet> 
    </extension> 

に新しいボタンを定義するには、次のコードをコピーししかし残念ながら、私はいくつかの非推奨の警告を取得します。拡張ポイントとアクションセットの場合は特に。私はそれを避ける方法を知ることができませんでした。何かヒント?

答えて

8

問題は、アクションフレームワーク全体が廃止されていることです。今日、代わりにコマンドを使用しています。コマンドの詳細については、eclipse-tips.comまたはvogella.comなどがあります。

関連する問題