Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » try-with-resource in Xbase
icon5.gif  try-with-resource in Xbase [message #1745608] Thu, 13 October 2016 09:37 Go to next message
Stéphane Galland is currently offline Stéphane GallandFriend
Messages: 123
Registered: July 2014
Location: Belfort, France
Senior Member
Dear all.

Is there a plan to support an expression similar to the Java try-with-resources in the Xbase layer?

If not, is there a tutorial that explain how to create new XExpression (with the type, the Java generator, etc.)?

All the best.
Stéphane.

[Updated on: Thu, 13 October 2016 09:39]

Report message to a moderator

Re: try-with-resource in Xbase [message #1745612 is a reply to message #1745608] Thu, 13 October 2016 11:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13888
Registered: July 2009
Senior Member
hi Stephane,

sounds like

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

currently there is nobody working on this

afaik lorenzo bettinis new book has some content on how to extend xbase


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: try-with-resource in Xbase [message #1745641 is a reply to message #1745612] Thu, 13 October 2016 17:11 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1775
Registered: July 2009
Location: Firenze, Italy
Senior Member
Yes, in the second edition of the book there's an example for extending Xbase, the type system and the compiler.

Concerning try-with-resources, I've implemented that feature in Jbase, https://github.com/LorenzoBettini/jbase (in particular, this is the PR implementing that https://github.com/LorenzoBettini/jbase/pull/60).

I was not aware of the bug for Xbase for try-with-resources, and now I plan to work on that! Smile


Previous Topic:Symbol
Next Topic:One file extension for different plug-ins?
Goto Forum:
  


Current Time: Wed Apr 21 15:40:34 GMT 2021

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

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

Back to the top