Menu

Commit [r3137]  Maximize  Restore  History

Also update the jetemplate element content

hotzst 2010-03-21

changed /trunk/ch.sahits.codegen.addon/src/ch/sahits/codegen/java/util/Propagator.java
/trunk/ch.sahits.codegen.addon/src/ch/sahits/codegen/java/util/Propagator.java Diff Switch to side-by-side view
--- a/trunk/ch.sahits.codegen.addon/src/ch/sahits/codegen/java/util/Propagator.java
+++ b/trunk/ch.sahits.codegen.addon/src/ch/sahits/codegen/java/util/Propagator.java
@@ -40,7 +40,9 @@
 		synchronized (this) {
 			initialized=true;
 		}
+		setChanged();
 		notifyObservers();
+		clearChanged();
 	}
 	/**
 	 * Check if the version is 1.0
@@ -218,11 +220,12 @@
 	 * @param root Element root
 	 * @param pluginID
 	 */
-	public void setJetemplatePlugin(String pluginID){
+	public void setJetemplatePlugin(String pluginID,String storeLocation){
 		Element generationNode = root.getChild("generation");
 		Element elem = generationNode.getChild("jetemplate");
 		elem.removeAttribute("inPlugin");
 		elem.setAttribute("pluginID", pluginID);
+		elem.setText(storeLocation);
 	}
 	/**
 	 * Set the plug-in id for the generator class
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.