import com.axyus.generator.pespj.GeneratorPesPjWizardProcess;
import com.axyus.generator.pespj.ui.ReferenceComptableUI;
import com.axyus.generator.pespj.ui.renderer.TableModelReferenceComptable;
+import com.axyus.generator.pespj.utilities.PropertiesUtils;
import com.axyus.generator.pespj.utils.Constants;
import com.axyus.generator.pespj.utils.DateUtils;
import com.axyus.generator.pespj.utils.GeneratePesUtils;
}
}
- String directoryPath = getWizardProcess().getProperties().getProperty(Constants.PROPERTIES_LAST_DIRECTORY_SAVE);
- if(directoryPath == null){
- directoryPath = System.getProperty("user.home");
- }
+ String directoryPath = PropertiesUtils.getDiretoryByProperty(getWizardProcess().getProperties(), Constants.PROPERTIES_LAST_DIRECTORY_SAVE, System.getProperty("user.home"));
JFileChooser chooseFileDialog = new JFileChooser(new File(directoryPath));
FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter("xml files (*.xml)", "xml");
chooseFileDialog.setFileFilter(xmlfilter);
chooseFileDialog.setDialogTitle("Enregistrer sous ...");
int responseConfirm = JOptionPane.showConfirmDialog(getWizardProcess().getWizardDialog(),
- "Vous êtes sur le point de générer le PES PJ, vous ne pourrez pas revenir en arrière.\n Etes-vous sûr de vouloir continuer ?",
+ "Vous êtes sur le point de générer le PES PJ, vous ne pourrez plus modifier les données.\n\nEtes-vous sûr de vouloir continuer ?",
"Confirmer la génération",
JOptionPane.YES_NO_OPTION);
// Génration du flux XML
try {
JAXBContext context = JAXBContext.newInstance(PESAller.class);
- pesPjFile = chooseFileDialog.getSelectedFile();
-
+
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
m.setProperty(Marshaller.JAXB_ENCODING, ENCODING);