org.eclipse.ui can't be resolved?

java, swt

Solution

No, `org.eclipse.ui` is definitely not part of SWT (or vice versa, but it requires SWT). If you are creating an RCP plugin (if not, you probably shouldn't be using `org.eclipse.ui`), you need to open `plugin.xml` file, "Dependencies" tab, and add `org.eclipse.ui` to "Required plugins".

Problem

Could you please tell me how to resolve that package import, I thought it is an element of SWT and I've already have SWT installed into Eclipse IDE. Why is it so bothersome? I guess I have to download some *.jar or *.zip files to add to my project as external library. Please give me a solution. Thank you! VipHaLong.

Original source