Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » problems getting org.eclipse.gef.examples.hellogef running
problems getting org.eclipse.gef.examples.hellogef running [message #220920] Tue, 08 August 2006 09:44 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:SVG import
Next Topic:How do i draw directed/undirected graph in SWT
Goto Forum:
  


Current Time: Thu Apr 25 06:36:37 GMT 2024

Powered by FUDForum. Page generated in 0.02924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top