In both cases, the following statement in a template is used to print a message to the console:

printWarning('some warning message')/]

I can not find a console view where this message is shown. However, when I create a simple Java application with one System.out.println statement, the console is popped up immediately showing the desired text.

Does anyone know what I am doing wrong? Is there some setting I missed? Help is really appreciated here.

During the generation, the Acceleo generator is deployed in your current Eclipse instance and as such, you can't access the console. If you need to log some information, you would need to use something like this:

WorkbenchPlugin.getDefault().getLog().log(...)

You would have to use the logging mechanism of the Eclipse platform. More information on this on the Eclipse wiki here and there.

Or if it's for debugging a Java service, you can always try to throw a new runtime exception.

During the generation, the Acceleo generator is deployed in your current Eclipse instance and as such, you can't access the console. If you need to log some information, you would need to use something like this:

WorkbenchPlugin.getDefault().getLog().log(...)

You would have to use the logging mechanism of the Eclipse platform. More information on this on the Eclipse wiki here and there.

Or if it's for debugging a Java service, you can always try to throw a new runtime exception.

Regards,

Stephane Begaudeau, Obeo

Thanks Stephane,

I know understand what the problem was. Using your information I got a warning message to be logged in the error log, which is perfect in my case!