Revision: 4369
http://fudaa.svn.sourceforge.net/fudaa/?rev=4369&view=rev
Author: hadouxad
Date: 2009-01-16 08:16:33 +0000 (Fri, 16 Jan 2009)
Log Message:
-----------
Modified Paths:
--------------
branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCommonImplementation.java
Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCommonImplementation.java
===================================================================
--- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCommonImplementation.java 2009-01-16 08:15:22 UTC (rev 4368)
+++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCommonImplementation.java 2009-01-16 08:16:33 UTC (rev 4369)
@@ -183,14 +183,19 @@
final String com = _evt.getActionCommand();
if ("CREER".equals(com)) {
+
+ if(c_!=null){
final int reponse = JOptionPane.showConfirmDialog(this.getParentComponent(),TrResource.getS("Le projet courant va \xEAtre ferm\xE9. \n Voulez vous sauvegarder le projet courant avant sa fermeture?"));
if (reponse == JOptionPane.CANCEL_OPTION) { return; }
if (reponse == JOptionPane.OK_OPTION) {
c_.getManager().saveProject(false);
}
//-- nettoyage du projet pr\xE9c\xE9dent --//
+
c_.getManager().clearProject();
-
+ }
+ else
+ c_=new TrPostProjet(this);
//-- ouverture d'un fichier r\xE9sultat qui sera automatiquement ajout\xE9 dans la layout courante --//
c_.createNewLayoutFrame();
//-- ouverture d'un fichier r\xE9sultat --//
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|