Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFClient] Usable together with e4?(Which parts, if any, of the ECP are usable with the e4 mechanisms?)
[EMFClient] Usable together with e4? [message #1173779] Wed, 06 November 2013 19:05 Go to next message
Marina Knieling is currently offline Marina Knieling
Messages: 78
Registered: February 2013
Member
Hi there,

I just discovered ECP and spent the whole day playing with the framework (changing icons and labels, adding view models, trying to implement own controls). I like it a lot as it helps me reduce the time I would need to implement all those editors by hand. But the fact is, my original application is based on the new e4 mechanism (DI, OSGi services...).

Can I use ECP together with this approach? I've seen the 'e3' in some of the package names, but I think the created editors are pure swt, aren't they?

Could anyone point out whether this is possible and if yes give an example or a 'recipe' for doing so.

Thanks in advance

Marina
Re: [EMFClient] Usable together with e4? [message #1174718 is a reply to message #1173779] Thu, 07 November 2013 09:19 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas Helming
Messages: 428
Registered: July 2009
Senior Member
Hi,

great to hear, that ECP helps you.
Your observation is correct. Most bundles of ECP have no dependencies to
3.x, only the bundles with e3 in their names. These mainly contain the
predefined views and handlers, but they point to other bundles, which
really implement the functionality. So the answer is yes, it is
absolutly possible to use ECP with e4 and I even know of users, who are
already doing it.
However, we currently do not yet officially support this case. That
means that there are some know glitches and lack of documentation.
Do you use the editor component only or also the model explorer?
We started to create an e4 integration in our "other" repository. We
plan to complete this for 1.2
However you can already try it, if you like, we are happy for feedback.
you find it in this repository:
git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
The only bundle you need is:
org.eclipse.emf.ecp.application.e4
The most important issue, which is currently open is this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
However it is really a minor fix.
As the e4 component is not really finished, I would ask you to
immediatly report any issues, which occur. You can also directly contact
me on Skype if you want: "JonasHelming"

Regards

Jonas


Am 06.11.2013 20:05, schrieb Marina Knieling:
> Hi there,
>
> I just discovered ECP and spent the whole day playing with the framework
> (changing icons and labels, adding view models, trying to implement own
> controls). I like it a lot as it helps me reduce the time I would need
> to implement all those editors by hand. But the fact is, my original
> application is based on the new e4 mechanism (DI, OSGi services...).
>
> Can I use ECP together with this approach? I've seen the 'e3' in some of
> the package names, but I think the created editors are pure swt, aren't
> they?
>
> Could anyone point out whether this is possible and if yes give an
> example or a 'recipe' for doing so.
>
> Thanks in advance
>
> Marina
Re: [EMFClient] Usable together with e4? [message #1181480 is a reply to message #1174718] Mon, 11 November 2013 16:26 Go to previous messageGo to next message
Marina Knieling is currently offline Marina Knieling
Messages: 78
Registered: February 2013
Member
Hi Jonas,

thanks for your information and the link to the repository. I checked
out the mentioned bundle and tried it with my model alone and it worked
perfectly, but when I copied the files to my actual project I ran into
some issues. Do you recommend importing the whole bundle as it is and
simply adjust the Application file or incorporating the files in my
existing bundles where I find fit?

In the meantime I'd like to know whether it is possible to add some
validation to the editor, especially like restricting the char count for
a Text widget or even comparing with a pattern (regex). E.g. a filename
can only have 8 characters and need to follow a specific pattern. Where
could I hook in such mechanism if it is not supported by default?

Thanks for any hints
Marina

Am 07.11.2013 10:19, schrieb Jonas Helming:
> Hi,
>
> great to hear, that ECP helps you.
> Your observation is correct. Most bundles of ECP have no dependencies to
> 3.x, only the bundles with e3 in their names. These mainly contain the
> predefined views and handlers, but they point to other bundles, which
> really implement the functionality. So the answer is yes, it is
> absolutly possible to use ECP with e4 and I even know of users, who are
> already doing it.
> However, we currently do not yet officially support this case. That
> means that there are some know glitches and lack of documentation.
> Do you use the editor component only or also the model explorer?
> We started to create an e4 integration in our "other" repository. We
> plan to complete this for 1.2
> However you can already try it, if you like, we are happy for feedback.
> you find it in this repository:
> git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
> The only bundle you need is:
> org.eclipse.emf.ecp.application.e4
> The most important issue, which is currently open is this:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
> However it is really a minor fix.
> As the e4 component is not really finished, I would ask you to
> immediatly report any issues, which occur. You can also directly contact
> me on Skype if you want: "JonasHelming"
>
> Regards
>
> Jonas
>
>
> Am 06.11.2013 20:05, schrieb Marina Knieling:
>> Hi there,
>>
>> I just discovered ECP and spent the whole day playing with the framework
>> (changing icons and labels, adding view models, trying to implement own
>> controls). I like it a lot as it helps me reduce the time I would need
>> to implement all those editors by hand. But the fact is, my original
>> application is based on the new e4 mechanism (DI, OSGi services...).
>>
>> Can I use ECP together with this approach? I've seen the 'e3' in some of
>> the package names, but I think the created editors are pure swt, aren't
>> they?
>>
>> Could anyone point out whether this is possible and if yes give an
>> example or a 'recipe' for doing so.
>>
>> Thanks in advance
>>
>> Marina
>
Re: [EMFClient] Usable together with e4? [message #1182584 is a reply to message #1181480] Tue, 12 November 2013 09:27 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas Helming
Messages: 428
Registered: July 2009
Senior Member
Hi Marina,
comments inline...

Am 11.11.2013 17:26, schrieb Marina Knieling:
> Hi Jonas,
>
> thanks for your information and the link to the repository. I checked
> out the mentioned bundle and tried it with my model alone and it worked
> perfectly, but when I copied the files to my actual project I ran into
> some issues. Do you recommend importing the whole bundle as it is and
> simply adjust the Application file or incorporating the files in my
> existing bundles where I find fit?

Could you describe me more in detail what kind of issues you ran into? I
assume you have an existing e4 application model? In this case, I would
recommend to create your own application model elements in your model
and let them point to the templates we provide.

>
> In the meantime I'd like to know whether it is possible to add some
> validation to the editor, especially like restricting the char count for
> a Text widget or even comparing with a pattern (regex). E.g. a filename
> can only have 8 characters and need to follow a specific pattern. Where
> could I hook in such mechanism if it is not supported by default?

ECP will actually trigger the default EMF validation and display it in
the UI, so the simplest way is to add validation constraints directly to
the model itself.
There are different ways to do so. Some constraints can be expressed
with Ecore (e.g. that a field is required). Othe constraints can be
expressed using annotations. The following example defines a String of
length 1-4.

<eClassifiers xsi:type="ecore:EDataType" name="YourType"
instanceClassName="java.lang.String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="YourType_._type"/>
<details key="baseType"
value="http://www.eclipse.org/emf/2003/XMLType#string"/>
<details key="maxLength" value="4"/>
<details key="minLength" value="1"/>
</eAnnotations>
</eClassifiers>

If you create your Ecore from an XSD, these annotations will
automatically be generated.

I hope this helps!

Kind Regards

Jonas


>
> Thanks for any hints
> Marina
>
> Am 07.11.2013 10:19, schrieb Jonas Helming:
>> Hi,
>>
>> great to hear, that ECP helps you.
>> Your observation is correct. Most bundles of ECP have no dependencies to
>> 3.x, only the bundles with e3 in their names. These mainly contain the
>> predefined views and handlers, but they point to other bundles, which
>> really implement the functionality. So the answer is yes, it is
>> absolutly possible to use ECP with e4 and I even know of users, who are
>> already doing it.
>> However, we currently do not yet officially support this case. That
>> means that there are some know glitches and lack of documentation.
>> Do you use the editor component only or also the model explorer?
>> We started to create an e4 integration in our "other" repository. We
>> plan to complete this for 1.2
>> However you can already try it, if you like, we are happy for feedback.
>> you find it in this repository:
>> git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
>> The only bundle you need is:
>> org.eclipse.emf.ecp.application.e4
>> The most important issue, which is currently open is this:
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
>> However it is really a minor fix.
>> As the e4 component is not really finished, I would ask you to
>> immediatly report any issues, which occur. You can also directly contact
>> me on Skype if you want: "JonasHelming"
>>
>> Regards
>>
>> Jonas
>>
>>
>> Am 06.11.2013 20:05, schrieb Marina Knieling:
>>> Hi there,
>>>
>>> I just discovered ECP and spent the whole day playing with the framework
>>> (changing icons and labels, adding view models, trying to implement own
>>> controls). I like it a lot as it helps me reduce the time I would need
>>> to implement all those editors by hand. But the fact is, my original
>>> application is based on the new e4 mechanism (DI, OSGi services...).
>>>
>>> Can I use ECP together with this approach? I've seen the 'e3' in some of
>>> the package names, but I think the created editors are pure swt, aren't
>>> they?
>>>
>>> Could anyone point out whether this is possible and if yes give an
>>> example or a 'recipe' for doing so.
>>>
>>> Thanks in advance
>>>
>>> Marina
>>
>
Re: [EMFClient] Usable together with e4? [message #1182745 is a reply to message #1182584] Tue, 12 November 2013 11:37 Go to previous messageGo to next message
Marina Knieling is currently offline Marina Knieling
Messages: 78
Registered: February 2013
Member
Hi Jonas,

thanks again for the valuable information. More comments inline...

Am 12.11.2013 10:27, schrieb Jonas Helming:
> Hi Marina,
> comments inline...
>
> Am 11.11.2013 17:26, schrieb Marina Knieling:
>> Hi Jonas,
>>
>> thanks for your information and the link to the repository. I checked
>> out the mentioned bundle and tried it with my model alone and it worked
>> perfectly, but when I copied the files to my actual project I ran into
>> some issues. Do you recommend importing the whole bundle as it is and
>> simply adjust the Application file or incorporating the files in my
>> existing bundles where I find fit?
>
> Could you describe me more in detail what kind of issues you ran into? I
> assume you have an existing e4 application model? In this case, I would
> recommend to create your own application model elements in your model
> and let them point to the templates we provide.
>
I think the problem was, that the @PostConstruct method of the
ModelExplorer wasn't executed and therefore I got a NullPointerException
in the @Focus method and - of course - the ModelExplorer wasn't created.

At the moment I have a running application with an existing e4
application model. Adding the model elements to that model isn't a
problem and shouldn't ruin anything. I will give it another try tomorrow
as I'm working on another routine at the moment.
>>
>> In the meantime I'd like to know whether it is possible to add some
>> validation to the editor, especially like restricting the char count for
>> a Text widget or even comparing with a pattern (regex). E.g. a filename
>> can only have 8 characters and need to follow a specific pattern. Where
>> could I hook in such mechanism if it is not supported by default?
>
> ECP will actually trigger the default EMF validation and display it in
> the UI, so the simplest way is to add validation constraints directly to
> the model itself.
> There are different ways to do so. Some constraints can be expressed
> with Ecore (e.g. that a field is required). Othe constraints can be
> expressed using annotations. The following example defines a String of
> length 1-4.
>
> <eClassifiers xsi:type="ecore:EDataType" name="YourType"
> instanceClassName="java.lang.String">
> <eAnnotations
> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
> <details key="name" value="YourType_._type"/>
> <details key="baseType"
> value="http://www.eclipse.org/emf/2003/XMLType#string"/>
> <details key="maxLength" value="4"/>
> <details key="minLength" value="1"/>
> </eAnnotations>
> </eClassifiers>
>
> If you create your Ecore from an XSD, these annotations will
> automatically be generated.
>
> I hope this helps!

Thanks for the example. I'm totally new to these eAnnotations. I've
created my model using the ecore diagram and I'm now working in the
ecore file.

If I understand your example right, you created a new EDataType that is
a String with 1 to 4 characters. Is that the only respectively the
"right" way of doing it or can it also be achieved by adding the
annotation to the attribute itself? I assume the datatype comes in handy
if you need it more often.

Furthermore, is there any documentation on how to use the
ExtendedMetaData for that kind of validation I'm looking for? I looked
into the JavaDoc for the ExtendedMetaData class, but I don't really
understand what you can do with it.

Thanks for your help and patience :)
Marina

>
> Kind Regards
>
> Jonas
>
>
>>
>> Thanks for any hints
>> Marina
>>
>> Am 07.11.2013 10:19, schrieb Jonas Helming:
>>> Hi,
>>>
>>> great to hear, that ECP helps you.
>>> Your observation is correct. Most bundles of ECP have no dependencies to
>>> 3.x, only the bundles with e3 in their names. These mainly contain the
>>> predefined views and handlers, but they point to other bundles, which
>>> really implement the functionality. So the answer is yes, it is
>>> absolutly possible to use ECP with e4 and I even know of users, who are
>>> already doing it.
>>> However, we currently do not yet officially support this case. That
>>> means that there are some know glitches and lack of documentation.
>>> Do you use the editor component only or also the model explorer?
>>> We started to create an e4 integration in our "other" repository. We
>>> plan to complete this for 1.2
>>> However you can already try it, if you like, we are happy for feedback.
>>> you find it in this repository:
>>> git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
>>> The only bundle you need is:
>>> org.eclipse.emf.ecp.application.e4
>>> The most important issue, which is currently open is this:
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
>>> However it is really a minor fix.
>>> As the e4 component is not really finished, I would ask you to
>>> immediatly report any issues, which occur. You can also directly contact
>>> me on Skype if you want: "JonasHelming"
>>>
>>> Regards
>>>
>>> Jonas
>>>
>>>
>>> Am 06.11.2013 20:05, schrieb Marina Knieling:
>>>> Hi there,
>>>>
>>>> I just discovered ECP and spent the whole day playing with the framework
>>>> (changing icons and labels, adding view models, trying to implement own
>>>> controls). I like it a lot as it helps me reduce the time I would need
>>>> to implement all those editors by hand. But the fact is, my original
>>>> application is based on the new e4 mechanism (DI, OSGi services...).
>>>>
>>>> Can I use ECP together with this approach? I've seen the 'e3' in some of
>>>> the package names, but I think the created editors are pure swt, aren't
>>>> they?
>>>>
>>>> Could anyone point out whether this is possible and if yes give an
>>>> example or a 'recipe' for doing so.
>>>>
>>>> Thanks in advance
>>>>
>>>> Marina
>>>
>>
>
Re: [EMFClient] Usable together with e4? [message #1182763 is a reply to message #1182745] Tue, 12 November 2013 11:52 Go to previous messageGo to next message
Marina Knieling is currently offline Marina Knieling
Messages: 78
Registered: February 2013
Member
Forget about the documentation... I just realized that the EMF book is
available in a second edition with lots of updates including the
ExtendedMetaData. I'll have a look at it before asking further questions.

Regards, Marina

Am 12.11.2013 12:37, schrieb Marina Knieling:
> Hi Jonas,
>
> thanks again for the valuable information. More comments inline...
>
> Am 12.11.2013 10:27, schrieb Jonas Helming:
>> Hi Marina,
>> comments inline...
>>
>> Am 11.11.2013 17:26, schrieb Marina Knieling:
>>> Hi Jonas,
>>>
>>> thanks for your information and the link to the repository. I checked
>>> out the mentioned bundle and tried it with my model alone and it worked
>>> perfectly, but when I copied the files to my actual project I ran into
>>> some issues. Do you recommend importing the whole bundle as it is and
>>> simply adjust the Application file or incorporating the files in my
>>> existing bundles where I find fit?
>>
>> Could you describe me more in detail what kind of issues you ran into? I
>> assume you have an existing e4 application model? In this case, I would
>> recommend to create your own application model elements in your model
>> and let them point to the templates we provide.
>>
> I think the problem was, that the @PostConstruct method of the
> ModelExplorer wasn't executed and therefore I got a NullPointerException
> in the @Focus method and - of course - the ModelExplorer wasn't created.
>
> At the moment I have a running application with an existing e4
> application model. Adding the model elements to that model isn't a
> problem and shouldn't ruin anything. I will give it another try tomorrow
> as I'm working on another routine at the moment.
>>>
>>> In the meantime I'd like to know whether it is possible to add some
>>> validation to the editor, especially like restricting the char count for
>>> a Text widget or even comparing with a pattern (regex). E.g. a filename
>>> can only have 8 characters and need to follow a specific pattern. Where
>>> could I hook in such mechanism if it is not supported by default?
>>
>> ECP will actually trigger the default EMF validation and display it in
>> the UI, so the simplest way is to add validation constraints directly to
>> the model itself.
>> There are different ways to do so. Some constraints can be expressed
>> with Ecore (e.g. that a field is required). Othe constraints can be
>> expressed using annotations. The following example defines a String of
>> length 1-4.
>>
>> <eClassifiers xsi:type="ecore:EDataType" name="YourType"
>> instanceClassName="java.lang.String">
>> <eAnnotations
>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>> <details key="name" value="YourType_._type"/>
>> <details key="baseType"
>> value="http://www.eclipse.org/emf/2003/XMLType#string"/>
>> <details key="maxLength" value="4"/>
>> <details key="minLength" value="1"/>
>> </eAnnotations>
>> </eClassifiers>
>>
>> If you create your Ecore from an XSD, these annotations will
>> automatically be generated.
>>
>> I hope this helps!
>
> Thanks for the example. I'm totally new to these eAnnotations. I've
> created my model using the ecore diagram and I'm now working in the
> ecore file.
>
> If I understand your example right, you created a new EDataType that is
> a String with 1 to 4 characters. Is that the only respectively the
> "right" way of doing it or can it also be achieved by adding the
> annotation to the attribute itself? I assume the datatype comes in handy
> if you need it more often.
>
> Furthermore, is there any documentation on how to use the
> ExtendedMetaData for that kind of validation I'm looking for? I looked
> into the JavaDoc for the ExtendedMetaData class, but I don't really
> understand what you can do with it.
>
> Thanks for your help and patience :)
> Marina
>
>>
>> Kind Regards
>>
>> Jonas
>>
>>
>>>
>>> Thanks for any hints
>>> Marina
>>>
>>> Am 07.11.2013 10:19, schrieb Jonas Helming:
>>>> Hi,
>>>>
>>>> great to hear, that ECP helps you.
>>>> Your observation is correct. Most bundles of ECP have no
>>>> dependencies to
>>>> 3.x, only the bundles with e3 in their names. These mainly contain the
>>>> predefined views and handlers, but they point to other bundles, which
>>>> really implement the functionality. So the answer is yes, it is
>>>> absolutly possible to use ECP with e4 and I even know of users, who are
>>>> already doing it.
>>>> However, we currently do not yet officially support this case. That
>>>> means that there are some know glitches and lack of documentation.
>>>> Do you use the editor component only or also the model explorer?
>>>> We started to create an e4 integration in our "other" repository. We
>>>> plan to complete this for 1.2
>>>> However you can already try it, if you like, we are happy for feedback.
>>>> you find it in this repository:
>>>> git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
>>>> The only bundle you need is:
>>>> org.eclipse.emf.ecp.application.e4
>>>> The most important issue, which is currently open is this:
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
>>>> However it is really a minor fix.
>>>> As the e4 component is not really finished, I would ask you to
>>>> immediatly report any issues, which occur. You can also directly
>>>> contact
>>>> me on Skype if you want: "JonasHelming"
>>>>
>>>> Regards
>>>>
>>>> Jonas
>>>>
>>>>
>>>> Am 06.11.2013 20:05, schrieb Marina Knieling:
>>>>> Hi there,
>>>>>
>>>>> I just discovered ECP and spent the whole day playing with the
>>>>> framework
>>>>> (changing icons and labels, adding view models, trying to implement
>>>>> own
>>>>> controls). I like it a lot as it helps me reduce the time I would need
>>>>> to implement all those editors by hand. But the fact is, my original
>>>>> application is based on the new e4 mechanism (DI, OSGi services...).
>>>>>
>>>>> Can I use ECP together with this approach? I've seen the 'e3' in
>>>>> some of
>>>>> the package names, but I think the created editors are pure swt,
>>>>> aren't
>>>>> they?
>>>>>
>>>>> Could anyone point out whether this is possible and if yes give an
>>>>> example or a 'recipe' for doing so.
>>>>>
>>>>> Thanks in advance
>>>>>
>>>>> Marina
>>>>
>>>
>>
>
Re: [EMFClient] Usable together with e4? [message #1182828 is a reply to message #1182763] Tue, 12 November 2013 12:48 Go to previous message
Jonas Helming is currently offline Jonas Helming
Messages: 428
Registered: July 2009
Senior Member
Hi,

no problem, asking questions is the purpose of this newsgroup :-)
Please let me know if any questions remain after reading the book.

Best Regards

Jonas

Am 12.11.2013 12:52, schrieb Marina Knieling:
> Forget about the documentation... I just realized that the EMF book is
> available in a second edition with lots of updates including the
> ExtendedMetaData. I'll have a look at it before asking further questions.
>
> Regards, Marina
>
> Am 12.11.2013 12:37, schrieb Marina Knieling:
>> Hi Jonas,
>>
>> thanks again for the valuable information. More comments inline...
>>
>> Am 12.11.2013 10:27, schrieb Jonas Helming:
>>> Hi Marina,
>>> comments inline...
>>>
>>> Am 11.11.2013 17:26, schrieb Marina Knieling:
>>>> Hi Jonas,
>>>>
>>>> thanks for your information and the link to the repository. I checked
>>>> out the mentioned bundle and tried it with my model alone and it worked
>>>> perfectly, but when I copied the files to my actual project I ran into
>>>> some issues. Do you recommend importing the whole bundle as it is and
>>>> simply adjust the Application file or incorporating the files in my
>>>> existing bundles where I find fit?
>>>
>>> Could you describe me more in detail what kind of issues you ran into? I
>>> assume you have an existing e4 application model? In this case, I would
>>> recommend to create your own application model elements in your model
>>> and let them point to the templates we provide.
>>>
>> I think the problem was, that the @PostConstruct method of the
>> ModelExplorer wasn't executed and therefore I got a NullPointerException
>> in the @Focus method and - of course - the ModelExplorer wasn't created.
>>
>> At the moment I have a running application with an existing e4
>> application model. Adding the model elements to that model isn't a
>> problem and shouldn't ruin anything. I will give it another try tomorrow
>> as I'm working on another routine at the moment.
>>>>
>>>> In the meantime I'd like to know whether it is possible to add some
>>>> validation to the editor, especially like restricting the char count
>>>> for
>>>> a Text widget or even comparing with a pattern (regex). E.g. a filename
>>>> can only have 8 characters and need to follow a specific pattern. Where
>>>> could I hook in such mechanism if it is not supported by default?
>>>
>>> ECP will actually trigger the default EMF validation and display it in
>>> the UI, so the simplest way is to add validation constraints directly to
>>> the model itself.
>>> There are different ways to do so. Some constraints can be expressed
>>> with Ecore (e.g. that a field is required). Othe constraints can be
>>> expressed using annotations. The following example defines a String of
>>> length 1-4.
>>>
>>> <eClassifiers xsi:type="ecore:EDataType" name="YourType"
>>> instanceClassName="java.lang.String">
>>> <eAnnotations
>>> source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
>>> <details key="name" value="YourType_._type"/>
>>> <details key="baseType"
>>> value="http://www.eclipse.org/emf/2003/XMLType#string"/>
>>> <details key="maxLength" value="4"/>
>>> <details key="minLength" value="1"/>
>>> </eAnnotations>
>>> </eClassifiers>
>>>
>>> If you create your Ecore from an XSD, these annotations will
>>> automatically be generated.
>>>
>>> I hope this helps!
>>
>> Thanks for the example. I'm totally new to these eAnnotations. I've
>> created my model using the ecore diagram and I'm now working in the
>> ecore file.
>>
>> If I understand your example right, you created a new EDataType that is
>> a String with 1 to 4 characters. Is that the only respectively the
>> "right" way of doing it or can it also be achieved by adding the
>> annotation to the attribute itself? I assume the datatype comes in handy
>> if you need it more often.
>>
>> Furthermore, is there any documentation on how to use the
>> ExtendedMetaData for that kind of validation I'm looking for? I looked
>> into the JavaDoc for the ExtendedMetaData class, but I don't really
>> understand what you can do with it.
>>
>> Thanks for your help and patience :)
>> Marina
>>
>>>
>>> Kind Regards
>>>
>>> Jonas
>>>
>>>
>>>>
>>>> Thanks for any hints
>>>> Marina
>>>>
>>>> Am 07.11.2013 10:19, schrieb Jonas Helming:
>>>>> Hi,
>>>>>
>>>>> great to hear, that ECP helps you.
>>>>> Your observation is correct. Most bundles of ECP have no
>>>>> dependencies to
>>>>> 3.x, only the bundles with e3 in their names. These mainly contain the
>>>>> predefined views and handlers, but they point to other bundles, which
>>>>> really implement the functionality. So the answer is yes, it is
>>>>> absolutly possible to use ECP with e4 and I even know of users, who
>>>>> are
>>>>> already doing it.
>>>>> However, we currently do not yet officially support this case. That
>>>>> means that there are some know glitches and lack of documentation.
>>>>> Do you use the editor component only or also the model explorer?
>>>>> We started to create an e4 integration in our "other" repository. We
>>>>> plan to complete this for 1.2
>>>>> However you can already try it, if you like, we are happy for
>>>>> feedback.
>>>>> you find it in this repository:
>>>>> git://git.eclipse.org/gitroot/emfclient/org.eclipse.emf.ecp.other.git
>>>>> The only bundle you need is:
>>>>> org.eclipse.emf.ecp.application.e4
>>>>> The most important issue, which is currently open is this:
>>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=416879
>>>>> However it is really a minor fix.
>>>>> As the e4 component is not really finished, I would ask you to
>>>>> immediatly report any issues, which occur. You can also directly
>>>>> contact
>>>>> me on Skype if you want: "JonasHelming"
>>>>>
>>>>> Regards
>>>>>
>>>>> Jonas
>>>>>
>>>>>
>>>>> Am 06.11.2013 20:05, schrieb Marina Knieling:
>>>>>> Hi there,
>>>>>>
>>>>>> I just discovered ECP and spent the whole day playing with the
>>>>>> framework
>>>>>> (changing icons and labels, adding view models, trying to implement
>>>>>> own
>>>>>> controls). I like it a lot as it helps me reduce the time I would
>>>>>> need
>>>>>> to implement all those editors by hand. But the fact is, my original
>>>>>> application is based on the new e4 mechanism (DI, OSGi services...).
>>>>>>
>>>>>> Can I use ECP together with this approach? I've seen the 'e3' in
>>>>>> some of
>>>>>> the package names, but I think the created editors are pure swt,
>>>>>> aren't
>>>>>> they?
>>>>>>
>>>>>> Could anyone point out whether this is possible and if yes give an
>>>>>> example or a 'recipe' for doing so.
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>> Marina
>>>>>
>>>>
>>>
>>
>
Previous Topic:[EMFStore] command stack flushing
Next Topic:[EMFStore]EMFStore can be used in the WEB project?
Goto Forum:
  


Current Time: Sat Sep 20 04:08:20 GMT 2014

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

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