I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others.
我正在开发一个Eclipse插件,它基于一堆核心Eclipse插件,如SWT,JDT,GEF等。
I need my plug-in to be compatible with Eclipse 3.3, since many potential customers are still using it. However, personally I like the new features in Eclipse 3.4 and would like to use it for my development. This means I need PDE to reference 3.3 code and, when debug, execute a 3.3 instance.
我需要我的插件与Eclipse 3.3兼容,因为许多潜在客户仍在使用它。但是,我个人喜欢Eclipse 3.4中的新功能,并希望将它用于我的开发。这意味着我需要PDE来引用3.3代码,并在调试时执行3.3实例。
Any tips on how this can be achieved?
有关如何实现这一目标的任何提示?
Thanks.
3 个解决方案
#1
12
You can change the 'Target platform' setting to point to the location of an existing set of eclipse 3.3 plugins. This will compile your code against the 3.3 plugins, making sure that they stay compatible no matter which version of eclipse you are using to develop the application.
您可以将“目标平台”设置更改为指向现有的一组eclipse 3.3插件的位置。这将针对3.3插件编译您的代码,确保它们保持兼容,无论您使用哪个版本的eclipse来开发应用程序。
The setting is under Window->Preferences->Plug-in development->Target Platform
该设置位于Window-> Preferences-> Plug-in development-> Target Platform下
#2
1
What Barak said. See also this topic on Eclipse help:
巴拉克说的是什么。另请参阅有关Eclipse帮助的此主题:
Note also:
- the default target platform is your Eclipse install
- your dev environment should be at least as recent as the target platform (i.e. you cannot use 3.3 as dev environment and target 3.4)
- this also allows you to develop against plug-ins you don't have in your development Eclipse install.
默认目标平台是Eclipse安装
您的开发环境应该至少与目标平台一样新(即您不能将3.3用作开发环境和目标3.4)
这也允许您针对开发Eclipse安装中没有的插件进行开发。
#3
0
And is it no way how to develop plugin for newer palfrom? Eg.: develop new plugin for 3.5 into 3.4...
是不是如何为新的palfrom开发插件?例如:开发3.5到3.4的新插件...
#1
12
You can change the 'Target platform' setting to point to the location of an existing set of eclipse 3.3 plugins. This will compile your code against the 3.3 plugins, making sure that they stay compatible no matter which version of eclipse you are using to develop the application.
您可以将“目标平台”设置更改为指向现有的一组eclipse 3.3插件的位置。这将针对3.3插件编译您的代码,确保它们保持兼容,无论您使用哪个版本的eclipse来开发应用程序。
The setting is under Window->Preferences->Plug-in development->Target Platform
该设置位于Window-> Preferences-> Plug-in development-> Target Platform下
#2
1
What Barak said. See also this topic on Eclipse help:
巴拉克说的是什么。另请参阅有关Eclipse帮助的此主题:
Note also:
- the default target platform is your Eclipse install
- your dev environment should be at least as recent as the target platform (i.e. you cannot use 3.3 as dev environment and target 3.4)
- this also allows you to develop against plug-ins you don't have in your development Eclipse install.
默认目标平台是Eclipse安装
您的开发环境应该至少与目标平台一样新(即您不能将3.3用作开发环境和目标3.4)
这也允许您针对开发Eclipse安装中没有的插件进行开发。
#3
0
And is it no way how to develop plugin for newer palfrom? Eg.: develop new plugin for 3.5 into 3.4...
是不是如何为新的palfrom开发插件?例如:开发3.5到3.4的新插件...