The import org.eclipse cannot be resolved

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

The import org.eclipse cannot be resolved

Postby joelopes » Mon Aug 18, 2003 4:41 pm

I installed "Advanced Eclipse SWT Designer" following the instructions (eclipse 2.1.1, GEF 2.1.1), but the first JFace dialog I created with the wizard has this error:

Code: Select all
The import org.eclipse cannot be resolved


on these lines:

Code: Select all
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;


What´s wrong? Thanks! :wink:
joelopes
 
Posts: 2
Joined: Mon Aug 18, 2003 4:34 pm

Postby admin » Mon Aug 18, 2003 7:12 pm

You need to add SWT and JFace jar's to project build path.
We will update today documentation and add topic about configuring Eclipse and project for Designer (well, in reallity just for using SWT/JFace).
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am

Postby joelopes » Tue Aug 19, 2003 7:04 am

Thanks a lot admin. Now it's working!

Well, JFace dialogs seems ok, but JFace wizards are not working. The component tree only shows the "container" entry. The "(wizard page)" doesn't show up. The code is exactly the same as the "http://www.swt-designer.com/demos/demo3.html" demo.

Also, the JFace section in Component Palette shows only "Dialog Button", but I can see in demo that this section has other options.

This program is awsome! Very well done!

Would be good to have a guide about packing and installing an application created with Advanced Eclipse SWT Designer.
joelopes
 
Posts: 2
Joined: Mon Aug 18, 2003 4:34 pm

Postby admin » Tue Aug 19, 2003 7:11 am

joelopes wrote:Thanks a lot admin. Now it's working!

Well, JFace dialogs seems ok, but JFace wizards are not working. The component tree only shows the "container" entry. The "(wizard page)" doesn't show up. The code is exactly the same as the "http://www.swt-designer.com/demos/demo3.html" demo.

Also, the JFace section in Component Palette shows only "Dialog Button", but I can see in demo that this section has other options.

Yes, full JFace support including WizardPage and many other things are included in professional version of Designer.

joelopes wrote:This program is awsome! Very well done!

Thank you.

joelopes wrote:Would be good to have a guide about packing and installing an application created with Advanced Eclipse SWT Designer.

Thanks, I will add this in documentation.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest