快速为view的工具条中加个上拉列表2

快速为view的工具条中加个下拉列表21.初始化Action testActionclass InnerAction extends Action{private

快速为view的工具条中加个下拉列表2
1.初始化Action testAction

class InnerAction extends Action{    private String text;    InnerAction(String text){    super(text);    this.text = text;    }    @Override    public void run() {    super.run();     if("One".equals(text)){    //do one something    }else{    //do two something    }    }    }


3.填充在工具条及菜单栏中
  protected void fillMenuBar(IMenuManager menuBar)
  protected void fillCoolBar(ICoolBarManager coolBar)

参考资料:
使用IMenuCreator
http://www.cnblogs.com/bronte/articles/1880116.html