Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Adding qvto editor in RCP application
Adding qvto editor in RCP application [message #1268274] Mon, 10 March 2014 09:35 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
I would like to add qvto code editor in my RCP application to write and execute qvto code at run time. Is qvto editor is also based on Xtext? What are the plugins i should look into?

any idea?

Cheers,
Re: Adding qvto editor in RCP application [message #1268309 is a reply to message #1268274] Mon, 10 March 2014 10:31 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

I'm sorry. Your questions shows sufficient insight into Eclipse to show
that you can answer them yourself.

Regards

Ed Willink

On 10/03/2014 09:35, ModelGeek Mising name wrote:
> I would like to add qvto code editor in my RCP application to write
> and execute qvto code at run time. Is qvto editor is also based on
> Xtext? What are the plugins i should look into?
>
> any idea?
>
> Cheers,
Re: Adding qvto editor in RCP application [message #1268541 is a reply to message #1268309] Mon, 10 March 2014 16:42 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
Hi,

I have cloned GIT repository for QVTO using "https://git.eclipse.org/gitroot/mmt/org.eclipse.qvto.git". I have cloned master branch.


QVTOperationalCS.ecore has error :
plugin : org.eclipse.qvto.examples.xtext.qvtoperational
Class TopLevelCS :
There may not be two features named 'ownedType'


TopLevelCS is inheriting from RootPackageCS which is inheriting from PackageCS. PackageCS contain "ownedType" and TopLevelCS also has its own "ownedType" structural feature and hence there are two structural features with same name "ownedType".

It is also causing errors in generated XTEXT editor code :
Plugin : org.eclipse.qvto.examples.xtext.qvtoperational
File : org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.TopLevelCS
line : 81
code : EList<Type> getOwnedType();
Error : "org.eclipse.ocl.examples.xtext.base.basecs.PackageCS.getOwnedType
- The return type is incompatible with PackageCS.getOwnedType()"

Have i cloned the right repository?

Cheers,
Re: Adding qvto editor in RCP application [message #1268570 is a reply to message #1268541] Mon, 10 March 2014 17:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

Sorry that is confusing. The Xtext editors are work in a very
preliminary state.

There should be PSFs to help you ...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430030 raised.

I was generating a PSF for you and Eclispe locked up and after killing
it trashed my Working Sets .... oh joy.

Basically use just m2m plugins from plugins, examples and tests. Close
plugins that have errors (are not in the QVTo distribution).

Regards

Ed Willink


On 10/03/2014 16:42, ModelGeek Mising name wrote:
> Hi,
>
> I have cloned GIT repository for QVTO using
> "https://git.eclipse.org/gitroot/mmt/org.eclipse.qvto.git". I have
> cloned master branch.
>
>
> QVTOperationalCS.ecore has error : plugin :
> org.eclipse.qvto.examples.xtext.qvtoperational
> Class TopLevelCS :
> There may not be two features named 'ownedType'
>
>
> TopLevelCS is inheriting from RootPackageCS which is inheriting from
> PackageCS. PackageCS contain "ownedType" and TopLevelCS also has its
> own "ownedType" structural feature and hence there are two structural
> features with same name "ownedType".
>
> It is also causing errors in generated XTEXT editor code :
> Plugin : org.eclipse.qvto.examples.xtext.qvtoperational
> File :
> org.eclipse.qvto.examples.xtext.qvtoperational.qvtoperationalcs.TopLevelCS
> line : 81
> code : EList<Type> getOwnedType();
> Error :
> "org.eclipse.ocl.examples.xtext.base.basecs.PackageCS.getOwnedType
> - The return type is incompatible with PackageCS.getOwnedType()"
>
> Have i cloned the right repository?
> Cheers,
>
Re: Adding qvto editor in RCP application [message #1269048 is a reply to message #1268570] Tue, 11 March 2014 10:06 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
thank you for your support!

I have tried to close problematic plugins but still it is quite confusing. I have already used embedded OCL editor (org.eclipse.ocl.examples.xtext.console.xtfo.EmbeddedXtextEditor) in my RCP application.
I am looking for embedded xtext editor for qvto now. Can you please give me some hints about the plugins in need to explore?

Cheers,
Re: Adding qvto editor in RCP application [message #1269117 is a reply to message #1269048] Tue, 11 March 2014 12:00 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

AFAIK there is no embedded Xtext editor for QVTo.

What you see in GIT is my initial hack and some further work by one of
my students.

My best guess is that the work on the grammar is 25% complete.

Implementation of the underlying mappings using auto-generated rather
than manual code is current research work.

Regards

Ed Willink


On 11/03/2014 10:06, ModelGeek Mising name wrote:
> thank you for your support!
>
> I have tried to close problematic plugins but still it is quite
> confusing. I have already used embedded OCL editor
> (org.eclipse.ocl.examples.xtext.console.xtfo.EmbeddedXtextEditor) in
> my RCP application. I am looking for embedded xtext editor for qvto
> now. Can you please give me some hints about the plugins in need to
> explore?
>
> Cheers,
Re: Adding qvto editor in RCP application [message #1269152 is a reply to message #1269117] Tue, 11 March 2014 13:07 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
thanks!

Is there any plan to release embedded xtext editor for Qvto in near future?

Cheers,

[Updated on: Tue, 11 March 2014 13:15]

Report message to a moderator

Re: Adding qvto editor in RCP application [message #1269168 is a reply to message #1269152] Tue, 11 March 2014 13:29 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

On 11/03/2014 13:07, ModelGeek Mising name wrote:
> thanks!
>
> Is there any plan to release embedded xtext editor
Yes
> for Qvto in near future?
Depends how near you mean. Certainly not Luna looking dubious for Mars.
>
> i would like to know which plugin is currently containing the QVTo
> editor? like there are many plugins and i am confused about which
> plugin is the one responsible for QVTo editor?
>
> org.eclipse.m2m.qvt.oml.ecore.imperativeocl.editor
> org.eclipse.m2m.qvt.oml.ecore.qvtoperational.editor (contains errors)
>
> or is there any other plugin?
org.eclipse.m2m.internal.qvt.oml.editor.ui ?
>
> Cheers,
Re: Adding qvto editor in RCP application [message #1269180 is a reply to message #1269168] Tue, 11 March 2014 13:42 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
thank you very much!

When do you think embedded editor will be available.... just a rough estimation?

I really appreciate your help and support!
Re: Adding qvto editor in RCP application [message #1269978 is a reply to message #1269180] Wed, 12 March 2014 11:19 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey Boyko
Messages: 162
Registered: July 2009
Senior Member
Hi,

ModelGeek Mising name wrote on Tue, 11 March 2014 09:42


When do you think embedded editor will be available.... just a rough estimation?



Are there any restrictions that require use precisely Xtext derived editor? It's possible to implement embedded editor based on current implementation of QvtEditor from 'org.eclipse.m2m.internal.qvt.oml.editor.ui' plug-in.
If it's the case you can raise bugzilla for that: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=MMT.QVTo

Regards,
Sergey.
Re: Adding qvto editor in RCP application [message #1270169 is a reply to message #1269978] Wed, 12 March 2014 15:40 Go to previous message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 501
Registered: June 2011
Senior Member
I have raised bugzilla for it https://bugs.eclipse.org/bugs/show_bug.cgi?id=430202

thanks!
Previous Topic:helper with side effect in QVT - OML
Next Topic:Swapping out EvaluationVisitor to add instrumentation (dependency injection...?)
Goto Forum:
  


Current Time: Sat Sep 20 18:12:16 GMT 2014

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

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