output.addLine("Transformation in progress (" + new Date().toString() + ")");
pimviewer.setTransforming(true);
try{
fileviewer.clear ();
setLastTransformation (action);
PropertyGroup group = transformationeditor.getPropertyManager().getPropertyGroupForItem(action);
String type = group.getProperty("Type");
String outputtype = group.getProperty("Outputtype");
String implementation = FileUtils.replaceSeparator(group.getProperty("Implementation"));
String direction = group.getProperty("Direction");
String gendir = "src";
if (current_store_dir != null && !(current_store_dir.equals(""))){
gendir = current_store_dir + System.getProperty("file.separator") + gendir;
}
ProjectEditor current = null;
try {
current = projectmanager.getCurrentProject();
if (current != null) {
gendir = current.getGenDir ();
gendir = current.getLocation() + System.getProperty("file.separator") + gendir;
String userfile = current.getUserPropertiesFile();
PropertyGroup userprops = current.getUserProperties();
if (userfile != null && !userfile.equals("")) {
// Create the user parameters and store them to the file
// get directory from the location of the 'implementation'
File implfile = new File (implementation);
String dir = implfile.getParent();
if(dir != null) {
PrintWriter pf = null;
try {
File file = new File (dir + System.getProperty("file.separator") + userfile);
pf = new PrintWriter( new FileWriter (file));
pf.println("<xsl:stylesheet version=\"1.0\" xmlns:xsl=\"http:// www.w3.org/1999/XSL/Transform\">");
pf.println("\n\n<!-- Generated file for user properties.-->\n\n");
Map userproperties = userprops.getProperties();
Iterator names = userproperties.keySet().iterator();
while (names.hasNext()) {
String name = (String)names.next();
String[] value = (String[])userproperties.get(name);