Module stops working with Designer

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

Module stops working with Designer

Postby doubtintom » Wed Jul 18, 2007 4:10 am

Note: no need to spend time on this problem, it got solved. But please see follow up entry in this thread. I still have a problem.

I've been happily zooming along in my development of a module using Designer. At some point yesterday afternoon, I started hand coding some stuff. That just seemed faster. I probably stopped using Designer at some point and had integrated the module with my application. So I did not notice when that module stopped working with Designer.

Specifically, when I open an editor on that module in Eclipse, Designer's Source and Design tabs are absent.

I went back as far as my Eclipse local history could go, about 4pm yesterday afternoon. I sure think I was using the designer on that module at that time, but possibly not. Anyway, still not recognized as a Designer module.

I didn't think I hacked it up that badly. What are the major things to watch out for in hand editing a Designer module?

One particular thing I am curious about. Designer seemed to place a certain hunk of code in a block, i.e. surrounded by a pair of braces. Is there a rule about that? Why, when, where?

So below is the module, in its non-working-with-Designer state. It has no Java errors, and does work in my application.

Thanks,
Tom
Code: Select all
package com.mps.radrecruit.client;

import org.gwtwidgets.client.ui.ImageButton;
import org.gwtwidgets.client.ui.ImageButtonFactory;

import com.google.gwt.user.client.Command;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.MenuItem;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class Header extends Composite
{

   public Header()
   {
      final VerticalPanel header;
      final HorizontalPanel menuRow;

      final Image image;
      final VerticalPanel menuRowContainer;
      final HTML html;
      final MenuBar menuBar;
      final MenuBar viewMenu;
      final MenuBar fileMenu;
      final MenuBar recordsMenu;
      final MenuBar helpMenu;
      final HorizontalPanel buttonRow;
      final SimplePanel spacerPanel;
      final SimplePanel spacerPanel2;
      final ImageButton buttonNew;
      final ImageButton buttonDup;
      final ImageButton buttonDel;

      final HorizontalPanel buttonGroup;
      header = new VerticalPanel();
      initWidget(header);
      header.setStyleName("gwt-nostyle-bkclr");

      menuRowContainer = new VerticalPanel();
      header.add(menuRowContainer);

      menuRow = new HorizontalPanel();
      menuRowContainer.add(menuRow);
      menuRow.setSize("970", "26");
      menuRow.setStyleName("gwt-nostyle-bkclr");

      image = new Image();
      menuRow.add(image);
      menuRow.setCellHorizontalAlignment(image, HasHorizontalAlignment.ALIGN_CENTER);
      image.setStyleName("gwt-nostyle");
      menuRow.setCellWidth(image, "36");
      image.setUrl("img/green_cube.png");

      {
         fileMenu = new MenuBar(true);
         MenuItem changePassword = new MenuItem("Change Password", (Command) null);
         fileMenu.addItem(changePassword);
         fileMenu.addItem("<hr>", true, (Command) null);
         MenuItem logout = new MenuItem("Log Out", (Command) null);
         fileMenu.addItem(logout);

         viewMenu = new MenuBar(true);
         MenuItem browseMode = new MenuItem("Browse Mode", (Command) null);
         // MenuItem browseMode = new MenuItem("Browse Mode",
         // setBrowseModeCmd);
         viewMenu.addItem(browseMode);
         Command setFindModeCmd = new Command()
         {
            public void execute()
            {
               // setFindMode();
            }
         };

         MenuItem findMode = new MenuItem("Find Mode", setFindModeCmd);
         viewMenu.addItem(findMode);

         recordsMenu = new MenuBar(true);

         Command createNewRecordCmd = new Command()
         {
            public void execute()
            {
               // createNewRecord();
            }
         };
         MenuItem newRecord = new MenuItem("New Record", createNewRecordCmd);
         recordsMenu.addItem(newRecord);

         MenuItem dupRecord = new MenuItem("Duplicate Record", (Command) null);
         recordsMenu.addItem(dupRecord);

         Command deleteRecordCmd = new Command()
         {
            public void execute()
            {
               // if (Window.confirm("Delete this record?"))
               // deleteRecord();
            }
         };
         MenuItem deleteRecord = new MenuItem("Delete Record", deleteRecordCmd);
         recordsMenu.addItem(deleteRecord);

         recordsMenu.addItem("<hr>", true, (Command) null);
         MenuItem deleteFoundRecords = new MenuItem("Delete Found Records", (Command) null);
         recordsMenu.addItem(deleteFoundRecords);
         recordsMenu.addItem("<hr>", true, (Command) null);

         helpMenu = new MenuBar(true);
         MenuItem helpItem = new MenuItem("Help", (Command) null);
         helpMenu.addItem(helpItem);

         helpMenu.addItem("<hr>", true, (Command) null);
         MenuItem about = new MenuItem("About", (Command) null);
         helpMenu.addItem(about);

         menuBar = new MenuBar();
         menuRow.add(menuBar);

         MenuItem file = new MenuItem("File", fileMenu);
         file.setWidth("40px");
         menuBar.addItem(file);

         MenuItem view = new MenuItem("View", viewMenu);
         view.setWidth("50px");
         menuBar.addItem(view);

         MenuItem records = new MenuItem("Records", recordsMenu);
         records.setWidth("60px");
         menuBar.addItem(records);

         MenuItem help = new MenuItem("Help", helpMenu);
         help.setWidth("40px");
         menuBar.addItem(help);

      }

      html = new HTML("<hr>");
      menuRowContainer.add(html);

      buttonRow = new HorizontalPanel();
      buttonRow.setBorderWidth(0);
      buttonRow.setHeight("66px");
      buttonRow.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
      buttonRow.setSize("100%", "100%");

      spacerPanel = new SimplePanel();
      spacerPanel2 = new SimplePanel();
      spacerPanel.setWidth("20px");
      spacerPanel2.setWidth("10px");
      buttonRow.add(spacerPanel);
      buttonRow.setCellHorizontalAlignment(spacerPanel, HasHorizontalAlignment.ALIGN_LEFT);

      // buttonRow.setSpacing(0);
      header.setCellVerticalAlignment(buttonRow, HasVerticalAlignment.ALIGN_MIDDLE);
      header.add(buttonRow);
      header.setCellHeight(buttonRow, "38px");

      buttonNew = new ImageButtonFactory().createImageButton("img/rolo-new.png", 44, 32);
      buttonRow.add(buttonNew);
      buttonRow.setCellHorizontalAlignment(buttonNew, HasHorizontalAlignment.ALIGN_LEFT);

      buttonDup = new ImageButtonFactory().createImageButton("img/rolo-dup.png", 44, 32);
      buttonRow.add(buttonDup);
      buttonRow.setCellHorizontalAlignment(buttonDup, HasHorizontalAlignment.ALIGN_LEFT);

      buttonDel = new ImageButtonFactory().createImageButton("img/rolo-delete.png", 44, 32);
      buttonRow.add(buttonDel);
      buttonRow.setCellHorizontalAlignment(buttonDel, HasHorizontalAlignment.ALIGN_LEFT);

      buttonRow.add(spacerPanel2);

      buttonGroup = new HorizontalPanel();
      buttonRow.add(buttonGroup);
      buttonGroup.setSize("200px", "100%");
      buttonGroup.add(buttonNew);
      buttonGroup.add(buttonDup);
      buttonGroup.add(buttonDel);

      // buttonRow.setCellWidth(buttonDel, "5");
      // buttonRow.setCellWidth(buttonNew, "5");
      // buttonRow.setCellWidth(buttonDup, "5");

   }
}

Last edited by doubtintom on Wed Jul 18, 2007 5:19 am, edited 2 times in total.
Tom Miller
doubtintom
 
Posts: 12
Joined: Fri Jun 01, 2007 4:01 am

progress but no joy yet

Postby doubtintom » Wed Jul 18, 2007 5:14 am

This problem is still happening with the July 20th and 22nd builds.

I did a fresh reinstall of eclipse 3.3.1. Installed the latest (July 6) build of GWT. The Source|Design tabs are now back on my editor for the previously posted code. There must be some configuration switch that gets nailed wrong somewhere.

But now its back to Unknown Window Type errors on Eclipse. Ideas?

Thanks,
Tom

Here is the log from one click on the Design tab:
Code: Select all
!ENTRY com.swtdesigner 4 4 2007-07-18 08:17:24.404
!MESSAGE Designer internal error [6.4.0.20070717084346]: org.apache.commons.lang.exception.NestableError: org.eclipse.swt.SWTError: XPCOM error -2147221164
!STACK 0
org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.eclipse.swt.SWTError: XPCOM error -2147221164
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:357)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:150)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:62)
        at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:49)
        at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
        at com.swtdesigner.gwt.model.widgets.panel.ThisCompositeInfo.<init>(ThisCompositeInfo.java:45)
        at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:198)
        at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2684)
        at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
        at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:213)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:317)
        at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1133)
        at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1067)
        at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1061)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1055)
        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:227)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:951)
        at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
        at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
        at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: org.apache.commons.lang.exception.NestableError: org.eclipse.swt.SWTError: XPCOM error -2147221164
        at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:138)
        at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:27)
        at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
        at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1433)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:355)
        ... 53 more
Caused by: org.eclipse.swt.SWTError: XPCOM error -2147221164
        at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1296)
        at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:398)
        at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
        at com.instantiations.designer.gwt.moz.BrowserShell.<init>(BrowserShell.java:58)
        at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowserShell(GWTStateMoz.java:46)
        at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:122)
        ... 57 more

!ENTRY com.swtdesigner 4 4 2007-07-18 08:17:24.468
!MESSAGE Designer internal error [6.4.0.20070717084346]: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
!STACK 0
org.apache.commons.lang.exception.NestableError: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
        at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:118)
        at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:95)
        at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:88)
        at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.endVisit(JavaInfoParser.java:1442)
        at org.eclipse.jdt.core.dom.ClassInstanceCreation.accept0(ClassInstanceCreation.java:336)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
        at org.eclipse.jdt.core.dom.VariableDeclarationFragment.accept0(VariableDeclarationFragment.java:224)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
        at org.eclipse.jdt.core.dom.VariableDeclarationStatement.accept0(VariableDeclarationStatement.java:272)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
        at org.eclipse.jdt.core.dom.Block.accept0(Block.java:135)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2523)
        at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:501)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at com.swtdesigner.model.parser.JavaInfoParser$ParserVisitor.visit(JavaInfoParser.java:2916)
        at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:466)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2546)
        at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:213)
        at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2476)
        at com.swtdesigner.model.parser.JavaInfoParser.parse(JavaInfoParser.java:317)
        at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1133)
        at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1067)
        at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1061)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1055)
        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:227)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:951)
        at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
        at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
        at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: com.swtdesigner.properties.PropertyException: java.lang.reflect.InvocationTargetException
        at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:154)
        at com.swtdesigner.model.parser.factory.JavaInfoFactory.create(JavaInfoFactory.java:112)
        ... 64 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at com.swtdesigner.gwt.model.GWTJavaInfoFactory.create(GWTJavaInfoFactory.java:146)
        ... 65 more
Caused by: org.apache.commons.lang.exception.NestableError: org.apache.commons.lang.exception.NestableError: org.eclipse.swt.SWTError: XPCOM error -2147467259
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:357)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.classByName(UIObjectInfo.java:150)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.<init>(UIObjectInfo.java:62)
        at com.swtdesigner.gwt.model.widgets.WidgetInfo.<init>(WidgetInfo.java:49)
        at com.swtdesigner.gwt.model.widgets.panel.AbstractContainerInfo.<init>(AbstractContainerInfo.java:35)
        at com.swtdesigner.gwt.model.widgets.panel.PanelInfo.<init>(PanelInfo.java:25)
        at com.swtdesigner.gwt.model.widgets.panel.ComplexPanelInfo.<init>(ComplexPanelInfo.java:23)
        at com.swtdesigner.gwt.model.widgets.panel.CellPanelInfo.<init>(CellPanelInfo.java:20)
        at com.swtdesigner.gwt.model.widgets.panel.VerticalPanelInfo.<init>(VerticalPanelInfo.java:28)
        ... 70 more
Caused by: org.apache.commons.lang.exception.NestableError: org.eclipse.swt.SWTError: XPCOM error -2147467259
        at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:138)
        at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.<init>(GWTStateMoz.java:27)
        at com.swtdesigner.gwt.support.browser.moz.BrowserSupportFactory.createState(BrowserSupportFactory.java:12)
        at com.swtdesigner.gwt.model.widgets.support.GWTState.createState(GWTState.java:1433)
        at com.swtdesigner.gwt.model.widgets.UIObjectInfo.getState(UIObjectInfo.java:355)
        ... 78 more
Caused by: org.eclipse.swt.SWTError: XPCOM error -2147467259
        at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1296)
        at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:266)
        at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
        at com.instantiations.designer.gwt.moz.BrowserShell.<init>(BrowserShell.java:58)
        at com.swtdesigner.gwt.support.browser.moz.GWTStateMoz.createBrowserShell(GWTStateMoz.java:46)
        at com.swtdesigner.gwt.model.widgets.support.GWTState.<init>(GWTState.java:122)
        ... 82 more

!ENTRY com.swtdesigner 4 4 2007-07-18 08:17:24.536
!MESSAGE Designer internal error [6.4.0.20070717084346]: XPCOM error -2147221164
!STACK 0
org.eclipse.swt.SWTError: XPCOM error -2147221164
        at org.eclipse.swt.browser.Mozilla.error(Mozilla.java:1296)
        at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:866)
        at org.eclipse.swt.browser.Browser.<init>(Browser.java:109)
        at com.swtdesigner.gef.actions.error.DesignerExceptionDialog.createDialogArea(DesignerExceptionDialog.java:53)
        at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(TitleAreaDialog.java:147)
        at com.swtdesigner.gef.actions.error.DesignerExceptionDialog.createContents(DesignerExceptionDialog.java:37)
        at org.eclipse.jface.window.Window.create(Window.java:426)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1081)
        at org.eclipse.jface.window.Window.open(Window.java:785)
        at com.swtdesigner.gef.actions.error.DesignerExceptionUtils.showException(DesignerExceptionUtils.java:31)
        at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:1147)
        at com.swtdesigner.gef.DesignerEditor$17.execute(DesignerEditor.java:1067)
        at com.swtdesigner.model.swing.properties.custom.DesignTimeHelper.execute(DesignTimeHelper.java:54)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1061)
        at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:1055)
        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:227)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:951)
        at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3227)
        at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2005)
        at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:316)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
        at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Last edited by doubtintom on Sun Jul 22, 2007 12:12 pm, edited 3 times in total.
Tom Miller
doubtintom
 
Posts: 12
Joined: Fri Jun 01, 2007 4:01 am

Re: Module stops working with Designer

Postby Eric Clayberg » Wed Jul 18, 2007 8:48 am

doubtintom wrote:Specifically, when I open an editor on that module in Eclipse, Designer's Source and Design tabs are absent.

That means that you were edting the class using the Eclispe Java Editor rather than the Designer Editor. Eclipse always opens a class using the last editor type that was used to edit the class in the past. If you don't see a Source and Design tab, that means that you are not using Designer.

doubtintom wrote:I went back as far as my Eclipse local history could go, about 4pm yesterday afternoon. I sure think I was using the designer on that module at that time, but possibly not. Anyway, still not recognized as a Designer module.

Going back in your local history won't make any difference. You would need to actually open the class with the Designer Editor. As long as you keep using the Java Editor, the system will continue to use that editor with the class until you select a different editor type.

Image

doubtintom wrote:One particular thing I am curious about. Designer seemed to place a certain hunk of code in a block, i.e. surrounded by a pair of braces. Is there a rule about that? Why, when, where?

You can control the code generation style using the Code Generation preferences.

doubtintom wrote:So below is the module, in its non-working-with-Designer state. It has no Java errors, and does work in my application.

There is nothing in that code that would prevent you from opening it using the Designer Editor.

doubtintom wrote:I did a fresh reinstall of eclipse 3.3.1.

Eclipse 3.3.1? The most recent version that I am aware of is 3.3.

doubtintom wrote:Installed the latest (July 6) build of GWT.

The latest build is from July 18th, not July 6th. I would suggest trying that in a clean Eclipse 3.3 environment.
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 doubtintom » Wed Jul 18, 2007 8:05 pm

Eric

Thanks a lot for the info about the editors, that helped a lot. I'm not sure if it was Eclipse being flakey or just me somehow clicking wildly and getting the wrong editor. It seems to come up once in awhile. Anyway, now I know how to correct it.

The download page lists the most recent build as 2007-07-06. Has the latest one not been put up, or did the date label just not get changed?

I will try the new one when available. I've dropped back to the 2.0 release and I'm developing again. I'm at a real crunch time in my project, and GWT Developer is really paying off. It would take a lot longer to get the GUI stuff right doing the layout by hand.

Oh, Eclipse 3.3.1 is just the patched 3.3

Thanks
Tom
Tom Miller
doubtintom
 
Posts: 12
Joined: Fri Jun 01, 2007 4:01 am

Postby Eric Clayberg » Thu Jul 19, 2007 5:01 am

doubtintom wrote:The download page lists the most recent build as 2007-07-06. Has the latest one not been put up, or did the date label just not get changed?

Apparently the date label was stuck. It is fixed now.
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

back to the

Postby doubtintom » Fri Jul 20, 2007 6:32 am

I installed a fresh download of GWT Designer, 7-20 version. I'm getting the same stack dump as in my second post in this thread. Any ideas?
Tom Miller
doubtintom
 
Posts: 12
Joined: Fri Jun 01, 2007 4:01 am

Finally understand

Postby doubtintom » Sat Jul 21, 2007 1:28 pm

Still have the stack dump with the 7-20 version 2nd post, this thread), but in the meantime I finally understood what confused me about the Designer editor appearing to "go away". This may save others the same confusion.

When debugging, Eclipse 3.3 (earlier?) opens a new editor on breakpointed code. If an editor has previously been open on the same file, this is a duplicate editor. The first editor may have been a GWT Designer editor, but the debugger editor is not.

Eclipse keeps these two editors synchronized, but if one happens to close the GWT Designer editor, the non-GWT Designer editor opened by the Eclipse debugger remains. It took me quite awhile to realize what was happening, and in the meantime took it out on Eric and his good product (which is saving my butt)!

I have no complaints about all of these good tools, but whew, I went around the cow path on that one a few times.

cheers
Tom
Tom Miller
doubtintom
 
Posts: 12
Joined: Fri Jun 01, 2007 4:01 am

Re: Finally understand

Postby Eric Clayberg » Sun Jul 22, 2007 4:06 pm

doubtintom wrote:I installed a fresh download of GWT Designer, 7-20 version. I'm getting the same stack dump as in my second post in this thread. Any ideas?

No. That's isn't an exception we have ever seen before. It's throwing an exception in low-level Eclipse code, so, if I had to guess, it looks like some sort of local configuration issue. You could try the general suggestions in this FAQ entry, but I don't know whether they will help.

doubtintom wrote:When debugging, Eclipse 3.3 (earlier?) opens a new editor on breakpointed code. If an editor has previously been open on the same file, this is a duplicate editor.

This was a bug introduced in Eclipse 3.2...

https://bugs.eclipse.org/bugs/show_bug.cgi?id=156989
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