Unknown Window Type

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

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

Unknown Window Type

Postby jlarsen » Wed Jan 17, 2007 2:42 pm

I just recently downloaded the trial version and the visual editing for models works perfectly. It does not work for composites.

When I click on Design view the properties inspector is empty as is the palette. Where it normally says I have 14 days left in my trial it says Unknown Window Type.

I am using the 1.3 version of GWT. Is this something that is disabled because it is a trial version or is this a bug?

Thanks,
Jeff
jlarsen
 
Posts: 4
Joined: Wed Jan 17, 2007 2:31 pm

Postby jlarsen » Wed Jan 17, 2007 3:27 pm

Some more info. If I create a new Dialog box I get the same problem, but if I create a new Popup window I then have access to the visual editor. Then if I change the class that I used to create the popup window to extend Composite, then the editor works.
jlarsen
 
Posts: 4
Joined: Wed Jan 17, 2007 2:31 pm

Postby Eric Clayberg » Wed Jan 17, 2007 3:36 pm

jlarsen wrote:Some more info. If I create a new Dialog box I get the same problem, but if I create a new Popup window I then have access to the visual editor. Then if I change the class that I used to create the popup window to extend Composite, then the editor works.

It seems to work fine on our end.

Please send us a test case (ideally your Eclipse project) and your complete Eclipse ".log" file.
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 jlarsen » Thu Jan 18, 2007 8:04 am

I now know what the issue is. If I create a custom composite in a package with a module the visual editor works. If I create it in a separate package the visual editor shows 'Unknown Window Type'
jlarsen
 
Posts: 4
Joined: Wed Jan 17, 2007 2:31 pm

Postby jlarsen » Thu Jan 18, 2007 9:37 am

Here is a stacktrace that I'm getting in the .log file.

java.lang.NullPointerException
at com.swtdesigner.gwt.util.Utils.getQualifiedModuleName(Utils.java:131)
at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:76)
at com.swtdesigner.gwt.support.browser.ie.GWTStateIE6.<init>(GWTStateIE6.java:30)
at com.swtdesigner.gwt.support.browser.ie.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1157)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:320)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:143)
at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:59)
at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:48)
at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:34)
at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
at com.swtdesigner.gwt.model.widgets.panel.SimplePanelInfo.<init>(SimplePanelInfo.java:33)
at com.swtdesigner.gwt.model.widgets.panel.PopupPanelInfo.<init>(PopupPanelInfo.java:31)
at com.swtdesigner.gwt.model.widgets.panel.DialogBoxInfo.<init>(DialogBoxInfo.java:20)
at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:125)
at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2491)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2536)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2466)
at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:201)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1011)
at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:948)
at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:942)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:938)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:413)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:183)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:709)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3171)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1953)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:288)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
jlarsen
 
Posts: 4
Joined: Wed Jan 17, 2007 2:31 pm

Postby Eric Clayberg » Thu Jan 18, 2007 3:04 pm

jlarsen wrote:I now know what the issue is. If I create a custom composite in a package with a module the visual editor works. If I create it in a separate package the visual editor shows 'Unknown Window Type'

GWT widget classes may only be used in the client package of a GWT module.

The latest build will no longer allow you to create a Composite anywhere other than the client package.
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


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests