Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesPanel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesPanel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesPanel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesPanel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesPanel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -37,7 +37,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** * Ce generateur permet de generer la classe avec le panel des attributs de Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesUIModel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesUIModel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesUIModel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesUIModel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityAttributesUIModel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -39,7 +39,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelAttribute; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; import java.util.ArrayList; //,org.codelutin.topia.generators.ui.ObjectModelToEntityTableUIModel,org.codelutin.topia.generators.ObjectModelToTJDOGenerator,org.codelutin.topia.generators.ObjectModelToUIModelGenerator Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityPanel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityPanel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityPanel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityPanel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityPanel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * -* Mise a jour: $Date: 2004/07/15 13:13:13 $ +* Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -39,7 +39,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelAttribute; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** * Ce generateur permet de generer la classe avec l'ensemble des methodes a implanter Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTablePanel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTablePanel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTablePanel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTablePanel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTablePanel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -37,7 +37,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** * Ce generateur permet de generer la classe avec le panel compose de Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTableUIModel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTableUIModel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTableUIModel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTableUIModel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityTableUIModel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -39,7 +39,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelAttribute; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** * Ce generateur permet de generer un panel compose d'une table pour permettre la Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityUIModel.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityUIModel.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityUIModel.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityUIModel.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToEntityUIModel.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -39,7 +39,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModelAttribute; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToWidgetsXML.java diff -u topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToWidgetsXML.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToWidgetsXML.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToWidgetsXML.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToWidgetsXML.java Thu Jul 15 14:05:40 2004 @@ -23,9 +23,9 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * -* Mise a jour: $Date: 2004/07/15 13:13:13 $ +* Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ @@ -38,7 +38,6 @@ import org.codelutin.generator.ObjectModelGeneratorWithCapitalizeName; import org.codelutin.generator.models.object.ObjectModel; import org.codelutin.generator.models.object.ObjectModelClass; -import org.codelutin.topia.generators.Util; /** * Cette classe permet de generer un fichier xml de type Buix, ainsi ce fichier Index: topia/src/java/org/codelutin/topia/ui/generators/UIModelToUICallbackSwingGenerator.java diff -u topia/src/java/org/codelutin/topia/ui/generators/UIModelToUICallbackSwingGenerator.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/UIModelToUICallbackSwingGenerator.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/UIModelToUICallbackSwingGenerator.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/UIModelToUICallbackSwingGenerator.java Thu Jul 15 14:05:40 2004 @@ -23,13 +23,13 @@ * * @author Benjamin Poussin * Copyright Code Lutin - * @version $Revision: 1.1 $ + * @version $Revision: 1.2 $ * - * Mise a jour: $Date: 2004/07/15 13:13:13 $ + * Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ -package org.codelutin.topia.generators.ui; +package org.codelutin.topia.ui.generators; import java.io.File; import java.io.IOException; Index: topia/src/java/org/codelutin/topia/ui/generators/UIModelToUISwingGenerator.java diff -u topia/src/java/org/codelutin/topia/ui/generators/UIModelToUISwingGenerator.java:1.1 topia/src/java/org/codelutin/topia/ui/generators/UIModelToUISwingGenerator.java:1.2 --- topia/src/java/org/codelutin/topia/ui/generators/UIModelToUISwingGenerator.java:1.1 Thu Jul 15 13:13:13 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/UIModelToUISwingGenerator.java Thu Jul 15 14:05:40 2004 @@ -23,13 +23,13 @@ * * @author Benjamin Poussin * Copyright Code Lutin -* @version $Revision: 1.1 $ +* @version $Revision: 1.2 $ * -* Mise a jour: $Date: 2004/07/15 13:13:13 $ +* Mise a jour: $Date: 2004/07/15 14:05:40 $ * par : $Author: bpoussin $ */ -package org.codelutin.topia.generators.ui; +package org.codelutin.topia.ui.generators; import java.io.File; import java.io.IOException; Index: topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToUIModelGenerator.java diff -u /dev/null topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToUIModelGenerator.java:1.1 --- /dev/null Thu Jul 15 14:05:45 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/ObjectModelToUIModelGenerator.java Thu Jul 15 14:05:40 2004 @@ -0,0 +1,72 @@ +/* *##% + * Copyright (C) 2002, 2003 Code Lutin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * ObjectModelToUIModelGenerator.java + * + * Created: 21 juin 2004 + * + * @author Benjamin Poussin + * Copyright Code Lutin + * @version $Revision: 1.1 $ + * + * Mise a jour: $Date: 2004/07/15 14:05:40 $ + * par : $Author: bpoussin $ + */ + +package org.codelutin.topia.generators; + +import java.io.File; +import java.io.IOException; + +import org.codelutin.generator.ObjectModelGenerator; +import org.codelutin.generator.models.object.ObjectModel; + +import org.codelutin.topia.generators.ui.ObjectModelToWidgetsXML; +import org.codelutin.topia.generators.ui.ObjectModelToEntityUIModel; +import org.codelutin.topia.generators.ui.ObjectModelToEntityPanel; + +/** +* Meta generateur qui applique les generateurs pour la generation des interface +* par defaut de saisie des entitees. +*/ +public class ObjectModelToUIModelGenerator extends ObjectModelGenerator { // ObjectModelToUIModelGenerator + + public ObjectModelToUIModelGenerator(){ + super(); + } + + public void generate(ObjectModel model, File destDir) throws IOException { + ObjectModelGenerator gen = null; + + System.out.println("Generation de ObjectModelToWidgetsXML"); + gen = new ObjectModelToWidgetsXML(); + gen.generate(model, destDir); + + System.out.println("Generation de ObjectModelToEntityUIModel"); + gen = new ObjectModelToEntityUIModel(); + gen.generate(model, destDir); + + System.out.println("Generation de ObjectModelToEntityPanel"); + gen = new ObjectModelToEntityPanel(); + gen.generate(model, destDir); + + } + +} // ObjectModelToUIModelGenerator + Index: topia/src/java/org/codelutin/topia/ui/generators/UIModelToSwingGenerator.java diff -u /dev/null topia/src/java/org/codelutin/topia/ui/generators/UIModelToSwingGenerator.java:1.1 --- /dev/null Thu Jul 15 14:05:45 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/UIModelToSwingGenerator.java Thu Jul 15 14:05:40 2004 @@ -0,0 +1,63 @@ +/* *##% + * Copyright (C) 2002, 2003 Code Lutin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * UIModelToSwingGenerator.java + * + * Created: 21 juin 2004 + * + * @author Benjamin Poussin + * Copyright Code Lutin + * @version $Revision: 1.1 $ + * + * Mise a jour: $Date: 2004/07/15 14:05:40 $ + * par : $Author: bpoussin $ + */ + +package org.codelutin.topia.generators; + +import java.io.File; +import java.io.IOException; + +import org.codelutin.generator.UIModelGenerator; +import org.codelutin.generator.models.ui.UIModel; + +import org.codelutin.topia.generators.ui.UIModelToUICallbackSwingGenerator; +import org.codelutin.topia.generators.ui.UIModelToUISwingGenerator; + +public class UIModelToSwingGenerator extends UIModelGenerator { // UIModelToSwingGenerator + + public UIModelToSwingGenerator(){ + super(); + } + + public void generate(UIModel model, File destDir) throws IOException { + UIModelGenerator gen = null; + + + System.out.println("Generation de UIModelToUICallbackSwingGenerator"); + gen = new UIModelToUICallbackSwingGenerator(); + gen.generate(model, destDir); + + System.out.println("Generation de UIModelToUISwingGenerator"); + gen = new UIModelToUISwingGenerator(); + gen.generate(model, destDir); + } + +} // UIModelToSwingGenerator + Index: topia/src/java/org/codelutin/topia/ui/generators/Util.java diff -u /dev/null topia/src/java/org/codelutin/topia/ui/generators/Util.java:1.1 --- /dev/null Thu Jul 15 14:05:45 2004 +++ topia/src/java/org/codelutin/topia/ui/generators/Util.java Thu Jul 15 14:05:40 2004 @@ -0,0 +1,37 @@ +/* *##% + * Copyright (C) 2002, 2003 Code Lutin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * Util.java + * + * Created: 15 juil. 2004 + * + * @author Benjamin Poussin + * Copyright Code Lutin + * @version $Revision: 1.1 $ + * + * Mise a jour: $Date: 2004/07/15 14:05:40 $ + * par : $Author: bpoussin $ + */ + +package org.codelutin.topia.ui.generators; + +public class Util extends org.codelutin.topia.generators.Util { // Util + +} // Util +