|
|
|
@ -10,6 +10,7 @@ import com.fr.design.mainframe.JTemplate;
|
|
|
|
|
import com.fr.design.worker.WorkerManager; |
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import java.awt.Frame; |
|
|
|
|
import java.util.concurrent.Callable; |
|
|
|
|
import java.util.concurrent.TimeUnit; |
|
|
|
|
import java.util.concurrent.TimeoutException; |
|
|
|
@ -54,8 +55,9 @@ public class SaveWorker extends SwingWorker<Boolean, Void> {
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
processResult(); |
|
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
|
boolean minimized = (DesignerContext.getDesignerFrame().getExtendedState() & Frame.ICONIFIED ) != 0; |
|
|
|
|
FineJOptionPane.showMessageDialog( |
|
|
|
|
DesignerContext.getDesignerFrame(), |
|
|
|
|
minimized ? null : DesignerContext.getDesignerFrame(), |
|
|
|
|
Toolkit.i18nText("Fine-Design-Basic_Save_Failure"), |
|
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Tool_Tips"), |
|
|
|
|
JOptionPane.ERROR_MESSAGE); |
|
|
|
|