Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFT] Getting started(but how?)
[EMFT] Getting started [message #494710] Mon, 02 November 2009 09:58 Go to next message
Thomas is currently offline ThomasFriend
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 #495009 is a reply to message #494710] Tue, 03 November 2009 13:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [EMFT] Getting started [message #495019 is a reply to message #495009] Tue, 03 November 2009 14:43 Go to previous messageGo to next message
Nathalie Lepine is currently offline Nathalie LepineFriend
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 #495042 is a reply to message #494710] Tue, 03 November 2009 15:54 Go to previous messageGo to next message
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
i followed some tutorials, but i think its too early for me to use eef! But there is 1 Question,

I need to export my editor (just 1 with simple shapes) as a svg or pdf file. if right-click on my editor there is a context menu called "File" -> "Save as Image". I need this action (or whatever it is) also in my Menu "File"->"Save as Image" just for a better usability.

Thanks for the reply
Thomas
Re: [EMFT] Getting started [message #621550 is a reply to message #494710] Tue, 03 November 2009 13:56 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [EMFT] Getting started [message #621553 is a reply to message #495009] Tue, 03 November 2009 14:43 Go to previous messageGo to next message
Nathalie Lepine is currently offline Nathalie LepineFriend
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 #621554 is a reply to message #494710] Tue, 03 November 2009 15:54 Go to previous messageGo to next message
Thomas is currently offline ThomasFriend
Messages: 79
Registered: October 2009
Member
i followed some tutorials, but i think its too early for me to use eef! But there is 1 Question,

I need to export my editor (just 1 with simple shapes) as a svg or pdf file. if right-click on my editor there is a context menu called "File" -> "Save as Image". I need this action (or whatever it is) also in my Menu "File"->"Save as Image" just for a better usability.

Thanks for the reply
Thomas
Re: [EMFT] Getting started [message #665027 is a reply to message #621553] Tue, 12 April 2011 22:30 Go to previous messageGo to next message
Stanislav Ivanov is currently offline Stanislav IvanovFriend
Messages: 4
Registered: April 2011
Junior Member
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.
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 !
Re: [EMFT] Getting started [message #665290 is a reply to message #665027] Thu, 14 April 2011 07:41 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
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 #665400 is a reply to message #665290] Thu, 14 April 2011 14:30 Go to previous messageGo to next message
Stanislav Ivanov is currently offline Stanislav IvanovFriend
Messages: 4
Registered: April 2011
Junior Member
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 #665656 is a reply to message #665400] Fri, 15 April 2011 12:01 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
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 #665668 is a reply to message #665656] Fri, 15 April 2011 12:40 Go to previous messageGo to next message
Stanislav Ivanov is currently offline Stanislav IvanovFriend
Messages: 4
Registered: April 2011
Junior Member
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
Re: [EMFT] Getting started [message #666109 is a reply to message #665668] Tue, 19 April 2011 07:22 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
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
Re: [EMFT] Getting started [message #666283 is a reply to message #666109] Tue, 19 April 2011 17:58 Go to previous messageGo to next message
Stanislav Ivanov is currently offline Stanislav IvanovFriend
Messages: 4
Registered: April 2011
Junior Member
Thank you for your answer.
I did what you told me, but I am not sure what do u mean with "and use the standard "PropertiesEditionsSection" in your GMF modeler."

At first, I just added what was in the generated prm_properties.plugin.xml
on the place of the corresponding sections in the diagram plugin.xml

This did not work as I expected, as I haven't fulfilled what you said : "and use the standard "PropertiesEditionsSection" in your GMF modeler."
I saw that someone had similar problem:
http://www.eclipse.org/forums/index.php?t=msg&goto=50364 2&

so I added the filter to the properties sections in the xml like that:

<propertySection
class=" org.eclipse.emf.eef.runtime.ui.properties.sections.Propertie sEditionSection "
filter=" org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeE ditPartPropertySectionFilter "
id="prm.section.PrmAttribute"[
tab="Base">
<input
type="prm.PrmAttribute">
</input>
</propertySection>

This however works partly. Only for some modeled classes.
So, I guess I am doing the thing in a wrong way.

Can you please be more specific?

Thank you again in advance,

Regards, Stanislav


Re: [EMFT] Getting started [message #890153 is a reply to message #495019] Thu, 21 June 2012 10:01 Go to previous message
Almamy Ndiaye is currently offline Almamy NdiayeFriend
Messages: 16
Registered: May 2012
Junior Member
Hi,

I have the same problem property sheet. Is it important to replace some content the plugin.xml in the .diagram project by the one generated by EEF ?
Where the EEF model has to be generated ?

Thanks.
Previous Topic:Teneo proper save & validate
Next Topic:How to Document MWE and XPT Files
Goto Forum:
  


Current Time: Thu Apr 25 01:46:25 GMT 2024

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

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

Back to the top