Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsContent Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1077845/#msg_1077845
I am using xtext 2.4.2 in my eclipse and when i use xtext OCL console then content assist is not as powerful as in interactive OCL console. For example content assist is not available for "." and "->" and even when "ctrl+space" is used the options in intellisence is not as complete as in interactive ocl console.
Do you have any clue why is that?
Regards,
]]>ModelGeek Mising name2013-08-02T08:13:30-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1077867/#msg_1077867
That is just not true. Content assist is available
e.g."self." ctrl+space gives me a lot of options.
Regards
Ed Willink
On 02/08/2013 09:13, ModelGeek Mising name wrote:
> Hi,
>
> I am using xtext 2.4.2 in my eclipse and when i use xtext OCL console
> then content assist is not as powerful as in interactive OCL console.
> For example content assist is not available for "." and "->" and even
> when "ctrl+space" is used the options in intellisence is not as
> complete as in interactive ocl console.
>
>
> Do you have any clue why is that?
>
> Regards,
>]]>Ed Willink2013-08-02T08:42:40-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1077877/#msg_1077877
I mean normally "." and "->" invokes content assist in interactive OCL Console but in xtext OCL console user has to press "Ctrl + space" invoke content assist. But this not a major problem... so we forget this point.
The major problem is options avaialble in content assist
"let x : Set(Integer) = Set{10,20,30} in x->" use this OCL in first interactive OCL console, you will see all available collection operations are available as option. Use the same OCL in xtext OCL console and check options list, collection operations are not available for me.
regards,
]]>ModelGeek Mising name2013-08-02T08:59:07-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1077915/#msg_1077915
Auto-Ctrl+Space is not yet provided by Xtext. Please raise a bug against
Xtext. (If you try Ctrl+space in Xtext itself, it is dreadful for keywords.)
Missing collection operations; Thanks. Please raise an OCL Bugzilla.
Regards
Ed Willink
On 02/08/2013 09:59, ModelGeek Mising name wrote:
> May be i did not explain my question properly..
>
> I mean normally "." and "->" invokes content assist in interactive OCL
> Console but in xtext OCL console user has to press "Ctrl + space"
> invoke content assist. But this not a major problem... so we forget
> this point.
>
> The major problem is options avaialble in content assist
> "let x : Set(Integer) = Set{10,20,30} in x->" use this OCL in first
> interactive OCL console, you will see all available collection
> operations are available as option. Use the same OCL in xtext OCL
> console and check options list, collection operations are not
> available for me.
>
> regards,
>]]>Ed Willink2013-08-02T09:58:07-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1078360/#msg_1078360
In certain cases Xtext allows Content Assist Auto Activation http://christiandietrich.wordpress.com/2011/09/19/xtext-content-assist-auto-activation/]]>Christian Dietrich2013-08-02T23:01:43-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1078672/#msg_1078672
Thanks. I've added a comment with the Fragment syntax variation.
Regards
Ed Willink
On 03/08/2013 00:01, Christian Dietrich wrote:
> Hi Ed,
> In certain cases Xtext allows Content Assist Auto Activation
> http://christiandietrich.wordpress.com/2011/09/19/xtext-content-assist-auto-activation/
>]]>Ed Willink2013-08-03T10:47:18-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1078679/#msg_1078679
Thanks to Christian this is now fixed on my workstation.
should show availability in an N-build in a few days.
Regards
Ed Willink
On 02/08/2013 09:59, ModelGeek Mising name wrote:
> I mean normally "." and "->" invokes content assist in interactive OCL
> Console but in xtext OCL console user has to press "Ctrl + space"
> invoke content assist. But this not a major problem... so we forget
> this point.]]>Ed Willink2013-08-03T11:00:57-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1085023/#msg_1085023
414286 - Content assist, Missing collection operations in XText OCL Console) and it is still showing Unconfirmed status.
will it be solved in any upcoming N-build?
Regards,
]]>ModelGeek Mising name2013-08-12T10:53:28-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1085220/#msg_1085220
Sorry. Unlikely. I have more important challenges to deal with. So long
as the Bugzilla remains open it reminds me of one of the many things I
need to do.
Regards
Ed Willink
On 12/08/2013 11:53, ModelGeek Mising name wrote:
> I raised a bug (414286 - Content assist, Missing collection operations
> in XText OCL Console) and it is still showing Unconfirmed status.
>
> will it be solved in any upcoming N-build?
>
> Regards,
>]]>Ed Willink2013-08-12T15:56:39-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1085655/#msg_1085655
if you please guide me how those missing collection operations can be added then i might try to add them myself.
thanks!
Regards,]]>ModelGeek Mising name2013-08-13T07:24:05-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1085700/#msg_1085700
It's a difficult area, since OCL "." and "->" operators are rather
'versatile' and so have too much manual pragmatism. They will pose
challenges as we move to a more model-defined resolution.
There are a variety of XXXAttribution classes whose computeLookup method
contributes candidate names to an Environment view.
The problem is that one of them lacks the implicit object/collection
conversions while looking up. The conversion must be occurring ok elsewhere.
I really don't recommend trying to understand it.
Regards
Ed Willink
On 13/08/2013 08:24, ModelGeek Mising name wrote:
> Yes i understand.
>
> if you please guide me how those missing collection operations can be
> added then i might try to add them myself.
>
> thanks!
>
> Regards,]]>Ed Willink2013-08-13T08:42:23-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1092999/#msg_1092999
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.AbstractEssentialOCLProposalProvider
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.EssentialOCLProposalProvider
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.antlr.EssentialOCLParser
what are the roles of these classes in content assist? can you please give me some hints how to do it. I can give it a try as i have done changes in standard ocl library and it works fine. Now i need to use xtext editors to have content assist.
thanks for assistance!]]>ModelGeek Mising name2013-08-23T12:23:03-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1093000/#msg_1093000
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.AbstractEssentialOCLProposalProvider
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.EssentialOCLProposalProvider
org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.antlr.EssentialOCLParser
what are the roles of these classes in content assist? can you please give me some hints how to do it. I can give it a try as i have done changes in standard ocl library and it works fine. Now i need to use xtext editors to have content assist.
thanks for assistance!]]>ModelGeek Mising name2013-08-23T12:23:37-00:00Re: Content Assist in Xtext OCL Console
https://www.eclipse.org/forums/index.php/mv/msg/497626/1093016/#msg_1093016
The files you mention are all generated/seeded by Xtext and normally
only need changing when the defaul Xtext behaviour needs augmenting.
Never even look at anything with "antlr" in the name.
AbstractEssentialOCLProposalProvider is in src-gen,. so only ever edit
it for quick experiments.
EssentialOCLProposalProvider is in src and so provides the place to
customize AbstractEssentialOCLProposalProvider.
You will see that OCLstdlibProposalProvider inherits from
AbsdtractOCLstdlibProposalProvider which inherits from
EssentialOCLProposalProvider, so a fix for Essential OCL tends to make
all OCL-based editors better.
I was looking at https://bugs.eclipse.org/bugs/show_bug.cgi?id=414286
last night and was totally unable to reproduce it. For collections I see
size() and select() although perhaps "select" is lower down because of
the separate Operation/Iteration grouping.
However when I added a JUnit test to
/org.eclipse.ocl.examples.xtext.tests/src/org/eclipse/ocl/examples/test/xtext/CompletionProposalTests.java
to prove it, that threw up different strange behaviours that need
investigating.
Regards
Ed Willink
On 23/08/2013 13:23, ModelGeek Mising name wrote:
> Essential OCL UI plugin contains different files related to content
> assist like
> org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.AbstractEssentialOCLProposalProvider
>
> org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.EssentialOCLProposalProvider
>
> org.eclipse.ocl.examples.xtext.essentialocl.ui.contentassist.antlr.EssentialOCLParser
>
>
> what are the roles of these classes in content assist? can you please
> give me some hints how to do it. I can give it a try as i have done
> changes in standard ocl library and it works fine. Now i need to use
> xtext editors to have content assist.
>
> thanks for assistance!]]>Ed Willink2013-08-23T12:54:52-00:00