rcp定制欢迎界面可以在root.xhtml中用html语句创建页面,如果有根据数据库动态显示数据,可以定义一个类,实现IIntroXHTMLContentProvider接口。在其createContent方法中用硬编码的方式写HTML,例如 :
如果想通过超链接的方式,与java代码交互可以这样定义连接:
http://org.eclipse.ui.intro/SeeHelpDocumentAction?id=01
其中SeeHelpDocumentAction这个类需要extends Action implements IIntroAction
在其run方法中,得到传过来的参数,类似servlet,进行处理。
Element ahref = dom.createElement("a"); ahref.setAttribute("class", "A");
ahref.setAttribute("id", "tutorials");
如果想通过超链接的方式,与java代码交互可以这样定义连接:
http://org.eclipse.ui.intro/SeeHelpDocumentAction?id=01
其中SeeHelpDocumentAction这个类需要extends Action implements IIntroAction
在其run方法中,得到传过来的参数,类似servlet,进行处理。