Standalone version of GMF diagram editor and output [message #119859] |
Tue, 17 April 2007 05:32  |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Ok I've finished my version 1 of my diagram.
I'd like to create a standalone version running out of eclipse - is this
possible.
I've done a few web searches on GMF standalone versions but not found much.
First is a standalone version possible ?
Second where to start and what to look out for.
Thanks for anything,
Stu
|
|
|
|
|
|
Re: Standalone version of GMF diagram editor and output [message #120069 is a reply to message #119959] |
Wed, 18 April 2007 01:25  |
Eclipse User |
|
|
|
Originally posted by: evaandoli.dodo.com.au
Hi,
Maybe some can tell me why does the tutorial 4 suggest:-
"First, let's obtain our same mindmap.xsd model from the main tutorial as
the input. Copy this file to your project's model folder.
Using the dashboard view's 'Select' link in the Domain Model section, locate
your mindmap.xsd file. To produce an .ecore and a .genmodel from the xsd,
select the 'Derive' link between Domain Model and Domain Gen Model. This
will launch the New EMF Model wizard. Work your way through the dialogs and
accept the defaults to Finish. "
Why can you not just re-use the same .ecore file ?
As the setting for the RCP generation is in the genmodel. So in theory you
could copy of the same genmodel and change that one attribute.
I just wondered if there is something I missed or is the tutorial just going
around the sun to meet the moon :-)
Stu
"Jens Bachmann" <jens-bachmann@gmx.de> wrote in message
news:f028lh$8d3$4@build.eclipse.org...
> Hi,
>
> > Nice and easy (so far) thanks for that pointer.
> >
> No problem!
>
> > With all the * generate NOT methods I had in my plugin version do I
> have to find and copy these over to the new RCP version ?
> >
> I don't know exactly how to get, but I also copy my own implemented
> methods in the RCP code. This works for me. But if your own code gets
> bigger, you have to do a lot of copying from different classes. It's a bit
> annoying.
> Perhaps somebody else has an idea how to prevent this?
>
> > Is there a way to centralise some of the code used or is it a totally
> difference GMF code generation base?
> >
>
> I know there are some differences between the two code generations (so you
> should not generate the rcp code over your plugin code because you get a
> lot of errors).
>
> Regards,
> Jens
|
|
|
Powered by
FUDForum. Page generated in 0.04733 seconds