@Override
protected void makeActions(IWorkbenchWindow window) {
//产生一个eclipse系统的aboutAction
aboutAction = ActionFactory.ABOUT.create(window);//①
aboutAction.setImageDescriptor(ImageDescriptor.createFromURL(URLUtil.getResourceURL("icons/about.gif")));//②
register(aboutAction);//③
super.makeActions(window);
}
说明:
①aboutAction类型为IWorkbenchAction
②可以另外设置为其它图片
③注册,为快捷键绑定作准备