Skip to main content



      Home
Home » Modeling » TMF (Xtext) » try-with-resource in Xbase
icon5.gif  try-with-resource in Xbase [message #1745608] Thu, 13 October 2016 05:37 Go to next message
Eclipse UserFriend
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 05:39] by Moderator

Re: try-with-resource in Xbase [message #1745612 is a reply to message #1745608] Thu, 13 October 2016 07:17 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: try-with-resource in Xbase [message #1745641 is a reply to message #1745612] Thu, 13 October 2016 13:11 Go to previous message
Eclipse UserFriend
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: Tue Jul 08 14:17:29 EDT 2025

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

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

Back to the top