Use process title as pdf viewer title. Ensure busy dialog is always closed.
This commit is contained in:
parent
b81502f138
commit
4aef583e4f
|
@ -493,15 +493,18 @@ public class ProcessDialog extends Window implements EventListener//, ASyncProce
|
||||||
document.close();
|
document.close();
|
||||||
|
|
||||||
hideBusyDialog();
|
hideBusyDialog();
|
||||||
Window win = new SimplePDFViewer(this.getTitle(), new FileInputStream(outFile));
|
Window win = new SimplePDFViewer(m_pi.getTitle(), new FileInputStream(outFile));
|
||||||
SessionManager.getAppDesktop().showWindow(win, "center");
|
SessionManager.getAppDesktop().showWindow(win, "center");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
||||||
|
} finally {
|
||||||
|
//do no harm calling this twice
|
||||||
|
hideBusyDialog();
|
||||||
}
|
}
|
||||||
} else if (pdfList.size() > 0) {
|
} else if (pdfList.size() > 0) {
|
||||||
hideBusyDialog();
|
hideBusyDialog();
|
||||||
try {
|
try {
|
||||||
Window win = new SimplePDFViewer(this.getTitle(), new FileInputStream(pdfList.get(0)));
|
Window win = new SimplePDFViewer(m_pi.getTitle(), new FileInputStream(pdfList.get(0)));
|
||||||
SessionManager.getAppDesktop().showWindow(win, "center");
|
SessionManager.getAppDesktop().showWindow(win, "center");
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -561,14 +564,18 @@ public class ProcessDialog extends Window implements EventListener//, ASyncProce
|
||||||
document.close();
|
document.close();
|
||||||
|
|
||||||
hideBusyDialog();
|
hideBusyDialog();
|
||||||
Window win = new SimplePDFViewer(this.getTitle(), new FileInputStream(outFile));
|
Window win = new SimplePDFViewer(m_pi.getTitle(), new FileInputStream(outFile));
|
||||||
SessionManager.getAppDesktop().showWindow(win, "center");
|
SessionManager.getAppDesktop().showWindow(win, "center");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
||||||
|
} finally {
|
||||||
|
//do no harm calling this twice
|
||||||
|
hideBusyDialog();
|
||||||
}
|
}
|
||||||
} else if (pdfList.size() > 0) {
|
} else if (pdfList.size() > 0) {
|
||||||
|
hideBusyDialog();
|
||||||
try {
|
try {
|
||||||
Window win = new SimplePDFViewer(this.getTitle(), new FileInputStream(pdfList.get(0)));
|
Window win = new SimplePDFViewer(m_pi.getTitle(), new FileInputStream(pdfList.get(0)));
|
||||||
SessionManager.getAppDesktop().showWindow(win, "center");
|
SessionManager.getAppDesktop().showWindow(win, "center");
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue