GEF in combination with ECore [message #246196] |
Fri, 14 November 2008 07:55  |
Eclipse User |
|
|
|
Originally posted by: Christian.Ries.immobilienscout24.de
Hey folks!
I will use a ECore file structure with GEF. I have read some tutorials about
using emf with gef, but I think these tutorials aren't in my correct focus.
They do not explain how I can use a ECore file wth pure java, or have I
overlook something?
My plan is:
- read in a ecore file
- create a rcp editor with gef
- display the visuals for the artifacts defined in the ecore file
- create some actions for the visuals
Have you a small code example of how I can load ecore files and metamodell
files?
Have you good ressources for really basic usage of GEF actions/commands?
The Javadoc files are not really helpfull. In relation to other project
documentation miss I some coherences between the classes. Have you a class
reference image/page for GEF, which show all inherits?
Thx
Christian
|
|
|
|
|
Re: GEF in combination with ECore [message #246240 is a reply to message #246216] |
Mon, 17 November 2008 10:42   |
Eclipse User |
|
|
|
Hi Christian,
There is plenty of documentation on GMF. I would suggest starting with the
GMF mindmap tutorial http://wiki.eclipse.org/index.php/GMF_Tutorial
If you get stuck with anything, post to the GMF newsgroup for help.
Cheers...
Anthony
"Christian Ries" <Christian.Ries@immobilienscout24.de> wrote in message
news:gfrqou$jht$1@build.eclipse.org...
> Unfortunately, Yes.
>
> I think it is really comlex and I can't find a easy introduction to it.
> There are some tutorials but they are not working at my machine or there
> is no readme like "how to start...". The documentation is fairly bad,
> isn't it?
>
> I used amongst others this tutorial:
> http://www-128.ibm.com/developerworks/opensource/library/os- ecl-gmf/
>
> But when I use my ecore file I get always the same error message and I can
> not resolve this mistake. Is it a mistake?
>
> Error message: The required feature 'diagramLabel' of 'Feature Labal
> Mapping false' must be set
>
> What does it mean?
>
> I have a lot of questions:
>
> When I create a modeling graph (*.gmfgraph) and I choose the ecore file I
> get a list of diagram elements:
>
> - Condition
> - Element
> - ExcludesLink
> - ImportsLink
> - SimpleAssociation
> - Webapplication
>
> I can select of them, but which one should I select? I have no idea. In
> the next step I can choose some domain model elements. I also don't know
> which should I select.
>
> Next step, when I will create a tooling graph (*.gmftool) same questions.
>
> Next step, "guide mapping model creation":
>
> Should I create a new model?
> What is happing when I create one or when not? Differences?
> On the mapping wizard page, which parts are nodes or links?
>
> I can't find tutorials or help pages with answers of all these questions.
> Can someone help me?
>
> Christian
>
>> Is there a reason you aren't using GMF?
>>
>> http://www.eclipse.org/gmf
>>
>> Cheers,
>>
>> ~ Chris
>
>
|
|
|
Re: GEF in combination with ECore [message #246266 is a reply to message #246240] |
Mon, 17 November 2008 19:06   |
Eclipse User |
|
|
|
You know, I'm thinking that it actually is a pretty reasonable thing to
want to do. GMF is really heavy-weight. For anything but a full-fledged
diagram editor with many types of entities and connections, the
learning curve is large and it is difficult to accomplish relativly
simple things. Plus GMF has some issues that make it not ideal for
interactive model exploration. It would be nice to have the possiblity
of a simple ecore editor. But it would be a significant amount of work
and you would still have to have some sort of mapping defined between
the ecore model and GMF.
FWIW, I have built a simple editor for an ecore model using Zest and
that has worked very well for the most part, but that was using purely
a one-off API approach. I know that the oAW guys have played around
with some Zest implementations of arbitrary ecore models as well.
On 2008-11-17 07:42:50 -0800, "Anthony Hunter" <anthonyh@ca.ibm.com> said:
> Hi Christian,
>
> There is plenty of documentation on GMF. I would suggest starting with the
> GMF mindmap tutorial http://wiki.eclipse.org/index.php/GMF_Tutorial
>
> If you get stuck with anything, post to the GMF newsgroup for help.
>
> Cheers...
> Anthony
>
> "Christian Ries" <Christian.Ries@immobilienscout24.de> wrote in message
> news:gfrqou$jht$1@build.eclipse.org...
>> Unfortunately, Yes.
>>
>> I think it is really comlex and I can't find a easy introduction to it.
>> There are some tutorials but they are not working at my machine or there
>> is no readme like "how to start...". The documentation is fairly bad,
>> isn't it?
>>
>> I used amongst others this tutorial:
>> http://www-128.ibm.com/developerworks/opensource/library/os- ecl-gmf/
>>
>> But when I use my ecore file I get always the same error message and I can
>> not resolve this mistake. Is it a mistake?
>>
>> Error message: The required feature 'diagramLabel' of 'Feature Labal
>> Mapping false' must be set
>>
>> What does it mean?
>>
>> I have a lot of questions:
>>
>> When I create a modeling graph (*.gmfgraph) and I choose the ecore file I
>> get a list of diagram elements:
>>
>> - Condition
>> - Element
>> - ExcludesLink
>> - ImportsLink
>> - SimpleAssociation
>> - Webapplication
>>
>> I can select of them, but which one should I select? I have no idea. In
>> the next step I can choose some domain model elements. I also don't know
>> which should I select.
>>
>> Next step, when I will create a tooling graph (*.gmftool) same questions.
>>
>> Next step, "guide mapping model creation":
>>
>> Should I create a new model?
>> What is happing when I create one or when not? Differences?
>> On the mapping wizard page, which parts are nodes or links?
>>
>> I can't find tutorials or help pages with answers of all these questions.
>> Can someone help me?
>>
>> Christian
>>
>>> Is there a reason you aren't using GMF?
>>>
>>> http://www.eclipse.org/gmf
>>>
>>> Cheers,
>>>
>>> ~ Chris
|
|
|
Re: GEF in combination with ECore [message #246330 is a reply to message #246196] |
Sun, 23 November 2008 05:20  |
Eclipse User |
|
|
|
Originally posted by: omoises-nospam.nordnet.fr
Hi Christian,
You could have a look at wazaabi 2.0 project (EPL).
It uses a live emf model and renders SWT GUI.
Only few abstract classes of GEF are used (AbstractEditPart,
EditPartViewer ...) but I think it could help you a lot.
the link is http://wiki2.wazaabi.org
update site : http://u2.wazaabi.org/
svn : http://svn.wazaabi.org/repos/w2/trunk/
Feel free to ask me questions if you need.
Regards,
Christian Ries a écrit :
> Hey folks!
> I will use a ECore file structure with GEF. I have read some tutorials about
> using emf with gef, but I think these tutorials aren't in my correct focus.
> They do not explain how I can use a ECore file wth pure java, or have I
> overlook something?
>
> My plan is:
>
> - read in a ecore file
> - create a rcp editor with gef
> - display the visuals for the artifacts defined in the ecore file
> - create some actions for the visuals
>
> Have you a small code example of how I can load ecore files and metamodell
> files?
> Have you good ressources for really basic usage of GEF actions/commands?
>
> The Javadoc files are not really helpfull. In relation to other project
> documentation miss I some coherences between the classes. Have you a class
> reference image/page for GEF, which show all inherits?
>
> Thx
> Christian
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04512 seconds