Issue
I have an eclipse plugin project which uses some swt objects, eg -
import org.eclipse.swt.widgets.Composite;
When I try to compile it with the 'Target Platform' set to 'Running Platform (Active)', it compiles fine and I dont need to import any swt specific plugins.
However, I created a target platform with Eclipse 3.6.0 and if I set it as the active platform the project has compile errors wherever swt classes are used and cannot resolve them.
Which plugin should I add a dependency to, to resolve these errors?
I tried adding 'org.eclipse.swt' but that does not seem to help.
Solution
I figured it out. I was trying to compile against a 32 bit target platform on a 64 bit OS, so the filters were not matching the SWT libraries until I set them manually from the target platform preferences.
Answered By - pdeva