problems getting org.eclipse.gef.examples.hellogef running [message #220920] |
Tue, 08 August 2006 09:44 |
Eclipse User |
|
|
|
Originally posted by: tivadar.szemethy.netvisor.hu
Hello,
I have been trying to get Example 1 from
http://eclipsewiki.editme.com/GefExamples running.
1. I extract the source code and import it as a Project into eclipse.
When I start it ("Run Eclipse Application") this is what I see in the log:
.....
Called GefHelloEditor() constructor
Unhandled event loop exception
Reason:
loader constraints violated when linking org/eclipse/ui/IEditorPart class
2. Then, I created a new project, and manually added all JAR
dependencies and files from the example to it.
Now it starts, and I can open a file with the given extension in the new
eclipse instance, but the display area remains clean white.
Reading the code, I think I should see some rectangles in different
colors. Should I ?
I am using Eclipse 3.1.2 with GEF 3.1.1 on windows.
Thanks,
Tivadar
|
|
|
Re: problems getting org.eclipse.gef.examples.hellogef running [message #220935 is a reply to message #220920] |
Tue, 08 August 2006 11:59 |
Eclipse User |
|
|
|
Originally posted by: tivadar.szemethy.netvisor.hu
OK, I figured it out.
In HelloEditPart.createFigure() when it creates the rectange, it creates
a size (0,0) rectangle which is not shown.
Fix:
....
protected IFigure createFigure()
{
System.out.println("Called HelloEditPart.createFigure()");
RectangleFigure rectangle = new RectangleFigure();
>>>>> rectangle.setSize(20,20); <<<<<<<<<<<<< add this line
....
no doubt, it was an educative example...
T.
Tivadar Szemethy wrote:
> Hello,
>
> I have been trying to get Example 1 from
> http://eclipsewiki.editme.com/GefExamples running.
>
> 1. I extract the source code and import it as a Project into eclipse.
> When I start it ("Run Eclipse Application") this is what I see in the log:
>
> ....
> Called GefHelloEditor() constructor
> Unhandled event loop exception
> Reason:
> loader constraints violated when linking org/eclipse/ui/IEditorPart class
>
> 2. Then, I created a new project, and manually added all JAR
> dependencies and files from the example to it.
> Now it starts, and I can open a file with the given extension in the new
> eclipse instance, but the display area remains clean white.
> Reading the code, I think I should see some rectangles in different
> colors. Should I ?
>
> I am using Eclipse 3.1.2 with GEF 3.1.1 on windows.
>
> Thanks,
> Tivadar
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.27582 seconds