Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Ecore Editor e4 support
[EMF Forms] Ecore Editor e4 support [message #1727639] Thu, 24 March 2016 16:19 Go to next message
Kirill Zotkin is currently offline Kirill ZotkinFriend
Messages: 21
Registered: July 2009
Junior Member
Hello!

I'm trying to implement a "pure" e4 ECP-based RCP application. Resource that could be either .ecore, or xmi I'm trying to open in Ecore (or Generic) Editor form doesn't get shown.
init method doesn't get invoked in partService.createPart(...) in ECPModelElementOpener subclass.
Couldn't manage how to open it neither by e4, nor 3.x methods. I tried besides mentioned above:
* http://www.vogella.com/tutorials/EclipseEditors/article.html#example with URIEditorInput of EObject.eResource().getURI() - can't get IHandlerService from IEclipseContext. I understand that it is a 3.x and e4 handler model's compatibility issue, but is there any way to get it available at least with EMFFormsContextProvider (which I couldn't find out how to access from there btw).
* activePage's openEditor - can't get activePage (Workbench has not been created yet.).

Is there plans to support usage of Ecore Editor as e4 part?

Thanks,

Kirill

P. S. Maybe i could contribute, if it is needed...

[Updated on: Fri, 25 March 2016 10:15]

Report message to a moderator

Re: [EMF Forms] Ecore Editor e4 support [message #1727826 is a reply to message #1727639] Mon, 28 March 2016 07:43 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Kirill,

I am a little confused by your questions, meaning, I am not exactly
sure, what you are trying to do. Are you using the ECP demo capplication
for e4? Do you want to combine this with the EMF Forms editor recently
announced? (see
http://eclipsesource.com/blogs/2016/02/11/emf-forms-1-8-0-feature-ecore-editor-reloaded/)
Both are separate things, the Editor (2nd) is currently integrated with
the 3.x workspace based on the tool platform.

Best regards

Jonas


Am 24.03.2016 um 17:19 schrieb Kirill Zotkin:
> Hello!
>
> I'm trying to implement a "pure" e4 ECP-based RCP application. Resource
> that could be either .ecore, or xmi I'm trying to open in Ecore (or
> Generic) Editor form hasn't shown.
> init method doesn't invoked in partService.createPart(...) in
> ECPModelElementOpener subclass.
> Couldn't manage how to open it neither by e4, nor 3.x methods. I tried
> besides mentioned above:
> * http://www.vogella.com/tutorials/EclipseEditors/article.html#example
> with URIEditorInput of EObject.eResource().getURI() - can't get
> IHandlerService from IEclipseContext. I understand that it is a 3.x and
> e4 handler model's compatibility problem, but is there any way to get it
> available at least with EMFFormsContextProvider (which I couldn't find
> how to access from there btw).
> * activePage's openEditor - can't get activePage (Workbench has not been
> created yet.).
>
> Is there any way to resolve this issue?
>
> Thanks,
>
> Kirill


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Ecore Editor e4 support [message #1727845 is a reply to message #1727826] Mon, 28 March 2016 11:46 Go to previous messageGo to next message
Kirill Zotkin is currently offline Kirill ZotkinFriend
Messages: 21
Registered: July 2009
Junior Member
Hi Jonas,

Thank you for the answer. I am developing the front-end for my library (latest changes uncommitted yet). It should allow to update the package registry with runtime created models and edit it's instances. Such, an end-user IDE and data integration application with dynamic-edited-API-shaped UI.

Yes, I'm using the ECP demo application as a basis for my e4.
I wanted to reuse and integrate the Generic Editor model editing functionality for XMI model resources and Ecore Editor for Ecore model resources into RCP application.
It is said in the tutorial that these editors can be integrated into any kind of RCP application.
Unfortunately, i didn't pay attention to that that intended purpose of Generic editor is for testing. And thought I could use it in production for editing XMI models and were need to edit instances of Ecore metamodels of that models.
But as long as it is not provided i guess I have to come up with my own version of Generic and concrete model (Ecore or other) Editor, most likely based on yours.

Thank you

Kirill

[Updated on: Sat, 02 April 2016 04:58]

Report message to a moderator

Re: [EMF Forms] Ecore Editor e4 support [message #1727946 is a reply to message #1727845] Tue, 29 March 2016 16:20 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Hi Kyrill,

where did you did you find the info, that this editor is just for
testing? Although it is a pretty new feature, we already use it in
production. However, the editor is currently bound to the 3.x API. IS
relys on the 3.x editors extenion point as well as the existance of the
package/project explorer. So the default use case is to use it as part
of the IDE.
It would be possible to adapt it to e4, though.
Are you interested in a contribution or in sponsoring?

best regards

Jonas

Am 28.03.2016 um 13:46 schrieb Kirill Zotkin:
> Hi Jonas,
> Thank you for the answer. I am developing the front-end for my
> https://github.com/kirillzotkin/ClassSupplier (latest changes
> uncommitted yet). It should allow to update the package registry with
> runtime created models and edit it's instances. Such, an end-user IDE
> and data integration application with dynamic-edited-API-shaped UI.
>
> Yes, I'm using the ECP demo application as a basis for my e4.
> I wanted to integrate the Generic Editor model editing functionality for
> XMI model resources and Ecore Editor for Ecore model resources into RCP
> application.
> It is said in the tutorial that these editors can be integrated into any
> kind of RCP application.
> Unfortunately, i didn't pay attention to that that intended purpose of
> Generic editor is for testing. And thought I could use it in production
> for editing XMI models and were needed to edit instances of Ecore
> metamodels of that models.
> But as long as it is not provided i guess i have to come up with my own
> version of Generic Editor, most likely based on it.
>
> Thank you
>
> Kirill


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] Ecore Editor e4 support [message #1728054 is a reply to message #1727946] Wed, 30 March 2016 16:07 Go to previous messageGo to next message
Kirill Zotkin is currently offline Kirill ZotkinFriend
Messages: 21
Registered: July 2009
Junior Member
Hi, Jonas

> where did you did you find the info, that this editor is just for
> testing?
I meant 'for testing' not in the "default" sense, but in the way it used in the article.
"It allows you to create instances of a given EMF model and thereby
provides an easy way of testing a defined model."
I wanted to write:
>> ...for testing. And thought I could use it in RCP
>> for editing XMI models and were needed to edit instances of Ecore
>> metamodels of that models.

> Although it is a pretty new feature, we already use it in
> production. However, the editor is currently bound to the 3.x API. IS
> relys on the 3.x editors extenion point as well as the existance of the
> package/project explorer. So the default use case is to use it as part
> of the IDE.
>It would be possible to adapt it to e4, though.
That'll be great!

>Are you interested in a contribution or in sponsoring?
I'm interested in contribution. I set up the IDE, read developer guidelines.
Should i start a bug?

best regards

Kirill

[Updated on: Wed, 30 March 2016 17:40]

Report message to a moderator

Re: [EMF Forms] Ecore Editor e4 support [message #1728096 is a reply to message #1728054] Thu, 31 March 2016 02:47 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
Registered: July 2009
Senior Member
Am 30.03.2016 um 18:07 schrieb Kirill Zotkin:
> Hi, Jonas
>
>> where did you did you find the info, that this editor is just for
>> testing?
> I meant 'for testing' not in the "default" sense, but in the way it used
> in the article. "It allows you to create instances of a given EMF model
> and thereby provides an easy way of testing a defined model."
> I wanted to write:
>>> And thought I could use it in RCP
>>> for editing XMI models and were needed to edit instances of Ecore
>>> metamodels of that models.
>
>> Although it is a pretty new feature, we already use it in
>> production. However, the editor is currently bound to the 3.x API. IS
>> relys on the 3.x editors extenion point as well as the existance of the
>> package/project explorer. So the default use case is to use it as part
>> of the IDE.
>> It would be possible to adapt it to e4, though.
> That'll be great!
>
>> Are you interested in a contribution or in sponsoring?
> I'm interested in contribution. I set up the IDE, read developer
> guidelines.
> Should i start a bug?
Sure, go ahead and set me on CC..

>
> best regards
>
> Kirill
>


--
--

Jonas Helming

Get professional Eclipse developer support:

http://eclipsesource.com/en/services/developer-support/
Previous Topic:[EMF Forms] Table Control : Column Width
Next Topic:[DefaultDataProvider] Default file provider - Browse workspace problem
Goto Forum:
  


Current Time: Fri Apr 19 06:12:17 GMT 2024

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

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

Back to the top