Revision 42102 trunk/org.gvsig.desktop/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/PluginServices.java
PluginServices.java | ||
---|---|---|
762 | 762 |
|
763 | 763 |
logger.info("Can't retrieve persistent values from plugin "+ |
764 | 764 |
getPluginName(), e); |
765 |
JOptionPane.showMessageDialog( |
|
766 |
(Component) PluginServices.getMainFrame(), |
|
767 |
Messages.getText("_Unable_to_read_persistence_for_plugin") |
|
768 |
+ ": " + getPluginName() + "\n" + |
|
769 |
Messages.getText("_Perhaps_saved_data_refers_to_missing_plugin"), |
|
770 |
Messages.getText("_Persistence"), |
|
771 |
JOptionPane.WARNING_MESSAGE); |
|
765 |
showMessageDialogDelayed(Messages.getText("_Unable_to_read_persistence_for_plugin") |
|
766 |
+ ": " + getPluginName() + "\n" + |
|
767 |
Messages.getText("_Perhaps_saved_data_refers_to_missing_plugin"), |
|
768 |
Messages.getText("_Persistence"), |
|
769 |
JOptionPane.WARNING_MESSAGE); |
|
772 | 770 |
} |
773 | 771 |
} |
774 | 772 |
if (this.pluginPersistence == null) { |
... | ... | |
781 | 779 |
return pluginPersistence; |
782 | 780 |
} |
783 | 781 |
|
782 |
private void showMessageDialogDelayed(final String msg, final String title, final int type) { |
|
783 |
PluginsManager pluginManger = PluginsLocator.getManager(); |
|
784 |
pluginManger.addStartupTask("Persistence_"+getPluginName(), new Runnable() { |
|
785 |
public void run() { |
|
786 |
JOptionPane.showMessageDialog( |
|
787 |
(Component) PluginServices.getMainFrame(), |
|
788 |
msg, |
|
789 |
title, |
|
790 |
type); |
|
791 |
} |
|
792 |
}, true, 100); |
|
793 |
} |
|
794 |
|
|
784 | 795 |
public void savePluginProperties() { |
785 | 796 |
if (this.pluginPersistence == null) { |
786 | 797 |
return; |
Also available in: Unified diff