Revision 18014 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/saveas/SaveAsActions.java
SaveAsActions.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
import javax.swing.JFrame; |
24 | 24 |
|
25 |
import org.gvsig.raster.util.RasterToolsUtil; |
|
25 | 26 |
import org.gvsig.raster.util.RasterUtilities; |
26 | 27 |
import org.gvsig.rastertools.IProcessActions; |
27 | 28 |
import org.gvsig.rastertools.saveraster.ui.info.EndInfoPanel; |
28 |
|
|
29 |
import com.iver.andami.PluginServices; |
|
30 | 29 |
/** |
31 | 30 |
* Acciones que ejecuta el proceso de salvado. |
32 | 31 |
* |
... | ... | |
39 | 38 |
* @see org.gvsig.rastertools.IProcessActions#end(java.lang.Object) |
40 | 39 |
*/ |
41 | 40 |
public void end(Object params) { |
42 |
if( params instanceof Object[] &&
|
|
43 |
((Object[])params).length == 2 &&
|
|
44 |
((Object[])params)[0] instanceof String &&
|
|
45 |
((Object[])params)[1] instanceof Long) {
|
|
41 |
if (params instanceof Object[] &&
|
|
42 |
((Object[]) params).length == 2 &&
|
|
43 |
((Object[]) params)[0] instanceof String &&
|
|
44 |
((Object[]) params)[1] instanceof Long) {
|
|
46 | 45 |
|
47 |
String fName = (String)((Object[])params)[0];
|
|
48 |
long milis = ((Long)((Object[])params)[1]).longValue();
|
|
46 |
String fName = (String) ((Object[]) params)[0];
|
|
47 |
long milis = ((Long) ((Object[]) params)[1]).longValue();
|
|
49 | 48 |
|
50 | 49 |
setEndInfo(fName, milis); |
51 | 50 |
} |
... | ... | |
63 | 62 |
if (fName.endsWith("ecw") || |
64 | 63 |
fName.endsWith("jp2") || |
65 | 64 |
fName.endsWith("jpg") || |
66 |
fName.endsWith("jpeg")) |
|
65 |
fName.endsWith("jpeg")) {
|
|
67 | 66 |
compression = "Yes"; |
68 |
else
|
|
67 |
} else {
|
|
69 | 68 |
compression = "No"; |
69 |
} |
|
70 | 70 |
|
71 | 71 |
EndInfoPanel info = new EndInfoPanel(); |
72 | 72 |
info.addFile(fName, RasterUtilities.formatTime(milis), RasterUtilities.formatFileSize(f.length()), compression); |
73 | 73 |
|
74 |
JFrame endJFrame = new JFrame(PluginServices.getText(this, "Stats"));
|
|
74 |
JFrame endJFrame = new JFrame(RasterToolsUtil.getText(this, "Stats"));
|
|
75 | 75 |
endJFrame.setResizable(false); |
76 | 76 |
endJFrame.setAlwaysOnTop(true); |
77 | 77 |
endJFrame.add(info); |
Also available in: Unified diff