Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc) » [EMFT] Getting started(but how?)
[EMFT] Getting started [message #494710] |
Mon, 02 November 2009 09:58 |
Thomas Messages: 79 Registered: October 2009 |
Member |
|
|
hi,
i am new in emf technologies, so i don´t know where to start. i got some basic introductions, i did some tuts and examples.
Now i want to start to create an GMF Editor. This gmf editor has 1 view, which i use to draw some basic shapes and export this as an svg Image.
http://dev.eclipse.org/newslists/news.eclipse.modeling.gmf/m sg02104.html
In this case there is no semantic model here. But i want to display some Properties like Position, Color, Border and so on.
Are there some EMF technologies what i am able to use, like EEF for my property views?
thanks,
thomas
[Updated on: Mon, 02 November 2009 10:38] Report message to a moderator
|
|
| |
Re: [EMFT] Getting started [message #495019 is a reply to message #495009] |
Tue, 03 November 2009 14:43 |
Nathalie Lepine Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hi,
You can use EEF with GMF tabbed properties views. With GMF 1, you just
have to check "GMF specific properties views" in the Gen Edition Context
properties in the eefgen file, with GMF 2, check "Generic properties
views descriptors" and set the "descriptors contributorID", the
contributor ID of the properties views.
Cheers,
Nathalie Lépine - nathalie.lepine@obeo.fr
Ed Merks a écrit :
> Thomas,
>
> I'm not sure how EEF interacts with the tabbed properties view used by
> GMF... Have you followed one of the GMF tutorials yet?
>
>
> Thomas wrote:
>> hi,
>>
>> i am new in emf technologies, so i don´t know where to start. i got
>> some basic introductions, i did some tuts and examples.
>>
>> Now i want to start to create an GMF Editor. This gmf editor has 1
>> view, which i use to draw some basic shapes and export this as an svg
>> Image. Are there some EMF technologies what i am able to use, like EEF
>> for my property views?
>>
>> thanks,
>>
>> thomas
>>
|
|
| | |
Re: [EMFT] Getting started [message #621553 is a reply to message #495009] |
Tue, 03 November 2009 14:43 |
Nathalie Lepine Messages: 28 Registered: July 2009 |
Junior Member |
|
|
Hi,
You can use EEF with GMF tabbed properties views. With GMF 1, you just
have to check "GMF specific properties views" in the Gen Edition Context
properties in the eefgen file, with GMF 2, check "Generic properties
views descriptors" and set the "descriptors contributorID", the
contributor ID of the properties views.
Cheers,
Nathalie Lépine - nathalie.lepine@obeo.fr
Ed Merks a écrit :
> Thomas,
>
> I'm not sure how EEF interacts with the tabbed properties view used by
> GMF... Have you followed one of the GMF tutorials yet?
>
>
> Thomas wrote:
>> hi,
>>
>> i am new in emf technologies, so i don´t know where to start. i got
>> some basic introductions, i did some tuts and examples.
>>
>> Now i want to start to create an GMF Editor. This gmf editor has 1
>> view, which i use to draw some basic shapes and export this as an svg
>> Image. Are there some EMF technologies what i am able to use, like EEF
>> for my property views?
>>
>> thanks,
>>
>> thomas
>>
|
|
| | |
Re: [EMFT] Getting started [message #665290 is a reply to message #665027] |
Thu, 14 April 2011 07:41 |
Goulwen Le Fur Messages: 125 Registered: July 2009 |
Senior Member |
|
|
Hi Stanislav,
Le 13/04/2011 00:30, Stanislav Ivanov a écrit :
> Hi,
>
> i generated the eef code with "GMF specific properties views"
> however, what should be done next? how it should be incorporated with
> the generated .diagram project? I tried to replace the code generated in
> the xxx_properties.plugin.xml with the sections corresponding to them in
> the diagram's plugin.xml and changed the contributorId, but I got an
> exception, so I am almost sure i did something wrong.
I think you use the 0.8 version of EEF and the generated GMF specific
properties views was experimental.
Can you try try with the 0.9 version of EEF avaiable here :
http://download.eclipse.org/modeling/emft/eef/updates/milest ones/0.9
In this version you haven't difference between standard generation and
GMF generation. The only think you have to do is to ensure that the
descriptor contributor ID (attribute of you Gen Edition Context in the
eefgen model) is the same that your GMF tabbed property sheet
contributor ID.
> If you know if there is a tutorial for this one as the one now existing,
> but for GMF, it will be great. Thanks a lot !
If you want to keep the 0.8 version can you give me the entire stack
trace please ?
Regards,
--
Goulwen Le Fur - goulwen.lefur@obeo.fr
|
|
| |
Re: [EMFT] Getting started [message #665656 is a reply to message #665400] |
Fri, 15 April 2011 12:01 |
Goulwen Le Fur Messages: 125 Registered: July 2009 |
Senior Member |
|
|
Hi stanislav,
It seems that you generate your properties code with EEF 0.9 but you
want to use it with a platform on EEF 0.8. It's the only reason why you
can have such a bug.
Regards,
--
Goulwen
Le 14/04/2011 16:30, Stanislav Ivanov a écrit :
> Hi Goulwen ,
>
> thank you
> the previous time I was indeed using 0.8 version and I was getting the
> following error:
>
> !ENTRY org.eclipse.ui.views.properties.tabbed 4 2 2011-04-13 00:51:25.750
> !MESSAGE Problems occurred when invoking code from plug-in:
> "org.eclipse.ui.views.properties.tabbed".
> !STACK 0
> java.lang.NullPointerException
> at se.kth.ics.eat.abstractmodeler.diagram.prm.properties.PrmFor
> malismBasePropertySection.setInput(PrmFormalismBasePropertyS
> ection.java:90)
>
> Now I updated to 0.9 and I am getting an error on generation. In the
> org.blabla.properties package generated, it generates the following line:
>
> IPropertiesEditionProvider provider =
> PropertiesEditionComponentService.getInstance().getProvider( eObject);
>
> and says those cannot be resolved as types. I saw that they are removed
> from the 0.9 implementation,so I am really surprised how come it
> generates that code. Actually, at the first generation it says that
> there is a problem and the classes from this package are out of sync
> with the file system. Please,give me advise what to do next.
>
> Regards, Stanislav
>
>
>
>
|
|
| |
Re: [EMFT] Getting started [message #666109 is a reply to message #665668] |
Tue, 19 April 2011 07:22 |
Goulwen Le Fur Messages: 125 Registered: July 2009 |
Senior Member |
|
|
Ok, I see the problem, the "GMF specific views" option is deprecated now
:) It generates an invalid code. Just uncheck this option, regenerate
and use the standard "PropertiesEditionsSection" in your GMF modeler.
Regards,
--
Goulwen Le Fur - goulwen.lefur@obeo.fr
Le 15/04/2011 14:40, Stanislav Ivanov a écrit :
> Hi Goulwen,
>
> I am not quite sure if you understand what happened in my case.
> I removed the old EEF 0.8 and installed the 0.9 version (Helios, GMF 2.1)
> Then in a new workspace i added the *.genmodel file and generated the
> code with only the "GMF specific views" option, added the contributorId
> and generated the code. For generation I am sure it uses 0.9 as it goes
> times faster than the 0.8 generation. Then the generated files in the
> *.properties files contain all the same error. I tried to generate them
> for the normal editor project and they work perfect.
> I also put into comments the errorous code and then I saw that GMF run
> those files.
>
> Is EEF dependant on the EMF version used to generate the *.genmodel?
> (not probable, but still)
> Or maybe for the GMF generation I need to use something more?
>
> Thank you very much again,
>
> Regards, Stanislav
|
|
| | |
Goto Forum:
Current Time: Sat May 04 08:25:40 GMT 2024
Powered by FUDForum. Page generated in 0.04983 seconds
|