Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » migrating to Xtext 2.3 and ITreeAppendable
migrating to Xtext 2.3 and ITreeAppendable [message #826625] Thu, 22 March 2012 09:51 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I started to migrate my DSL to Xtext 2.3 milestone; in the compiler
methods I see that now Xbase requires an ITreeAppendable instead of
IAppendable... since I was using StringBuilderBasedAppendable (which
does not implement ITreeAppendable), what class should I use now? would
the class TreeAppendable be OK?

thanks in advance
Lore

--
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: migrating to Xtext 2.3 and ITreeAppendable [message #827211 is a reply to message #826625] Fri, 23 March 2012 02:35 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Lorenzo,

what do you want to do? The appendable is created by the framework and
passed to clients.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 22.03.12 05:51, schrieb Lorenzo Bettini:
> Hi
>
> I started to migrate my DSL to Xtext 2.3 milestone; in the compiler
> methods I see that now Xbase requires an ITreeAppendable instead of
> IAppendable... since I was using StringBuilderBasedAppendable (which
> does not implement ITreeAppendable), what class should I use now? would
> the class TreeAppendable be OK?
>
> thanks in advance
> Lore
>
Re: migrating to Xtext 2.3 and ITreeAppendable [message #827423 is a reply to message #827211] Fri, 23 March 2012 10:04 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 03/23/2012 03:35 AM, Sebastian Zarnekow wrote:
> Hi Lorenzo,
>
> what do you want to do? The appendable is created by the framework and
> passed to clients.
>
> Regards,
> Sebastian

Hi Sebastian

in this DSL I'm not using the inferrer (for the moment) and I have a
custom xbase compiler which I call from the generator, thus I have to
create the appendable myself...

Is FakeTreeAppendable the right substitute?

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: migrating to Xtext 2.3 and ITreeAppendable [message #828478 is a reply to message #827423] Sat, 24 March 2012 21:51 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Lorenzo,

yes you can use that but you won't get debugging for free.
TreeAppendable is the actual implementation, but it imposes some
constraints on how you use the compiler. If you don't need the tracing
and jsr45 stuff, FakeTreeAppendable is the way to go.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 23.03.12 06:04, schrieb Lorenzo Bettini:
> On 03/23/2012 03:35 AM, Sebastian Zarnekow wrote:
>> Hi Lorenzo,
>>
>> what do you want to do? The appendable is created by the framework and
>> passed to clients.
>>
>> Regards,
>> Sebastian
>
> Hi Sebastian
>
> in this DSL I'm not using the inferrer (for the moment) and I have a
> custom xbase compiler which I call from the generator, thus I have to
> create the appendable myself...
>
> Is FakeTreeAppendable the right substitute?
>
> thanks in advance
> Lorenzo
>
Re: migrating to Xtext 2.3 and ITreeAppendable [message #1146533 is a reply to message #828478] Sun, 20 October 2013 07:52 Go to previous message
Hirdesh Agrawal is currently offline Hirdesh AgrawalFriend
Messages: 13
Registered: October 2013
Junior Member
Dear All,

I need your favor or suggestion regarding migrate the xtext version from 1.0.1 to 2.3.0 in custom application.

I followed all following process for migrate the xtext version.
1. Delete the old plug-ins and update the latest plug-ins in target platform.
2. Update the Plug-in Dependencies and Import Statements.
3. Introduction of the Qualified Name.
4. Changes in the index and in find references.
5. Rewritten Node Model.
6. AutoEditStrategy.
7. Other Noteworthy API Changes
To consider the above steps, I started the work with Eclipse-4.2, Which has a xtext-2.3.0 dependency. Successfully I completed the all above steps and removed the compilation error.

Problem: After that I start the testing and getting below error Messages:
[XtextLinkingDiagnostic: null:6 Couldn't resolve reference to Material 'MPS_RECUR'.,
XtextLinkingDiagnostic: null:9 Couldn't resolve reference to Cstic 'NUM_OF_ALLOC'.,
XtextLinkingDiagnostic: null:15 Couldn't resolve reference to Cstic 'INSTANCE_NUM'.,
XtextLinkingDiagnostic: null:14 Couldn't resolve reference to Class 'ALLOC'.]
Previous Topic:Migration strategies
Next Topic:Problems with imports after migrating to xtext 2.0
Goto Forum:
  


Current Time: Fri Apr 26 13:42:30 GMT 2024

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

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

Back to the top