Revision 40351
branches/v2_0_0_prep/extensions/org.gvsig.daltransform.app.mainplugin/src/main/java/org/gvsig/daltransform/app/mainplugin/DataTransformExtension.java | ||
---|---|---|
32 | 32 |
|
33 | 33 |
import javax.swing.JOptionPane; |
34 | 34 |
|
35 |
import org.slf4j.Logger; |
|
36 |
import org.slf4j.LoggerFactory; |
|
37 |
|
|
35 | 38 |
import org.gvsig.andami.IconThemeHelper; |
36 | 39 |
import org.gvsig.andami.PluginServices; |
37 | 40 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
48 | 51 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
49 | 52 |
*/ |
50 | 53 |
public class DataTransformExtension extends Extension { |
54 |
|
|
55 |
private static final Logger logger = |
|
56 |
LoggerFactory.getLogger(DataTransformExtension.class); |
|
51 | 57 |
|
52 | 58 |
/* |
53 | 59 |
* (non-Javadoc) |
... | ... | |
65 | 71 |
manager.createWizard().getWindow()); |
66 | 72 |
|
67 | 73 |
} catch (Exception e) { |
68 |
JOptionPane.showInternalMessageDialog( |
|
69 |
(Component) PluginServices.getMDIManager(), |
|
70 |
Messages.getText("transform_create_wizard_exception"), |
|
74 |
|
|
75 |
logger.info("Error while creating data transform wizard", e); |
|
76 |
ApplicationLocator.getManager().messageDialog( |
|
77 |
Messages.getText("transform_create_wizard_exception") + |
|
78 |
": " + e.getMessage(), |
|
71 | 79 |
Messages.getText("feature_transform"), |
72 | 80 |
JOptionPane.ERROR_MESSAGE); |
81 |
|
|
73 | 82 |
} |
74 | 83 |
} else |
75 | 84 |
if ("VIEW".equalsIgnoreCase(actionCommand)) { |
Also available in: Unified diff