|
From: <de...@us...> - 2014-03-10 20:48:40
|
Revision: 8663
http://sourceforge.net/p/fudaa/svn/8663
Author: deniger
Date: 2014-03-10 20:48:38 +0000 (Mon, 10 Mar 2014)
Log Message:
-----------
modification pour l'export CSV depuis OTFA
Modified Paths:
--------------
trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/action/ExportImageAction.java
Modified: trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/action/ExportImageAction.java
===================================================================
--- trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/action/ExportImageAction.java 2014-03-10 20:38:36 UTC (rev 8662)
+++ trunk/soft/fudaa-crue/ui-common/src/main/java/org/fudaa/fudaa/crue/common/action/ExportImageAction.java 2014-03-10 20:48:38 UTC (rev 8663)
@@ -5,11 +5,15 @@
import com.memoire.bu.BuResource;
import java.awt.event.ActionEvent;
+import org.fudaa.ctulu.CtuluLib;
import org.fudaa.ctulu.CtuluLibImage;
+import org.fudaa.ctulu.CtuluUI;
import org.fudaa.ctulu.image.CtuluImageExport;
+import org.fudaa.ctulu.image.CtuluImageExportPanel;
import org.fudaa.ctulu.image.CtuluImageProducer;
import org.fudaa.ebli.commun.EbliActionSimple;
import org.fudaa.fudaa.crue.common.helper.CtuluUIForNetbeans;
+import org.fudaa.fudaa.crue.common.services.SysdocUrlBuilder;
import org.openide.util.NbBundle;
/**
@@ -21,13 +25,18 @@
private final CtuluImageProducer imageProducer;
public ExportImageAction(CtuluImageProducer producer) {
- super(NbBundle.getMessage(ExportImageAction.class, "ExportImageAction.DisplayName"), BuResource.BU.getIcon("photographie"), CtuluLibImage.SNAPSHOT_COMMAND);
+ super(NbBundle.getMessage(ExportImageAction.class, "ExportImageAction.DisplayName"), BuResource.BU.getIcon("photographie"),
+ CtuluLibImage.SNAPSHOT_COMMAND);
this.imageProducer = producer;
setDefaultToolTip(NbBundle.getMessage(ExportImageAction.class, "ExportImageAction.Tooltip"));
}
@Override
public void actionPerformed(ActionEvent _e) {
- CtuluImageExport.exportImageFor(CtuluUIForNetbeans.DEFAULT, imageProducer);
+ CtuluUI ui = CtuluUIForNetbeans.DEFAULT;
+ CtuluImageExportPanel panel = new CtuluImageExportPanel(imageProducer, ui);
+ SysdocUrlBuilder.installHelpShortcut(panel, "testExportImage");
+ panel.afficheModale(ui.getParentComponent(), CtuluLib
+ .getS("Enregistrement image"));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|