二、 为RCP项目添加一个Feature product工程
在file中选择'new' 'project' 'Feature product',工程名为org.jdbm.gd.jpdl.feature.
打开feature.xml,选择plug-ins页,将org.jbpm.gd.common ,org.jbpm.gd.jpdl以及工程用到的其他plugin组件加入,共有85项(或者将下面的代码拷到feature.xml中)
<!--feature.xml--> <?xml version="1.0" encoding="UTF-8"?> <feature id="org.jdbm.gd.jpdl.feature" label="Feature Feature" version="1.0.0" os="win32" ws="win32" nl="zh_CN" arch="x86"> <description url="http://www.example.com/description"> [Enter Feature Description here.] </description> <copyright url="http://www.example.com/copyright"> [Enter Copyright Description here.] </copyright> <license url="http://www.example.com/license"> [Enter License Description here.] </license> <plugin id="com.genuitec.javascript.debug.mozilla" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="com.ibm.icu" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.apache.xerces" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.apache.xml.resolver" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.compare" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.commands" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.contenttype" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.databinding" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.expressions" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.filebuffers" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.filesystem" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.filesystem.win32.x86" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.core.jobs" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.net" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.resources" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.resources.compatibility" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.core.resources.win32" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.core.runtime" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.core.runtime.compatibility.registry" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.core.variables" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.debug.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.debug.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.draw2d" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.common" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.ecore" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.emf.ecore.xmi" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.equinox.app" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.equinox.common" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.equinox.preferences" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.equinox.registry" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.gef" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.help" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.compiler.apt" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.jdt.compiler.tool" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.jdt.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.core.manipulation" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.debug" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.debug.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.launching" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jdt.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jem.util" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jface" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jface.databinding" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.jface.text" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ltk.core.refactoring" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ltk.ui.refactoring" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.osgi" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.osgi.util" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.search" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.swt" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.swt.win32.win32.x86" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.team.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.team.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.text" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.console" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.editors" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.forms" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.ide" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.navigator" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.navigator.resources" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.views" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.views.properties.tabbed" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.win32" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.ui.workbench" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.ui.workbench.texteditor" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.update.configurator" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.update.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.update.core.win32" download-size="0" install-size="0" version="0.0.0" fragment="true" unpack="false"/> <plugin id="org.eclipse.update.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.environment" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.frameworks" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.project.facet.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.common.uriresolver" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.sse.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.sse.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.validation" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.xml.core" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.eclipse.wst.xml.ui" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.jbpm.gd.common" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.jbpm.gd.jpdl" download-size="0" install-size="0" version="0.0.0" unpack="false"/> <plugin id="org.mozilla.xpcom" download-size="0" install-size="0" version="0.0.0" unpack="false"/> </feature>
然后打开org.jbpm.gd.jpdl工程中的org.jbpm.gd.jpdl.product,选择overview页,将org.jbpm.gd.jpdl.product设为features即可。