Index: topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityAttributesPanel.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityAttributesPanel.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityAttributesPanel.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityAttributesPanel.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityAttributesPanel.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/30 14:38:59 $ - * par : $Author: pineau $ + * Mise a jour: $Date: 2004/08/06 17:48:52 $ + * par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -35,6 +35,7 @@ import java.io.IOException; import java.io.Writer; +import org.codelutin.generator.Generator; import org.codelutin.generator.AbstractObjectModelGenerator; import org.codelutin.generator.models.object.ObjectModelClass; import org.codelutin.generator.models.object.ObjectModelAttribute; @@ -47,6 +48,14 @@ * chaque entite */ public class ObjectModelToEntityAttributesPanel extends AbstractObjectModelGenerator{ // ObjectModelToEntityAttributesPanel + + public ObjectModelToEntityAttributesPanel(){ + super(); + } + + public ObjectModelToEntityAttributesPanel(Generator parent){ + super(parent); + } public String getFilenameForClass(ObjectModelClass clazz) { return (clazz.getPackageName() + ".ui.") Index: topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityPanel.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * -* Mise a jour: $Date: 2004/07/30 14:38:59 $ -* par : $Author: pineau $ +* Mise a jour: $Date: 2004/08/06 17:48:52 $ +* par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -35,6 +35,7 @@ import java.io.IOException; import java.io.Writer; +import org.codelutin.generator.Generator; import org.codelutin.generator.AbstractObjectModelGenerator; import org.codelutin.generator.models.object.ObjectModelClass; import org.codelutin.topia.generators.ui.Util; @@ -44,6 +45,14 @@ * Ce generateur permet de generer la classe avec l'ensemble des methodes a implanter */ public class ObjectModelToEntityPanel extends AbstractObjectModelGenerator { // ObjectModelToEntityPanel + + public ObjectModelToEntityPanel(){ + super(); + } + + public ObjectModelToEntityPanel(Generator parent){ + super(parent); + } public String getFilenameForClass(ObjectModelClass clazz) { return (clazz.getPackageName() + ".ui.") Index: topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntitySelectionPanel.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntitySelectionPanel.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntitySelectionPanel.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntitySelectionPanel.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntitySelectionPanel.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/30 14:38:59 $ - * par : $Author: pineau $ + * Mise a jour: $Date: 2004/08/06 17:48:52 $ + * par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -35,6 +35,7 @@ import java.io.IOException; import java.io.Writer; +import org.codelutin.generator.Generator; import org.codelutin.generator.AbstractObjectModelGenerator; import org.codelutin.generator.models.object.ObjectModelClass; import org.codelutin.topia.generators.ui.Util; @@ -44,6 +45,14 @@ * des methodes a implanter pour le panel de selection */ public class ObjectModelToEntitySelectionPanel extends AbstractObjectModelGenerator { // ObjectModelToEntitySelectionPanel + + public ObjectModelToEntitySelectionPanel(){ + super(); + } + + public ObjectModelToEntitySelectionPanel(Generator parent){ + super(parent); + } public String getFilenameForClass(ObjectModelClass clazz) { return (clazz.getPackageName() + ".ui.") Index: topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityTablePanel.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityTablePanel.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityTablePanel.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityTablePanel.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/ObjectModelToEntityTablePanel.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/30 14:38:59 $ - * par : $Author: pineau $ + * Mise a jour: $Date: 2004/08/06 17:48:52 $ + * par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -35,6 +35,7 @@ import java.io.IOException; import java.io.Writer; +import org.codelutin.generator.Generator; import org.codelutin.generator.AbstractObjectModelGenerator; import org.codelutin.generator.models.object.ObjectModelClass; import org.codelutin.topia.generators.ui.Util; @@ -44,6 +45,14 @@ * la JTable compose des attributs des differentes entites */ public class ObjectModelToEntityTablePanel extends AbstractObjectModelGenerator{ // ObjectModelToEntityTablePanel + + public ObjectModelToEntityTablePanel(){ + super(); + } + + public ObjectModelToEntityTablePanel(Generator parent){ + super(parent); + } public String getFilenameForClass(ObjectModelClass clazz) { return (clazz.getPackageName() + ".ui.") Index: topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToSwingMetaGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToSwingMetaGenerator.java:1.2 topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToSwingMetaGenerator.java:1.3 --- topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToSwingMetaGenerator.java:1.2 Wed Aug 4 08:54:02 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToSwingMetaGenerator.java Fri Aug 6 17:48:52 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ * - * Mise a jour: $Date: 2004/08/04 08:54:02 $ + * Mise a jour: $Date: 2004/08/06 17:48:52 $ * par : $Author: bpoussin $ */ @@ -34,11 +34,18 @@ import java.io.File; import java.io.IOException; +import org.codelutin.generator.Generator; import org.codelutin.generator.UIModelGenerator; import org.codelutin.generator.models.ui.UIModel; +import java.util.logging.Logger; +import java.util.logging.Level; public class UIModelToSwingMetaGenerator extends UIModelGenerator { // UIModelToSwingGenerator + public UIModelToSwingMetaGenerator(Generator parent){ + super(parent); + } + public UIModelToSwingMetaGenerator(){ super(); } @@ -46,15 +53,12 @@ public void generate(UIModel model, File destDir) throws IOException { UIModelGenerator gen = null; - - System.out.println("Generation de UIModelToUICallbackSwingGenerator"); - gen = new UIModelToUICallbackSwingGenerator(); - gen.setOverwrite(getOverwrite()); + Logger.getLogger(getClass().getName() + ".generate").log(Level.FINE, "Generation de UIModelToUICallbackSwingGenerator"); + gen = new UIModelToUICallbackSwingGenerator(this); gen.generate(model, destDir); - System.out.println("Generation de UIModelToUISwingGenerator"); - gen = new UIModelToUISwingGenerator(); - gen.setOverwrite(getOverwrite()); + Logger.getLogger(getClass().getName() + ".generate").log(Level.FINE, "Generation de UIModelToUISwingGenerator"); + gen = new UIModelToUISwingGenerator(this); gen.generate(model, destDir); } Index: topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUICallbackSwingGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUICallbackSwingGenerator.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUICallbackSwingGenerator.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUICallbackSwingGenerator.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUICallbackSwingGenerator.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/30 14:38:59 $ - * par : $Author: pineau $ + * Mise a jour: $Date: 2004/08/06 17:48:52 $ + * par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -36,6 +36,7 @@ import java.io.Writer; import java.util.Iterator; +import org.codelutin.generator.Generator; import org.codelutin.generator.UIModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.ui.UIModel; import org.codelutin.generator.models.ui.UIModelEvent; @@ -47,6 +48,14 @@ * @see UIModel */ public class UIModelToUICallbackSwingGenerator extends UIModelGeneratorWithCapitalizeName { // UIModelToUICallbackSwingGenerator + + public UIModelToUICallbackSwingGenerator(){ + super(); + } + + public UIModelToUICallbackSwingGenerator(Generator parent){ + super(parent); + } /** * Methode qui permet de generer une interface UICallback a partir de UIModel Index: topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUISwingGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUISwingGenerator.java:1.1 topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUISwingGenerator.java:1.2 --- topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUISwingGenerator.java:1.1 Fri Jul 30 14:38:59 2004 +++ topia/src/java/org/codelutin/topia/generators/ui/swing/UIModelToUISwingGenerator.java Fri Aug 6 17:48:52 2004 @@ -23,10 +23,10 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * -* Mise a jour: $Date: 2004/07/30 14:38:59 $ -* par : $Author: pineau $ +* Mise a jour: $Date: 2004/08/06 17:48:52 $ +* par : $Author: bpoussin $ */ package org.codelutin.topia.generators.ui.swing; @@ -37,6 +37,7 @@ import java.util.ArrayList; import java.util.Iterator; +import org.codelutin.generator.Generator; import org.codelutin.generator.UIModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.ui.UIModel; import org.codelutin.generator.models.ui.UIModelEvent; @@ -54,6 +55,14 @@ protected String objectName; protected static int nbAnonymousObject = 0; + + public UIModelToUISwingGenerator(){ + super(); + } + + public UIModelToUISwingGenerator(Generator parent){ + super(parent); + } /** * Methode qui permet de generer une classe UI a partir de UIModel