Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » follow-up on Run/Debug as Java application for Xbase languages
follow-up on Run/Debug as Java application for Xbase languages [message #1718998] Mon, 04 January 2016 10:48 Go to next message
Steven Derrien is currently offline Steven DerrienFriend
Messages: 50
Registered: July 2009
Member
Hello,

I am trying to add a "run-as java application"feature to my Xbase based DSL.
After digging a bit around, I fell on this bug report :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=457313

Although I was able to get a working "run-as application" command from the editor thanks
to the BuilsDSL example , I am stuck when it comes to have the same functionnality from the explorer (starting from a
IStructuredSelection object).

Any advice on where to look for examples on how to do this ?

Thanks in advance,

Regards,

Steven Derrien
Re: follow-up on Run/Debug as Java application for Xbase languages [message #1718999 is a reply to message #1718998] Mon, 04 January 2016 10:55 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 04/01/2016 11:48, Steven Derrien wrote:
> Hello,
>
> I am trying to add a "run-as java application"feature to my Xbase based
> DSL.
> After digging a bit around, I fell on this bug report :
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=457313
>
> Although I was able to get a working "run-as application" command from
> the editor thanks
> to the BuilsDSL example , I am stuck when it comes to have the same
> functionnality from the explorer (starting from a IStructuredSelection
> object).
>
> Any advice on where to look for examples on how to do this ?
>

Hi Steven

you may want to have a look here:
https://github.com/LorenzoBettini/javamm/tree/master/javamm.ui/src/javamm/ui/launch

I adapted that from the builddsl, as suggested in the bug.

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Re: follow-up on Run/Debug as Java application for Xbase languages [message #1719107 is a reply to message #1718999] Tue, 05 January 2016 10:54 Go to previous messageGo to next message
Steven Derrien is currently offline Steven DerrienFriend
Messages: 50
Registered: July 2009
Member
Hi Lorenzo,

Thank you for the hint, I was able to make it work (but have to parse the Xext/Xbase model everything to figure out what
is the class + package name).

Where you able to debug your xbase language (as indicated on your blog
http://www.rcp-vision.com/?p=4089&lang=en) with this approach ?

Or maybe this is not possible anymore with xbase 2.9 ?

Thank again,

Steven

Le 04/01/2016 11:55, Lorenzo Bettini a écrit :
> On 04/01/2016 11:48, Steven Derrien wrote:
>> Hello,
>>
>> I am trying to add a "run-as java application"feature to my Xbase based
>> DSL.
>> After digging a bit around, I fell on this bug report :
>>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=457313
>>
>> Although I was able to get a working "run-as application" command from
>> the editor thanks
>> to the BuilsDSL example , I am stuck when it comes to have the same
>> functionnality from the explorer (starting from a IStructuredSelection
>> object).
>>
>> Any advice on where to look for examples on how to do this ?
>>
>
> Hi Steven
>
> you may want to have a look here:
> https://github.com/LorenzoBettini/javamm/tree/master/javamm.ui/src/javamm/ui/launch
>
> I adapted that from the builddsl, as suggested in the bug.
>
> cheers
> Lorenzo
>
Re: follow-up on Run/Debug as Java application for Xbase languages [message #1719327 is a reply to message #1719107] Thu, 07 January 2016 09:45 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 05/01/2016 11:54, Steven Derrien wrote:
> Hi Lorenzo,
>
> Thank you for the hint, I was able to make it work (but have to parse
> the Xext/Xbase model everything to figure out what is the class +
> package name).
>
> Where you able to debug your xbase language (as indicated on your blog
> http://www.rcp-vision.com/?p=4089&lang=en) with this approach ?
>
> Or maybe this is not possible anymore with xbase 2.9 ?

Hi Steven

that blog post is really old.

But in the project
https://github.com/LorenzoBettini/javamm/tree/master/javamm.ui/src/javamm/ui/launch
debugging works seamlessly :)

did you experience any specific problem?

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book


Previous Topic:Explanation of 2.9 parent and target projects
Next Topic:Use of IGeneratorContext in doGenerate function
Goto Forum:
  


Current Time: Sat Apr 27 02:46:13 GMT 2024

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

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

Back to the top