Eclipse IDE provides a cool feature which allows you to execute XSL templates within the IDE. You just need to select the XSL file together with the XML file and choose from the context menu
Run As -> XSL Transformation
But for some reasons Eclipse is not supporting XSL 2.0 – which is standard in these days. So for example if you try to use xsl functions like ‘format-date-time’ or ‘replace’ this will not work. This is also true for Wilfly application server. So here is how to add XSLT 2.0 support for both – Eclipse and Wilffly
You can install an XSLT 2.0 processor manually into your Eclipse IDE:
- Download the latest Saxon XSLT processor
- Unzip the package to get the saxon9he.jar file and place it into your workspace or some external folder
- In eclipse choose “Window > Preferences” then “XML > XSL > Java Processors > Add”
- Fill in a “Processor Name”, e.g. “Saxon XSLT 2.0”
- In field “Processor type” choose “Saxon (XSLT 2.0)”
- Choose “Add external jar” and choose your saxon jar, e.g. “saxon9he.jar”
- Confirm by clicking “OK”
Now you can use saxon for XSLT 2.0 transformations in Eclipse. You need just configure your Run As Configurations and select the option ‘use specific process‘ to select the newly added Saxon processor.
Also wildfly server supports only XSL 1.0 per default. If you need XSL 2.0 in your application add the following maven dependency:
<!-- XSL 2.0 support-->
In eclipse maven project it’s annoying that Eclipse IDE always validates all files from the /target/ folders – which makes no sense in any case.
To avoid this validation you can disable the specific validator in the workspace preferences. Go to validators and edit the XML and JSF Validator and add a ‘Exclude Group – Rule’ for the folder
You can also exclude specific files. In my case I exclude the file
Today I had strange problems with Eclipse Luna after an Ubuntu Update.
The solution was changing the eclipse.ini by adding
and changing the memory settings.
Thanks to Bård Aase Blog: http://blog.elzapp.com/2014/07/01/making-eclipse-kepler-and-luna-work-on-ubuntu.html
After downloading the new Eclipse IDE Mars I was disappointed of the corrupted design. Several dialog pages did not work as expected or were empty until the dialog window was resized.
As Eclipse release 4.5 (Mars) is based on GTK 3, the problem in my case was the missing library “gtk3-engines-oxygen”. This it the so called Oxygen widget theme for GTK3-based applications like the Eclipse Mars release.
After installing the missing library with apt:
apt-get install gtk3-engines-oxygen
the Eclipse Mars Release works perfect!
Customize Eclipse them Jeeeyul’s Eclipse Themes
A very nice plug-in for Eclipse is the ‘Jeeeyul’s Eclipse Themes‘. This plug-in provides a set of cool themes for eclipse and also a cool editor to customize the theme individually.
Adjusting the window margins
Another annoying thing in Eclipse GTK with Gnome is the small margin between to windows so you cant grasp the space with the mouse to resize the view.This problem can also be solved directly with the Jeeeyul’s plug-in:
In the ‘General’ section of the Jeeeyul’s Themes section you can change the “Winddow Pacing”. Disable the option ‘Cast Shadow’ and set ‘Part Stack Spacing’ to 5 and ‘Margins’ to 0. After that you need to restart Eclipse.
Alternative: Disable GTK3
An alternative is to simply deactivate GTK3 for Eclipse Mars. You need to set the environment variable ‘SWT_GTK3’ to ‘0’.
I am using the following bash start script to launch Eclipse Mars:
See also the comments below.
This is the third part of my tutorial about how to extend the Eclipse BMN2 Plugin. See also:
In this part I will explain some details about how to manage properties of a custom task element and how to implement custom property sections. Continue reading “Extending Eclipse BPMN2 Plugin – Part III.”
This is the second part of my tutorial about how to extend the Eclipse BMN2 Plugin. See also:
In the second part I will explain how to create a custom model extension and how to define a custom property section for the Task Element created in Part-I. Continue reading “Extending Eclipse BPMN2 Plugin – Part II.”
In this tutorial I explain some of my experiences in extending the Eclipse BPMN2 Modeler with custom elements and properties. I am extending the BPMN2 Modeler to provide a custom BPMN runtime extension for the Imixs-Workflow Project. You will find the results of this project here.
Continue reading “Extending Eclipse BPMN2 Plugin – Part I.”