My computer blog is now moving to my new home page, http://www.lorenzobettini.it, however, all the posts already available in this blog will not be removed.
Wednesday, November 07, 2012
Tuesday, May 22, 2012
The JvmModelInferrer, the debugger and Xbase in Xtext 2.3
See the original post here:
The JvmModelInferrer, the debugger and Xbase in Xtext 2.3
Pubblicato da betto a 7:07 PM 0 commenti
Wednesday, May 09, 2012
Eclipse internal Web Browser in Kubuntu Precise Pangoline 12.04
This can be seen as a sort of follow-up of my previous post, Eclipse internal Web Browser in Ubuntu Lucid: after installing Kubuntu Precise Pangolin 12.04 the internal browser of Eclipse stopped working. In particular, when using Mylyn Gerrit connector (relying on OpenID authentication, which requires the eclipse internal browser) I got this error
org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)])and indeed, by looking at the preferences corresponding to the Web browser I cannot select the internal browser:
Last time, I had solved this problem by installing the xulrunner package, but, sad to hear, this package has been dropped since Oneiric!
Fortunately, we can rely on another package:
sudo apt-get install libwebkitgtk-1.0-0and you'll enjoy Eclipse internal web browser again! :)
Pubblicato da betto a 9:02 PM 7 commenti
Friday, February 03, 2012
Closing the Eclipse Welcome screen programmatically
When writing Junit plugin tests in Eclipse I wanted to close the welcome page programmatically before starting the tests; looks like it's pretty easy :) Just use this @BeforeClass static method and you'll be fine!
@BeforeClass
public static void closeWelcome() {
final IIntroManager introManager =
PlatformUI.getWorkbench().getIntroManager();
IIntroPart part = introManager.getIntro();
introManager.closeIntro(part);
}
Pubblicato da betto a 11:54 AM 1 commenti
Monday, December 26, 2011
Xtext 2.1: using Xbase variables
See the original post here:
Xtext 2.1: using Xbase variables
In this post, I’d like to continue to inspect how to use only a small part of Xbase and still have the control on the generation part: in particular (for other projects) I would like to retain the control on the generation for my model, while relying on the Xbase generation for the Xbase parts. Thus, in this post I’ll describe:
- how to integrate Xbase variables (XVariableDeclaration) and expressions (XExpression) in your DSL
- how to extend Xbase scoping for making the variables visible in the expressions
- write a generator for your DSL and reuse the XbaseCompiler for the code of XVariableDeclaration and XExpressions
Pubblicato da betto a 10:43 AM 0 commenti
Wednesday, November 23, 2011
Xtext 2.1: using Xbase expressions
See the whole blog post here:
Xtext 2.1: using Xbase expressions
I’d like to inspect how to use only a small part of Xbase and still have the control on the generation part: in particular (for other projects) I would like to retain the control on the generation for my model, while relying on the Xbase generation for the Xbase parts. Thus, in this post I’ll describe:
- how to integrate Xbase expressions (XExpression) in your DSL
- write a generator for your DSL and reuse the XbaseCompiler for the code of XExpressions
Pubblicato da betto a 3:01 PM 0 commenti