by cebarne2 » Thu Nov 13, 2003 7:27 am
I may be able to add some information to this thread...
I also have problems with the Designer hanging, and can reproduce it the following way in both Eclipse 2.1.1 and Eclipse 3.0M4 (Windows XP, Java 1.4.1_05, SWT-Designer Pro 1.2.1):
1) Create new SWT Project
2) Create new SWT application in project
3) Switch to design mode
4) Place GridLayout on the shell
5) Set the layout to 6 columns
6) Place a button on the shell
7) Change the buttons backgroun (or foreground) color to Red
Poof, something is locked-up. I can switch back to source-code mode and edit code, but I cannot change any properties in the design mode, and the background color property keeps the focus the whole time. Actually, I can keep changing this one property, having no affect in the preview window, and it never releases focus.
Here is an excerpt from the stack trace in the error log:
java.lang.IllegalArgumentException: Path must include project and resource name: /SWTClock
at org.eclipse.core.internal.utils.Assert.isLegal(Assert.java:55)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1398)
at org.eclipse.core.internal.resources.Container.getFolder(Container.java:129)
at com.swtdesigner.model.util.f.b(SourceFile:206)
at com.swtdesigner.model.util.f.a(SourceFile:158)
at com.swtdesigner.model.util.f.b(SourceFile:145)
at com.swtdesigner.model.util.f.a(SourceFile:125)
at com.swtdesigner.model.JavaInfo.b(SourceFile:611)
at com.swtdesigner.model.properties.ColorArgumentOfMethodProperty.a(SourceFile:80)
at com.swtdesigner.properties.editors.ColorPropertyEditor.a(SourceFile:30)
at com.swtdesigner.properties.editors.ColorPropertyEditor.g(SourceFile:125)
at com.swtdesigner.properties.editors.ColorPropertyEditor.f(SourceFile:166)
at com.swtdesigner.properties.table.PropertyTable.g(SourceFile:348)
at com.swtdesigner.properties.editors.ColorPropertyEditor.j(SourceFile:151)
at com.swtdesigner.properties.editors.ColorPropertyEditor$1.focusLost(SourceFile:23)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:108)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:856)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:664)
at com.swtdesigner.controls.CCombo.c(SourceFile:1146)
at com.swtdesigner.controls.o.handleEvent(SourceFile:87)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:871)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:1711)
at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:3534)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2917)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:2698)
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:603)
at org.eclipse.swt.widgets.Control.setFocus(Control.java:2003)
at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:438)
at org.eclipse.pde.internal.runtime.logview.LogView.setFocus(LogView.java:640)
at org.eclipse.ui.internal.WorkbenchPage$2.run(WorkbenchPage.java:442)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1018)
at org.eclipse.core.runtime.Platform.run(Platform.java:461)
Let me know if I can provide any further information.
-Chad