0

I am developing an Eclipse Plugin. My View extends CommonNavigator. the View's contents is an hierarchy of MyWrapper classes

class MyWrapper implement IAdaptable{
IResource resource;
MyWrapper parent;
List<MyWrapper> children;
}

I want to display PopUp menu the same as the Default Common Navigator displays. I have registered an AdapterFactory that adapt MyWrapper to IResource.

List of actions that are displayed:

  • New
  • Remove from context (disabled)
  • Import
  • Export
  • Refresh
  • Validate
  • Team
  • Compare with
  • Restore from Local History
  • Properties

List of actions that I need for menu:

  • Copy
  • Paste
  • Rename

does anybody know how to do this?

4

1 に答える 1

0

このチュートリアルでは、これらのアクションを追加する方法について説明します: Common Navigator ベースのビューアーの構築、パート I: ビューアーの定義 「org.eclipse.ui.navigator.resources.*」を追加する部分を検索します。

于 2012-11-16T00:17:17.447 に答える