Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Buliding GEF Editor with an EMF Model
Buliding GEF Editor with an EMF Model [message #212101] Sat, 18 March 2006 06:49 Go to next message
Eclipse UserFriend
Originally posted by: poonam_um.rediffmail.com

I have defined a Network-Node-Link EMF model as defined in the IBM red book. I wish to add a Graphical Editor to this model using GEF.
I tried defining the graphical Editor as explained in the Book and came across a runtime error "Unhandled event loop Exception Reason: org/eclipse/emf/common/util/Elist violates Loader Constraint."

the sequence I followed is as follows:
1.Define a plugin project
2.define the Editor Extension for it
3. define the ExampleGEFEditor.java and OverviewOutlinePage.java files
4. define the EMF Model n EditParts, EditPolicies for the respective nodes

The plugin initiates correctly but i can't initiate the Model when i run the eclipse Application.
Can anybody who has worked with EMF n GEF help me regarding this and explain me the steps that have to followed to produce a working Editor for my EMF Model as i need it urgently.
Re: Buliding GEF Editor with an EMF Model [message #212129 is a reply to message #212101] Sat, 18 March 2006 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kd3725.gmail.com

Poonam U wrote:
> I have defined a Network-Node-Link EMF model as defined in the IBM red book. I wish to add a Graphical Editor to this model using GEF.
> I tried defining the graphical Editor as explained in the Book and came across a runtime error "Unhandled event loop Exception Reason: org/eclipse/emf/common/util/Elist violates Loader Constraint."
>
> the sequence I followed is as follows:
> 1.Define a plugin project
> 2.define the Editor Extension for it
> 3. define the ExampleGEFEditor.java and OverviewOutlinePage.java files
> 4. define the EMF Model n EditParts, EditPolicies for the respective nodes
>
> The plugin initiates correctly but i can't initiate the Model when i run the eclipse Application.
> Can anybody who has worked with EMF n GEF help me regarding this and explain me the steps that have to followed to produce a working Editor for my EMF Model as i need it urgently.
Have you looked into GMF? Supposedly it will take your EMF model and
automatically convert to GEF edit parts and view. Let me know if you
get that to work and how successful it was.

kd3725
Re: Buliding GEF Editor with an EMF Model [message #212462 is a reply to message #212129] Thu, 23 March 2006 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: poonam_um.rediffmail.com

I am working on a university project, and we are specified to work with EMF and GEF to build our application. We have gone through the GMF specifications and working but our problem is we need to get the GEF part working and we can't use GMF.

We have referenced all possible help available on EMF to GEF on the web and have not managed to get the Editor working.We would be very thankful to you if you could please give us a stepped procedure that we can follow to achieve the same.
Re: Buliding GEF Editor with an EMF Model [message #212466 is a reply to message #212101] Thu, 23 March 2006 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.rohe.stud.tu-ilmenau.de

Poonam U schrieb:
> I have defined a Network-Node-Link EMF model as defined in the IBM red book. I wish to add a Graphical Editor to this model using GEF.
> I tried defining the graphical Editor as explained in the Book and came across a runtime error "Unhandled event loop Exception Reason: org/eclipse/emf/common/util/Elist violates Loader Constraint."
>
> the sequence I followed is as follows:
> 1.Define a plugin project
> 2.define the Editor Extension for it
> 3. define the ExampleGEFEditor.java and OverviewOutlinePage.java files
> 4. define the EMF Model n EditParts, EditPolicies for the respective nodes
>
> The plugin initiates correctly but i can't initiate the Model when i run the eclipse Application.
> Can anybody who has worked with EMF n GEF help me regarding this and explain me the steps that have to followed to produce a working Editor for my EMF Model as i need it urgently.

1. Create the EMF model and generate Model, Edit and Editor plug-ins.
2. Create a new plugin project for the GEF editor.
3. Create new Editor with base class AbstractGraphicalViewerWithPalette.
4. Create the Edit Part for the root model element and try to add it to
the editor with the EditPartFactory (ask more questions about details here).
5. Successive create more EditParts for your model element and add them
to the Editor.

Hint: Look at the source from www.strutsbox.de (package
de.strutsbox.internal.visualization).

Kind regards,
Daniel
Re: Buliding GEF Editor with an EMF Model [message #212573 is a reply to message #212462] Mon, 27 March 2006 09:59 Go to previous message
Eclipse UserFriend
Originally posted by: mphk_www.yahoo.com

You can try taking a look at http://eclipsewiki.editme.com/GefDescription

That is a very good tutorial and the author also posted a full working GEF
project, that can help you understand it properly.

Please let me know if you are still having problems,
Mihai

"Poonam U" <poonam_um@rediffmail.com> wrote in message
news:10165392.1143114330312.JavaMail.root@cp1.javalobby.org...
>I am working on a university project, and we are specified to work with EMF
>and GEF to build our application. We have gone through the GMF
>specifications and working but our problem is we need to get the GEF part
>working and we can't use GMF.
>
> We have referenced all possible help available on EMF to GEF on the web
> and have not managed to get the Editor working.We would be very thankful
> to you if you could please give us a stepped procedure that we can follow
> to achieve the same.
Previous Topic:Tabbed Editpart
Next Topic:GEF Popup Toolbar
Goto Forum:
  


Current Time: Fri Mar 29 01:25:43 GMT 2024

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

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

Back to the top