Revision 38806 branches/v2_0_0_prep/extensions/org.gvsig.symbology.app/org.gvsig.symbology.app.importsymbols/src/main/java/org/gvsig/symbology/app/importsymbols/ImportPictureMarkerSymbolsProcess.java
ImportPictureMarkerSymbolsProcess.java | ||
---|---|---|
1 | 1 |
package org.gvsig.symbology.app.importsymbols; |
2 | 2 |
|
3 |
import java.awt.Component; |
|
3 | 4 |
import java.io.File; |
4 | 5 |
import java.io.FileOutputStream; |
5 | 6 |
import java.io.IOException; |
... | ... | |
54 | 55 |
private double symbolSize = 18; |
55 | 56 |
|
56 | 57 |
protected ImportPictureMarkerSymbolsProcess() { |
57 |
super("Import_point_symbols");
|
|
58 |
super(false);
|
|
58 | 59 |
this.application = ApplicationLocator.getManager(); |
59 |
this.setName(application.translate(this.getName()));
|
|
60 |
this.setTaskName(application.translate("_Import_picture_marker_symbols"));
|
|
60 | 61 |
} |
61 | 62 |
|
62 | 63 |
public Set<String> getAllowedFileExtensions() { |
... | ... | |
130 | 131 |
status.cancel(); |
131 | 132 |
return; |
132 | 133 |
} |
134 |
status.add(); |
|
133 | 135 |
status.setRangeOfValues(1, this.getSelectedImageFiles().size()); |
134 | 136 |
for (int i = 1; i < this.getSelectedImageFiles().size(); i++) { |
135 | 137 |
if (status.isCancellationRequested()) { |
... | ... | |
169 | 171 |
status.terminate(); |
170 | 172 |
} |
171 | 173 |
} |
174 |
application.refreshMenusAndToolBars(); |
|
172 | 175 |
} |
173 | 176 |
} |
174 | 177 |
|
175 | 178 |
private void preProcess() { |
176 | 179 |
if (this.isQuietMode() && this.getOverwrite() == YesNoAsk.ASK) { |
177 | 180 |
this.setOverwrite(YesNoAsk.YES); |
178 |
// } else {
|
|
179 |
// Component dlg = application.createComponent(ImportPointSymbolsPanel.class, this);
|
|
180 |
// application.showDialog(dlg, this.getName());
|
|
181 |
} else { |
|
182 |
Component dlg = application.createComponent(ImportPictureMarkerSymbolsPanel.class, this);
|
|
183 |
application.showDialog(dlg, this.getName()); |
|
181 | 184 |
} |
182 | 185 |
} |
183 | 186 |
|
Also available in: Unified diff