code parsing error "Method add expected"

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

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

code parsing error "Method add expected"

Postby jonaumann » Wed Sep 06, 2006 3:57 am

Hi, I have a rather complex form with custom components.
When I try to view it in Swing Designer, the following error happens:

!ENTRY com.swtdesigner 4 4 2006-09-06 14:01:35.320
!MESSAGE Designer internal error: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
!STACK 0
com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:574)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.createGUIComponent(ComponentBeanInfo.java:509)
at com.swtdesigner.model.JavaInfo.notifyPropertyChanged(JavaInfo.java:5747)
at com.swtdesigner.model.JavaInfo.notifyPropertyChanged(JavaInfo.java:5722)
at com.swtdesigner.gef.common.property.DesignerEditorPropertyComposite.handleRootNodeSelected(DesignerEditorPropertyComposite.java:550)
at com.swtdesigner.gef.common.property.DesignerEditorPropertyComposite.updatePropertyComposite(DesignerEditorPropertyComposite.java:729)
at com.swtdesigner.gef.DesignerEditor.parseCompilationUnit(DesignerEditor.java:993)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:891)
at com.swtdesigner.gef.DesignerEditor.handleActivate(DesignerEditor.java:857)
at com.swtdesigner.editors.MultiPageEditor.showDesignEditor(MultiPageEditor.java:325)
at com.swtdesigner.editors.MultiPageEditor$2.widgetSelected(MultiPageEditor.java:168)
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:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:660)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3138)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1922)
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:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:574)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.createControl(ContainerBeanInfo.java:560)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:522)
... 39 more
Caused by: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:574)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.createControl(ContainerBeanInfo.java:560)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:522)
... 41 more
Caused by: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:574)
at com.swtdesigner.model.swing.component.pane.JScrollPaneInfo.createControl(JScrollPaneInfo.java:47)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:522)
... 43 more
Caused by: com.swtdesigner.properties.PropertyException: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:574)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.createControl(ContainerBeanInfo.java:560)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:522)
... 45 more
Caused by: com.swtdesigner.properties.PropertyException: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.jgoodies.layout.FormLayoutInfo.findConstraintsInfo(FormLayoutInfo.java:169)
at com.swtdesigner.model.swing.layouts.managers.LayoutManagerInfo.addConstraintsProperties(LayoutManagerInfo.java:99)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.addConstraintsProperties(ComponentBeanInfo.java:267)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.getPropertyList(ComponentBeanInfo.java:254)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.getPropertyList(ContainerBeanInfo.java:730)
at com.swtdesigner.model.JavaInfo.getProperties(JavaInfo.java:1013)
at com.swtdesigner.model.JavaInfo.getPropertyByTitle(JavaInfo.java:1136)
at com.swtdesigner.model.swing.JavaBeanInfo.getPropertyByTitle(JavaBeanInfo.java:1584)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.getFocusTraversalPolicy(ContainerBeanInfo.java:657)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.createControl(ContainerBeanInfo.java:646)
at com.swtdesigner.model.swing.component.ComponentBeanInfo.prepareControl(ComponentBeanInfo.java:522)
... 47 more
Caused by: java.lang.IllegalArgumentException: Method 'add' expected but not found.
at com.swtdesigner.model.swing.layouts.managers.ConstraintsExpressionAccessor.setExpression(ConstraintsExpressionAccessor.java:36)
at com.swtdesigner.model.swing.layouts.managers.LayoutManagerInfo.changeConstraintsExpression(LayoutManagerInfo.java:90)
at com.swtdesigner.model.swing.jgoodies.layout.FormLayoutInfo.findConstraintsInfo(FormLayoutInfo.java:165)
... 57 more


any ideas why?
jonaumann
 
Posts: 7
Joined: Tue Nov 01, 2005 3:02 am

Re: code parsing error "Method add expected"

Postby Eric Clayberg » Wed Sep 06, 2006 1:49 pm

jonaumann wrote:Hi, I have a rather complex form with custom components.
When I try to view it in Swing Designer, the following error happens:...
any ideas why?

No. We would need to see a test case.

Your entire Eclipse log file would also be helpful.
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 Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest