Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Standalone version of GMF diagram editor and output
Standalone version of GMF diagram editor and output [message #119859] Tue, 17 April 2007 05:32 Go to next message
Eclipse UserFriend
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 #119872 is a reply to message #119859] Tue, 17 April 2007 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think you are looking for Rich Client Platform(RCP) of your GMF editor.
There is a tutorial for the first steps:
http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_4

If you get this, you can later make a product file of this RCP and than
export it as an eclipse product.

Try this. ;)

If there are any problems, please write here again.

Regards,
Jens

Stu schrieb:
> 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 #119923 is a reply to message #119872] Tue, 17 April 2007 06:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

Nice and easy (so far) thanks for that pointer.

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 ?

Is there a way to centralise some of the code used or is it a totally
difference GMF code generation base?


"Jens Bachmann" <jens-bachmann@gmx.de> wrote in message
news:f024k5$8d3$1@build.eclipse.org...
> Hi,
>
> I think you are looking for Rich Client Platform(RCP) of your GMF editor.
> There is a tutorial for the first steps:
> http://wiki.eclipse.org/index.php/GMF_Tutorial_Part_4
>
> If you get this, you can later make a product file of this RCP and than
> export it as an eclipse product.
>
> Try this. ;)
>
> If there are any problems, please write here again.
>
> Regards,
> Jens
>
> Stu schrieb:
>> 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 #119959 is a reply to message #119923] Tue, 17 April 2007 06:49 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Standalone version of GMF diagram editor and output [message #120069 is a reply to message #119959] Wed, 18 April 2007 01:25 Go to previous message
Eclipse UserFriend
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
Previous Topic:Invoke shortcut actio from editpart
Next Topic:Confirmation Pop up
Goto Forum:
  


Current Time: Thu May 08 14:13:36 EDT 2025

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

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

Back to the top