如何添加SWT插件eclipse luna

时间:2017-08-03 10:10:41

标签: eclipse-plugin eclipse-rcp e4

我将我的eclipse插件项目导入了eclipse luna。

在项目中,所有插件都显示编译时错误。错误是org.eclipse.swt缺失。

Eclipse luna只有org.eclipse.e4.swt插件。

如何在eclipse luna中导入org.eclipse.swt插件?

请帮帮我。

注意:我的项目是在eclipse helios IDE中开发的。

关注MAINFEST.MF

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: com.chinna.cim.smash;singleton:=true
Bundle-Version: 4.0.2
Bundle-Activator: com.chinna.cim.smash.SMASHPlugin
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Eclipse-ExtensibleAPI: true
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.core.resources,
 org.eclipse.ui.ide,
 org.eclipse.ui.forms,
 org.eclipse.ui.editors,
 org.eclipse.jface.text,
 com.ami.megarac.utils
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: patch.jar,

com.ami.megrac.utils清单文件

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Utils Plug-in
Bundle-SymbolicName: com.ami.megarac.utils;singleton:=true
Bundle-Version: 4.0.2
Bundle-Activator: com.ami.megarac.utils.UtilsPlugin
Bundle-Vendor: American Megatrends Inc
Eclipse-ExtensibleAPI: true
Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.core.filesystem,
 org.eclipse.ui.console,
 org.eclipse.core.resources,
 org.eclipse.core.resources,
 google.api.translate,
 org.eclipse.ui.forms,
 com.ami.megarac.MegaRACDevStudio,
 org.eclipse.ui.ide,
 org.eclipse.jface.text,
 org.eclipse.ui.editors,
 org.eclipse.cdt.core,
 org.eclipse.compare
Export-Package: com.ami.megarac.utils,
 com.ami.megarac.utils.cdt,
 com.ami.megarac.utils.console,
 com.ami.megarac.utils.copyright,
 com.ami.megarac.utils.file,
 com.ami.megarac.utils.filesystem,
 com.ami.megarac.utils.ini.parser,
 com.ami.megarac.utils.ini.texteditor,
 com.ami.megarac.utils.jobs,
 com.ami.megarac.utils.localize,
 com.ami.megarac.utils.localize.actions;
  uses:="com.ami.megarac.utils.localize.wizards,
   org.eclipse.jface.operation,
   org.eclipse.core.runtime,
   org.eclipse.ui,
   org.eclipse.jface.action,
   com.ami.megarac.utils.localize.model,
   org.eclipse.core.resources,
   org.eclipse.jface.viewers,
   org.eclipse.swt.widgets",
 com.ami.megarac.utils.localize.builder;
  uses:="org.eclipse.core.runtime,
   com.ami.megarac.utils.localize.model,
   org.eclipse.core.resources,
   org.eclipse.swt.widgets,
   org.w3c.dom,
   org.xml.sax.helpers,
   org.xml.sax",
 com.ami.megarac.utils.localize.dialogs,
 com.ami.megarac.utils.localize.model,
 com.ami.megarac.utils.localize.wizards,
 com.ami.megarac.utils.mapmodel,
 com.ami.megarac.utils.mvc,
 com.ami.megarac.utils.resources,
 com.ami.megarac.utils.resources.compare,
 com.ami.megarac.utils.translator,
 com.ami.megarac.utils.translator.input,
 com.ami.megarac.utils.ui.forms.custom,
 com.ami.megarac.utils.ui.forms.events,
 com.ami.megarac.utils.ui.forms.model,
 com.ami.megarac.utils.ui.forms.part,
 com.ami.megarac.utils.ui.forms.part.controls,
 com.ami.megarac.utils.ui.forms.transfer,
 com.ami.megarac.utils.xml,
 com.memetix.mst,
 jboolexpr,
 org.json,
 org.json.simple,
 org.json.simple.parser
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: patch.jar,
 lib/microsoft-translator-java-api-0.6.2-jar-with-dependencies.jar,
 .,
 lib/jboolexpr-1.2.jar,
 lib/org.json.jar

0 个答案:

没有答案