6

I'm developing an Eclipse plug-in, based on a bunch of core Eclipse plug-ins like SWT, JDT, GEF and others.

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.

Any tips on how this can be achieved?

Thanks.

3 Answers 3

11

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.

The setting is under Window->Preferences->Plug-in development->Target Platform

1

What Barak said. See also this topic on Eclipse help:

http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tools/preference_pages/target_platform.htm

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.
0

And is it no way how to develop plugin for newer palfrom? Eg.: develop new plugin for 3.5 into 3.4...

1
  • 1
    In general PDE has never guaranteed forward compatibility. For example, Eclipse 3.3 would not be able to self-host a 3.4 based eclipse because there were significant changes involved with p2. May 29, 2009 at 3:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.