Designer wizard to create new WizardPage fails

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

Designer wizard to create new WizardPage fails

Postby elz_dad » Fri May 06, 2005 3:01 am

Using Eclipse 3.0.2, WindowBuilder Pro 4.0.0, when I try:

New->Other...
Designer
JFace
WizardPage

The dialog that appears has no icon (just a little red dot in the top rh corner).

I fill in folder/package/name for the new class and press Finish, and it gives me
a message saying the create failed, look in the log. I include the stack trace below.

The error is complaining that it can't find "WizardPage.jvt". When I checked, I could
see in plugins/com.swtdesigner_4.0.0/templates/JFace that there is file called
"wizardPage.jvt", so I copied this to "WizardPage.jvt" and
that seemed to fix the problem (except I still see the little red dot rather than an
icon in the designer wizard).

Couldn't see mention of this anywhere in the forums (apologies if it is covered
elsewhere), so wanted to check - have I done the right thing? And should I
expect to see an icon rather than a little red dot in the wizard dialog? Other
wizards, e.g. create application window, seem to work but also have a little red
dot rather than an icon, fwiw.

thanks
nick

log below:

java.io.FileNotFoundException: /templates/JFace/WizardPage.jvt
at org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler.findBundleEntry(Handler.java:41)
at org.eclipse.osgi.framework.adaptor.core.BundleResourceHandler.openConnection(BundleResourceHandler.java:146)
at java.net.URL.openConnection(URL.java:943)
at java.net.URL.openStream(URL.java:1007)
at com.swtdesigner.DesignerPlugin.getFile(DesignerPlugin.java:360)
at com.swtdesigner.wizards.swt.GenericNewSWTWizardPage.createTypeMembers(GenericNewSWTWizardPage.java:31)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:1500)
at com.swtdesigner.wizards.DesignContainerWizard.finishPage(DesignContainerWizard.java:22)
at com.swtdesigner.wizards.swt.GenericNewSWTWizard.finishPage(GenericNewSWTWizard.java:31)
at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$2.run(NewElementWizard.java:108)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:34)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:700)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:3246)
at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:65)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
elz_dad
 
Posts: 11
Joined: Fri May 06, 2005 2:40 am

Re: Designer wizard to create new WizardPage fails

Postby Eric Clayberg » Sat May 07, 2005 6:24 pm

elz_dad wrote:Using Eclipse 3.0.2, WindowBuilder Pro 4.0.0...
And should I expect to see an icon rather than a little red dot in the wizard dialog?

When I use those wizards, I see the expected banner image in the wizard and the WizardPage wizard works as expected.

What OS are you using? Have you tried v4.0.1?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby elz_dad » Sun May 08, 2005 3:09 pm

What OS are you using? Have you tried v4.0.1?


thanks for your response.

I'm using Fedora Core 2 at work, and also see the same problem
using 2.6.10-gentoo-r6 at home. These are with separately downloaded
copies of Designer, although I've use the same license key to register
them.

I saw the same problem with designer v3 before trying 4.0.0 (and
the same disparity between "WizardPage.jvt" and "wizardPage.jvt").

I haven't tried 4.0.1 yet; I'm in the middle of doing something and
don't want to tinker with my setup just now but will try to do this in
the next day or so and let you know

nick
elz_dad
 
Posts: 11
Joined: Fri May 06, 2005 2:40 am

Postby Eric Clayberg » Mon May 09, 2005 9:05 am

elz_dad wrote:I'm using Fedora Core 2 at work, and also see the same problem using 2.6.10-gentoo-r6 at home.

I guess that Eclipse under Linux must care about the case of those files. Weird.

elz_dad wrote:I haven't tried 4.0.1 yet

LMK.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Postby elz_dad » Mon May 09, 2005 1:17 pm

Have you tried v4.0.1?


I just downloaded and installed 4.0.1 on my gentoo system, and it
seems to have fixed both problems - the "new wizard page" wizard
works, and also I can see a proper icon in the top right of the box
now, not just the red dot.

Thanks for your response, I was mostly worried that I had done something
wrong, and I feel reassured now!

regards

nick
elz_dad
 
Posts: 11
Joined: Fri May 06, 2005 2:40 am


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest