SWT Designer 2.0.1 Beta/Eclipse 3.0 Release/RH Lunix 9.0

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

SWT Designer 2.0.1 Beta/Eclipse 3.0 Release/RH Lunix 9.0

Postby bs » Mon Jun 28, 2004 8:07 pm

Has this version been tested on the above combination?

It is really not usable and I have made that my development platform, and I hence I stand to feedback about it.

1. A JFace Application window does not take any controls/menu/toolbar
2. If I manually create an application window and get to the designer, I can see window elements, but selecting any from the tree pane in the left, gets you bad co-ordinates
3. The Actions pane cannot add Menu Items, Menu folders, nothing.
On trying, I get
"Internal Error: The requested operation could not be performed because of an internal error. Please see the error log for more information and report the problem, including the contents of the error log, to support@swt-designer.com.
"
4. No error logs to send, for I cannot find any file ending with *.log.

All in all, should I even be using this?
I cannot proceed with any learning of this tool on this platform.

I cannot try the same on a windows box because your license does not seem to be a simultaneous use license.

thx!!!
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Similar issue?

Postby Tiran Kenja » Thu Jul 01, 2004 1:58 am

I'm running latest SWT Designer 2.0.1 beta on Eclipse 3.0 release (with release GEF and EMF versions too) on Windows. And I can't seem to open any layouts with at least ToolBars.

I'm getting the following exception (FYI: log file is in the workspace folder under .metadata and is called .log btw):
Code: Select all
java.lang.IllegalArgumentException: Argument cannot be null
   at org.eclipse.swt.SWT.error(SWT.java:2677)
   at org.eclipse.swt.SWT.error(SWT.java:2616)
   at org.eclipse.swt.SWT.error(SWT.java:2587)
   at org.eclipse.swt.widgets.Widget.error(Widget.java:381)
   at org.eclipse.swt.widgets.Widget.checkParent(Widget.java:222)
   at org.eclipse.swt.widgets.Widget.<init>(Widget.java:111)
   at org.eclipse.swt.widgets.Control.<init>(Control.java:89)
   at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:72)
   at org.eclipse.swt.widgets.Composite.<init>(Composite.java:86)
   at org.eclipse.swt.widgets.ToolBar.<init>(ToolBar.java:98)
   at com.swtdesigner.model.swt.widgets.control.complex.ToolBarInfo.createSingleControl(SourceFile:56)
   at com.swtdesigner.model.swt.widgets.control.ControlInfo.createControl(SourceFile:368)
   at com.swtdesigner.model.swt.widgets.composite.AbstractCompositeInfo.createControl(SourceFile:131)
   at com.swtdesigner.model.swt.widgets.composite.AbstractCompositeInfo.createControl(SourceFile:128)
   at com.swtdesigner.model.JavaInfo.notifyPropertyChanged(SourceFile:4242)
   at com.swtdesigner.model.swt.widgets.control.ControlInfo.notifyPropertyChanged(SourceFile:152)
   at com.swtdesigner.model.JavaInfo.notifyPropertyChanged(SourceFile:4228)
   at com.swtdesigner.model.swt.widgets.control.ControlInfo.getShotImage(SourceFile:325)
   at com.swtdesigner.gef.figure.swt.control.ControlImageFigure.paintFigure(SourceFile:55)
   at org.eclipse.draw2d.Figure.paint(Figure.java:937)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientArea(ScalableFreeformLayeredPane.java:53)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1002)
   at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:154)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.Figure.paintChildren(Figure.java:975)
   at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1007)
   at org.eclipse.draw2d.Figure.paint(Figure.java:939)
   at org.eclipse.draw2d.DeferredUpdateManager.repairDamage(DeferredUpdateManager.java:194)
   at org.eclipse.draw2d.DeferredUpdateManager.performUpdate(DeferredUpdateManager.java:134)
   at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:57)
   at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
   at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
   at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2749)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2434)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
   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:324)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
   at org.eclipse.core.launcher.Main.run(Main.java:644)
   at org.eclipse.core.launcher.Main.main(Main.java:628)
Tiran Kenja
 
Posts: 3
Joined: Tue Mar 30, 2004 12:31 am

Re: Similar issue?

Postby Eric Clayberg » Thu Jul 01, 2004 9:30 pm

Tiran Kenja wrote:I'm running latest SWT Designer 2.0.1 beta on Eclipse 3.0 release (with release GEF and EMF versions too) on Windows. And I can't seem to open any layouts with at least ToolBars.

This is completely unrelated (you are using Windows, not Linux).

Did you create these windows using Designer? We have lots of examples using ToolBars that work just fine, so I will need you to send your non-working example to support@swt-designer.com for analysis.
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

Re: Similar issue?

Postby Tiran Kenja » Fri Jul 02, 2004 12:54 am

Eric Clayberg wrote:This is completely unrelated (you are using Windows, not Linux).

Did you create these windows using Designer? We have lots of examples using ToolBars that work just fine, so I will need you to send your non-working example to support@swt-designer.com for analysis.


Well. It sounds like the same kind of problem. But yes. I created all of the GUI code with designer.
Tiran Kenja
 
Posts: 3
Joined: Tue Mar 30, 2004 12:31 am

Re: Similar issue?

Postby Eric Clayberg » Fri Jul 02, 2004 5:38 am

Tiran Kenja wrote:It sounds like the same kind of problem.

The original problem described in this thread is a Linux-only issue that has nothing to do with SWT ToolBars. The only thing I see in common is that you encountered an exception.

Tiran Kenja wrote:I created all of the GUI code with designer.

Please send your non-working example to support@swt-designer.com for analysis.
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

Re: SWT Designer 2.0.1 Beta/Eclipse 3.0 Release/RH Lunix 9.0

Postby Eric Clayberg » Fri Jul 02, 2004 1:16 pm

bs wrote:Has this version been tested on the above combination?

Yes. There is also a new 2004.07.02 build that should support Linux even better.

bs wrote:2. If I manually create an application window and get to the designer, I can see window elements, but selecting any from the tree pane in the left, gets you bad co-ordinates

Try this in the new build.

bs wrote:3. The Actions pane cannot add Menu Items, Menu folders, nothing. On trying, I get "Internal Error: The requested operation could not be performed because of an internal error. Please see the error log for more information and report the problem, including the contents of the error log, to support@swt-designer.com. 4. No error logs to send, for I cannot find any file ending with *.log.

The standard Eclipse error log is in your workspace/.metadata diretcory. I would need to see the recorded exception in order to help you further. I would also like to see the source for the class you were editing.
Last edited by Eric Clayberg on Fri Jul 02, 2004 3:30 pm, edited 1 time in total.
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 bs » Fri Jul 02, 2004 1:34 pm

I will do that.

During error, I will be glad to upload the error file, now that it gets created.

thx!
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Postby bs » Fri Jul 02, 2004 5:51 pm

Ok,
I create a JFace application window and try to add menu actions.
Sample source and trace below.
+++++++source
public class M2 extends ApplicationWindow {

public M2() {
super(null);
createActions();
addToolBar(SWT.NONE);
addMenuBar();
}

protected Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
container.setLayout(new GridLayout());
//
return container;
}

private void createActions() {
}

protected MenuManager createMenuManager() {
MenuManager result = new MenuManager("menu");
return result;
}

protected ToolBarManager createToolBarManager(int arg) {
ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT | SWT.WRAP);
return toolBarManager;
}

public void run() {
open();
Display display = Display.getCurrent();
Shell shell = getShell();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
}

public static void main(String args[]) {
Display display = new Display();
M2 window = new M2();
window.run();
}

protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText("New Application");
}
}

++++++trace
!ENTRY com.swtdesigner 4 4 Jul 02, 2004 21:46:03.690
!MESSAGE Designer internal error: null
!STACK 0
java.lang.NullPointerException
at com.swtdesigner.model.JavaInfo.ensureLocalVariable(SourceFile:1418)
at com.swtdesigner.model.JavaInfo.ensureVariable(SourceFile:1369)
at com.swtdesigner.model.JavaInfo.ensureVariable(SourceFile:1337)
at com.swtdesigner.model.swt.jface.advanced.ActionsComposite.handleAddAction(SourceFile:824)
at com.swtdesigner.model.swt.jface.advanced.j.widgetSelected(SourceFile:262)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2595)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2298)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Postby bs » Fri Jul 02, 2004 5:52 pm

Try the same as above by adding a SashForm to the window.
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Postby Eric Clayberg » Sat Jul 03, 2004 3:15 am

bs wrote:I create a JFace application window and try to add menu actions.

I tried your exact example (as posted here) and did not have a problem with it. I was able to add actions to both the menu and toolbar and add widgets to the window (SashForms and others) without any trouble.

What exact version (build date and file name) of Designer are you using?

What is the exact sequence of steps you took to run into this problem?
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 bs » Sat Jul 03, 2004 9:42 am

Ok,
I do not see a standard "version" file to cut and paste, but it is the latest (July 02).

Steps:
1. Create a new SWTDesigner/JFace application
2. This file is the code that gets generated
3. Open with Designer
4. Click on Design tab
5. Select Actions
6. Click on + sign to add an item

I blew everything off, and have installed eclipse/swt all afresh.
I thougt my trace would be of help...
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Postby Eric Clayberg » Sat Jul 03, 2004 11:48 am

bs wrote:Ok,
I do not see a standard "version" file to cut and paste, but it is the latest (July 02).

Steps:
1. Create a new SWTDesigner/JFace application
2. This file is the code that gets generated
3. Open with Designer
4. Click on Design tab
5. Select Actions
6. Click on + sign to add an item

I blew everything off, and have installed eclipse/swt all afresh.
I thougt my trace would be of help...

I tried that and it worked fine. What code generatoin options do you have turned on/off. Does it make any difference, if you change those settings (I am suspecting that this might only happen in conjunction with a specific combination of settings).
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 bs » Sat Jul 03, 2004 4:15 pm

It is stock. If there is a config file for it, I can paste it here.

As an aside, Eclipse 3.0 on my platform is equally cranky.
What is a recommended RAM config?

If I have few xterms, Eclipse and a few Mozilla windows,
I get major GTK crashes... I unchecked "Build Automatically'
and still the same.

If this keeps happening, I am going back to Emacs :-)
(I still like the way SWT-Designer can parse any format
thrown at it)
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Postby Eric Clayberg » Sat Jul 03, 2004 6:03 pm

bs wrote:It is stock. If there is a config file for it, I can paste it here.

The code gen preferences are on the "Designer > Code Generation" preference page. You can post a screen shot of that page, if you like.

Does this problem occur with any JFace Application window you create? Does it happen with other window types? E.g., SWT Applications, SWT Composites, JFace Dialogs & Wizards, etc.

bs wrote:As an aside, Eclipse 3.0 on my platform is equally cranky.
What is a recommended RAM config?

I normally run Eclipse in 256MB, but it will run in far less.

bs wrote:I still like the way SWT-Designer can parse any format
thrown at it

At least we have that. ;-)
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 bs » Sun Jul 04, 2004 4:53 pm

Here is a trace that might give a clue:
New project to boot... now VM going down
Tried the same
1. New JFace Application Window
2. Design
3. Action
4. Add Menu

I do not know how to paste here, or have a web site to link to,
so, here are my preferences in ascii:

CodeGeneration
Component Creation
1 - Checked
2 - Checked
3 - UnChec
4 - UnCHe
Decl Style
Radio 1 Selected
Make dec. final checked
Event Handlers
None checked

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x40613D54
Function=(null)+0x40613D54
Library=/usr/local/j2sdk1.4.2_04/jre/lib/i386/libverify.so

NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.


Current Java thread:
at com.swtdesigner.properties.table.PropertyTable.paintSingleProperty(SourceFile:595)
at com.swtdesigner.properties.table.PropertyTable.paintProperties(SourceFile:565)
at com.swtdesigner.properties.table.PropertyTable.doPaint(SourceFile:629)
at com.swtdesigner.properties.table.PropertyTable$3.paintControl(SourceFile:82)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:82)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:954)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:978)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:963)
at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.java:1760)
at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite.java:413)
at org.eclipse.swt.widgets.Canvas.gtk_expose_event(Canvas.java:106)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1203)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3098)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(Native Method)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:879)
at org.eclipse.swt.internal.gtk.OS.gtk_main_iteration(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2297)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
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:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
at org.eclipse.core.launcher.Main.run(Main.java:644)
at org.eclipse.core.launcher.Main.main(Main.java:628)
bs
 
Posts: 16
Joined: Mon Jun 28, 2004 7:57 pm
Location: boston

Next

Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest