Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Re: "Greedy" Content Assist
Re: "Greedy" Content Assist [message #669274] Mon, 09 May 2011 17:01 Go to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
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
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 09.05.11 18:49, schrieb Lorenzo Bettini:
> Hi
>
> I found this old post.
> since I have a similar issue, having embedded an editor in
> another editor (in the property view of the editor), and
> the content assist does not work, I'd like to try this
> solution, and would like to know whether the problem of
> multiple languages raised by Sebastian is actually an
> issue.
>
> thanks in advance
> Lorenzo
Re: "Greedy" Content Assist [message #669456 is a reply to message #669274] Tue, 10 May 2011 11:58 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
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


Re: &quot;Greedy&quot; Content Assist [message #669530 is a reply to message #669456] Tue, 10 May 2011 15:35 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
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


Re: &quot;Greedy&quot; Content Assist [message #669558 is a reply to message #669530] Tue, 10 May 2011 18:02 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
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: &quot;Greedy&quot; Content Assist [message #669689 is a reply to message #669558] Wed, 11 May 2011 07:15 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
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


Previous Topic:Xtext 1.0.2 (Helios) maintenance &amp; Xtext 2.0 (Indigo) working on Helios
Next Topic:\n in xtext
Goto Forum:
  


Current Time: Fri Apr 26 21:40:10 GMT 2024

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

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

Back to the top