VE 1.1 and SWT [message #96149] |
Tue, 05 July 2005 11:20  |
Eclipse User |
|
|
|
Originally posted by: eric.debienne.atosorigin.com
Does VE 1.1 support SWT.
I've just installed VE 1.1 on eclipse 3.1.
I can create a new visual class with SWT support.
It has générated SWT code.
But with the palette, I can only add Swing or AWT component.
How can i use VE to draw an SWT interface?
regards
|
|
|
|
|
|
|
|
|
|
|
|
Re: VE 1.1 and SWT [message #96486 is a reply to message #96426] |
Thu, 07 July 2005 09:24  |
Eclipse User |
|
|
|
Originally posted by: eric.debienne.atosorigin.com
OK
That works now.
I've just installed GEF-ALL-3.1RC1.zip in replacement of
GEF-runtime-I20050630.zip
Thanks for your help.
Eric
|
|
|
Re: VE 1.1 and SWT [message #608964 is a reply to message #96149] |
Tue, 05 July 2005 13:19  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
How did you create the SWT class? Did you use the New->Visual Class
wizard? Do you Eclipse SDK installed? (The Eclipse runtime in not
enough). Exactly what drivers of Eclipse, VE, GEF, and EMF do you have
installed? What operating system is this on?
--
Thanks,
Rich Kulp
|
|
|
Re: VE 1.1 and SWT [message #608967 is a reply to message #96222] |
Wed, 06 July 2005 04:52  |
Eclipse User |
|
|
|
I used New->Visual Class wizard to create the swt class.
my OS is Win XP SP2
For the eclipse version, the about windows is :
Eclipse SDK
Version: 3.1.0
Build id: I20050627-1435
EMF Service Data Objects (SDO)
Version: 2.1.0.I200506230200
Build id: 200506230200
Eclipse Graphical Editing Framework Developer Resources
Version: 3.1
Build id: 200506250848
Visual Editor
Version: 1.1.0
Build id: 200506101701
|
|
|
Re: VE 1.1 and SWT [message #608968 is a reply to message #96266] |
Wed, 06 July 2005 10:15  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
Try stepping up to VE I20050630. That version was compiled against the
final 3.1 version of Eclipse.
Also, check the .log file. Are there any errors in there?
--
Thanks,
Rich Kulp
|
|
|
Re: VE 1.1 and SWT [message #608972 is a reply to message #96280] |
Wed, 06 July 2005 12:41  |
Eclipse User |
|
|
|
I've change the version.
The palette can't be drawn now.
In the logFile, I've got the following error:
!ENTRY org.eclipse.ui 4 4 2005-07-06 18:35:32.179
!MESSAGE Unhandled event loop exception
!ENTRY org.eclipse.ui 4 0 2005-07-06 18:35:32.179
!MESSAGE org/eclipse/ve/internal/cde/palette/Root
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/ve/internal/cde/palette/Root
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:162)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
....
|
|
|
Re: VE 1.1 and SWT [message #608973 is a reply to message #96337] |
Wed, 06 July 2005 13:08  |
Eclipse User |
|
|
|
OK, I had a conflict version. Sorry for the last message.
But I still can't get SWT Widget in the palette.
And I've got the following log:
!ENTRY org.eclipse.ve.java.core 2 0 2005-07-06 19:06:58.437
!MESSAGE
+++ Warning +++: Wed Jul 06 19:06:58 CEST 2005 Bad Object:
org.eclipse.swt.widgets.Shell: sShell
Regards
|
|
|
Re: VE 1.1 and SWT [message #608974 is a reply to message #96352] |
Wed, 06 July 2005 13:34  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
There should be more than that in the log. IS the SWT Container in your
classpath? Or did you just add the swt.jar by hand? It only works if you
use the SWT Library from the java build path Libraries page using "Add
Library" button (or the visual class wizard should do that for you).
Eric wrote:
> OK, I had a conflict version. Sorry for the last message.
>
> But I still can't get SWT Widget in the palette.
>
> And I've got the following log:
>
> !ENTRY org.eclipse.ve.java.core 2 0 2005-07-06 19:06:58.437
> !MESSAGE +++ Warning +++: Wed Jul 06 19:06:58 CEST 2005 Bad Object:
> org.eclipse.swt.widgets.Shell: sShell
>
> Regards
>
--
Thanks,
Rich Kulp
|
|
|
Re: VE 1.1 and SWT [message #608975 is a reply to message #96367] |
Wed, 06 July 2005 13:57  |
Eclipse User |
|
|
|
OK, I had added the swt jars, but not the library.
Now, I've the swt widget, but when I try to add a simple widget like a
label, I've got the following error:
!ENTRY org.eclipse.ve.cde 2 0 2005-07-06 19:52:36.285
!MESSAGE
!STACK 0
java.lang.ClassCastException:
org.eclipse.ve.internal.java.core.BeanProxyAdapter
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.getVisu alComponent(ControlGraphicalEditPart.java:235)
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.activat e(ControlGraphicalEditPart.java:109)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart.access$0(CompositionComponentsGraphicalEditPart .java:1)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart$2.doRun(CompositionComponentsGraphicalEditPart. java:82)
at
org.eclipse.ve.internal.cde.core.EditPartRunnable.run(EditPa rtRunnable.java:43)
...
!ENTRY org.eclipse.ve.cde 4 2 2005-07-06 19:54:47.615
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.ve.cde".
!STACK 0
java.lang.ClassCastException:
org.eclipse.ve.internal.java.core.BeanProxyAdapter
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.getVisu alComponent(ControlGraphicalEditPart.java:235)
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.activat e(ControlGraphicalEditPart.java:109)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart.access$0(CompositionComponentsGraphicalEditPart .java:1)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart$2.doRun(CompositionComponentsGraphicalEditPart. java:82)
at
org.eclipse.ve.internal.cde.core.EditPartRunnable.run(EditPa rtRunnable.java:43)
at
org.eclipse.ve.internal.cde.core.ModelChangeController$1$Saf eRunnable.run(ModelChangeController.java:329)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
Th widget is not displayed by the plug-in and the generated code has an
error (The Label constructor has no argument)
Thanks for your help
Eric
|
|
|
Re: VE 1.1 and SWT [message #608976 is a reply to message #96380] |
Wed, 06 July 2005 14:39  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
You have to use the library, NOT the jar. It will not work if you use
the jar.
--
Thanks,
Rich Kulp
|
|
|
Re: VE 1.1 and SWT [message #608978 is a reply to message #96396] |
Thu, 07 July 2005 04:04  |
Eclipse User |
|
|
|
OK, but I still have the same error
!ENTRY org.eclipse.ve.cde 2 0 2005-07-07 09:55:03.859
!MESSAGE
!STACK 0
java.lang.ClassCastException:
org.eclipse.ve.internal.java.core.BeanProxyAdapter
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.getVisu alComponent(ControlGraphicalEditPart.java:235)
at
org.eclipse.ve.internal.swt.ControlGraphicalEditPart.activat e(ControlGraphicalEditPart.java:109)
at
org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at
org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:734)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart.access$0(CompositionComponentsGraphicalEditPart .java:1)
at
org.eclipse.ve.internal.java.core.CompositionComponentsGraph icalEditPart$2.doRun(CompositionComponentsGraphicalEditPart. java:82)
at
org.eclipse.ve.internal.cde.core.EditPartRunnable.run(EditPa rtRunnable.java:43)
at
org.eclipse.ve.internal.cde.core.ModelChangeController$1$Saf eRunnable.run(ModelChangeController.java:329)
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
...
And the generated code has an error:
private Label getMonLabel1() {
if (MonLabel1 == null) {
MonLabel1 = new Label();
MonLabel1.setSize(new org.eclipse.swt.graphics.Point(265,50));
MonLabel1.setText("Label");
}
return MonLabel1;
}
The constructor of Label Object has no parameter. It should be something
like
MonLabel1 = new Label(sShell, 0);
regards
|
|
|
|
Powered by
FUDForum. Page generated in 0.07034 seconds