Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » EMF OCL Console in Eclipse RCP application
EMF OCL Console in Eclipse RCP application [message #897531] Tue, 24 July 2012 08:33 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

i am working with Eclipse RCP application. I am generating Ecore and XMI file at run time and i would like to embed EMF OCL Conolse facility in my application.

How can i reuse EMF OCL Conolse in my application.

Any idea?

Cheers
Re: EMF OCL Console in Eclipse RCP application [message #897537 is a reply to message #897531] Tue, 24 July 2012 08:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

The OCL Console (org.eclipse.ocl.examples.interpreter) and the new OCL
Xtext Console (org.eclipse.ocl.examples.xtext.console) are both standard
Eclipse Console views, so to start with just make sure you have included
the plugins to get a standard Console View, then just include one of the
above and all its dependencies (and if necessary start debugging).

Regards

Ed Willink


On 24/07/2012 13:33, ModelGeek Mising name wrote:
> Hi,
>
> i am working with Eclipse RCP application. I am generating Ecore and
> XMI file at run time and i would like to embed EMF OCL Conolse
> facility in my application.
>
> How can i reuse EMF OCL Conolse in my application.
>
> Any idea?
>
> Cheers
Re: EMF OCL Console in Eclipse RCP application [message #897542 is a reply to message #897537] Tue, 24 July 2012 09:08 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

i have added "org.eclipse.ocl.examples" as dependencies but i can not find org.eclipse.ocl.examples.interpreter view when i try to add view using
plugin->extensions UI.

Any clue? which plugin i have to add as dependency?

Thanks!
Re: EMF OCL Console in Eclipse RCP application [message #897554 is a reply to message #897542] Tue, 24 July 2012 09:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi<br>
<br>
I can only repeat what I wrote before and give a screen shot to
demonstrate the lack of typos (for a change.).<br>
<br>
The OCL Console (org.eclipse.ocl.examples.interpreter) and the new
OCL Xtext Console (org.eclipse.ocl.examples.xtext.console) are
both standard Eclipse Console views, so to start with just make
sure you have included the plugins to get a standard Console View,
then just include one of the above and all its dependencies (and
if necessary start debugging).
<br>
<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=10838" alt=""><br>
<br>
    Regards<br>
<br>
        Ed Willink<br>
<br>
<br>
On 24/07/2012 14:08, ModelGeek Mising name wrote:<br>
</div>
<blockquote cite="mid:jum6od$puo$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
i have added "org.eclipse.ocl.examples" as dependencies but i can
not find org.eclipse.ocl.examples.interpreter view when i try to
add view using plugin-&gt;extensions UI.
<br>
<br>
Any clue? which plugin i have to add as dependency?
<br>
<br>
Thanks!
<br>
</blockquote>
<br>
</body>
</html>
  • Attachment: cjjbagbi.png
    (Size: 94.44KB, Downloaded 86 times)
Re: EMF OCL Console in Eclipse RCP application [message #897821 is a reply to message #897554] Wed, 25 July 2012 05:45 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

i have added all OCL related plugin(shown in screen shot) but still when i try to add View in Perspective extension then i am unable to find "org.eclipse.ocl.examples.interpreter" or "org.eclipse.ocl.examples.xtext.console" view.

Currently i am using Indigo. Are you referring to JUNO?

thanks
Re: EMF OCL Console in Eclipse RCP application [message #897859 is a reply to message #897821] Wed, 25 July 2012 06:23 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi<br>
<br>
I was referring to Juno, but there is no significant difference
for Indigo or Helios.<br>
<br>
You are looking for a View. You should be looking at the 'Open
Console' menu in the Console View.<br>
<br>
<img src="http://www.eclipse.org/forums/index.php?t=getfile&amp;id=10879" alt=""><br>
<br>
    Regards<br>
<br>
        Ed Willink<br>
<br>
<br>
On 25/07/2012 10:45, ModelGeek Mising name wrote:<br>
</div>
<blockquote cite="mid:juof89$1ao$1@xxxxxxxxe.org" type="cite">Hi,
<br>
<br>
i have added all OCL related plugin(shown in screen shot) but
still when i try to add View in Perspective extension then i am
unable to find "org.eclipse.ocl.examples.interpreter" or 
"org.eclipse.ocl.examples.xtext.console" view.
<br>
<br>
Currently i am using Indigo. Are you referring to JUNO?
<br>
<br>
thanks
<br>
</blockquote>
<br>
</body>
</html>
  • Attachment: cbhfgiab.png
    (Size: 8.56KB, Downloaded 72 times)
Re: EMF OCL Console in Eclipse RCP application [message #898954 is a reply to message #897859] Sun, 29 July 2012 06:10 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
thanks!

I have add xtext OCL console and it seems to be working fine but there is not intellisense availble for example when i press "." or "->" then there is no help available. Do you have any clue why is that? OR should i ask this at another forum?

cheers,
Re: EMF OCL Console in Eclipse RCP application [message #898959 is a reply to message #898954] Sun, 29 July 2012 08:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

In the Indigo release, completion assist was fairly limited.

In the Juno release, Control-Space assist seems fairly good.

JDT seems to do some auto-popups and I find them rather irritating. I'm
not sure whether Xtext does. For the most part the OCL editors just
offer standard Xtext functionality until I find that I need to do some
configuration.

Regards

Ed Willink


On 29/07/2012 11:10, ModelGeek Mising name wrote:
> thanks!
>
> I have add xtext OCL console and it seems to be working fine but there
> is not intellisense availble for example when i press "." or "->" then
> there is no help available. Do you have any clue why is that? OR
> should i ask this at another forum?
>
> cheers,
Re: EMF OCL Console in Eclipse RCP application [message #899039 is a reply to message #898959] Mon, 30 July 2012 06:10 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
thanks!

what sort of configurations are required for OCL Console?

Re: EMF OCL Console in Eclipse RCP application [message #899046 is a reply to message #899039] Mon, 30 July 2012 06:51 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

Xtext manages to make a remarkable number of standard editing facilities
work direct from the grammars and models aided by a bit of scoping
resolution.

Other facilities require a bit of help.

For instance code assist templates are 100% manual.

Find references/Goto definition I'm pretty sure is broken but might be a
ten line fix.

Generally, any fancy editor frills may need help.

EssentialOCLUiModule, AbstractEssentialOCLUiModule, EssentialOCLModule,
AbstractEssentialOCLModule provide some clues about waht has already
been done.

Regards

Ed Willink

On 30/07/2012 11:10, ModelGeek Mising name wrote:
> thanks!
>
> what sort of configurations are required for OCL Console?
>
>
Re: EMF OCL Console in Eclipse RCP application [message #902947 is a reply to message #899046] Tue, 21 August 2012 07:29 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
I have add xtext OCL console but i have found one problem. When i select any EObject for first time all ocl statements are running fine. But once i will reselect(after selecting somthing else) the same EObject then properties from super EClass are not recognized.

i get "Unresolved property 'XYZ' for 'unknown-type'" and this only happens for the inherited properties of EObject's EClass(EClass has super class).
do you have any clue why it is so?

Regards,

[Updated on: Tue, 21 August 2012 07:35]

Report message to a moderator

Re: EMF OCL Console in Eclipse RCP application [message #903004 is a reply to message #902947] Tue, 21 August 2012 11:14 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

I suspect that the incremental update of the OCL pivot meta-model in the
console has got confused. I've certainly fixed bugs in this area.

Please file a bug identifying the OCL software version you are using.

Workaround: close the console and open a new Console.

Regards

Ed Willink


On 21/08/2012 12:29, ModelGeek Mising name wrote:
> I have add xtext OCL console but i have found one problem. When i
> select any EObject for first time all ocl statements are running fine.
> But once i will reselect(after selecting somthing else) the same
> EObject then properties from super EClass are not recognized.
>
> do you have any clue why it is so?
>
> Regards,
>
>
Re: EMF OCL Console in Eclipse RCP application [message #903142 is a reply to message #903004] Wed, 22 August 2012 04:02 Go to previous messageGo to next message
ModelGeek Mising name is currently offline ModelGeek Mising name
Messages: 500
Registered: June 2011
Senior Member
Hi,

The model i am using is not pivot based it is based on the old version but in near future i want to upgrade to pivot based model.

Should i still report a bug?

Regards,
Khurram Shahzad
Re: EMF OCL Console in Eclipse RCP application [message #903164 is a reply to message #903142] Wed, 22 August 2012 07:04 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4032
Registered: July 2009
Senior Member
Hi

The user interchange for OCL is the Concrete Syntax, so it is easy to
change between the old and new implementations, and users may not be
aware which they are using (it is even possible to use both at once with
strange delegate URI settings).

Your earlier email mentioned the Xtext OCL Console which means you are
using the pivot-based OCL model while editing the command line and for
evaluating within the console (you might switch to the old Ecore if you
invoke a delegated property or operation).

So if the problem occurs in the Juno Xtext OCL Console, please report it.

Regards

Ed Willink

On 22/08/2012 09:02, ModelGeek Mising name wrote:
> Hi,
>
> The model i am using is not pivot based it is based on the old version
> but in near future i want to upgrade to pivot based model.
>
> Should i still report a bug?
>
> Regards,
> Khurram Shahzad
Previous Topic:processing AST, finding out if current parsed part is the body of the OCL expression
Next Topic:[Announce] Eclipse OCL 4.0.1 (Juno SR1) RC1 is now available
Goto Forum:
  


Current Time: Wed Aug 27 11:13:00 EDT 2014

Powered by FUDForum. Page generated in 0.03355 seconds