Home » Modeling » TMF (Xtext) » Re: "Greedy" Content Assist
|
Re: "Greedy" Content Assist [message #669456 is a reply to message #669274] |
Tue, 10 May 2011 11:58 |
|
On 05/09/2011 07:01 PM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> multiple languages are not an issue.
> Btw: 'activeWhen' was changed to use the activePart instead of the
> activeEditor in Xtext 2.0.
>
> Regards,
> Sebastian
Thus, summarizing, is it enough to add to the plugin.xml of the plugin
where I have the embedded xtext editor this part?
<extension
point="org.eclipse.core.expressions.definitions">
<definition id="isActiveEditorAnInstanceOfXtextEditor">
<with variable="activePart">
<adapt type="org.eclipse.xtext.ui.editor.XtextEditor"/>
</with>
</definition>
</extension>
because it does not seem to work:
the content assist does not show in the editor embedded in another
composite...
thanks in advance
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Re: "Greedy" Content Assist [message #669530 is a reply to message #669456] |
Tue, 10 May 2011 15:35 |
|
Sorry for the noise: I actually didn't need this :)
cheers
Lorenzo
On 05/10/2011 01:58 PM, Lorenzo Bettini wrote:
> On 05/09/2011 07:01 PM, Sebastian Zarnekow wrote:
>> Hi Lorenzo,
>>
>> multiple languages are not an issue.
>> Btw: 'activeWhen' was changed to use the activePart instead of the
>> activeEditor in Xtext 2.0.
>>
>> Regards,
>> Sebastian
>
> Thus, summarizing, is it enough to add to the plugin.xml of the plugin
> where I have the embedded xtext editor this part?
>
> <extension
> point="org.eclipse.core.expressions.definitions">
> <definition id="isActiveEditorAnInstanceOfXtextEditor">
> <with variable="activePart">
> <adapt type="org.eclipse.xtext.ui.editor.XtextEditor"/>
> </with>
> </definition>
>
> </extension>
>
> because it does not seem to work:
> the content assist does not show in the editor embedded in another
> composite...
>
> thanks in advance
> Lorenzo
>
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Re: "Greedy" Content Assist [message #669558 is a reply to message #669530] |
Tue, 10 May 2011 18:02 |
Sebastian Zarnekow Messages: 3118 Registered: July 2009 |
Senior Member |
|
|
Hi Lorenzo,
I take it works now for you?
Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 10.05.11 17:35, schrieb Lorenzo Bettini:
> Sorry for the noise: I actually didn't need this :)
>
> cheers
> Lorenzo
>
> On 05/10/2011 01:58 PM, Lorenzo Bettini wrote:
>> On 05/09/2011 07:01 PM, Sebastian Zarnekow wrote:
>>> Hi Lorenzo,
>>>
>>> multiple languages are not an issue.
>>> Btw: 'activeWhen' was changed to use the activePart instead of the
>>> activeEditor in Xtext 2.0.
>>>
>>> Regards,
>>> Sebastian
>>
>> Thus, summarizing, is it enough to add to the plugin.xml of the plugin
>> where I have the embedded xtext editor this part?
>>
>> <extension
>> point="org.eclipse.core.expressions.definitions">
>> <definition id="isActiveEditorAnInstanceOfXtextEditor">
>> <with variable="activePart">
>> <adapt type="org.eclipse.xtext.ui.editor.XtextEditor"/>
>> </with>
>> </definition>
>>
>> </extension>
>>
>> because it does not seem to work:
>> the content assist does not show in the editor embedded in another
>> composite...
>>
>> thanks in advance
>> Lorenzo
>>
>
>
|
|
|
Re: "Greedy" Content Assist [message #669689 is a reply to message #669558] |
Wed, 11 May 2011 07:15 |
|
On 05/10/2011 08:02 PM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> I take it works now for you?
>
> Regards,
> Sebastian
Hi Sebastian
actually I didn't need to put this definition extension in my plugin: I
can embed the xtext editor in a property view without it :)
however, I'd like to know about the thread "XtextEditor based on a
string" I started, since it's related to my context (though for the
moment I managed to find a solution)
cheers
Lorenzo
--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
HOME: http://www.lorenzobettini.it
TDD Book: https://leanpub.com/tdd-buildautomation-ci
Xtext Book: https://www.packtpub.com/application-development/implementing-domain-specific-languages-xtext-and-xtend-second-edition
|
|
|
Goto Forum:
Current Time: Fri Apr 26 21:40:10 GMT 2024
Powered by FUDForum. Page generated in 0.02884 seconds
|