[rfc][icedtea-web][policyeditor] SwingWorkers for opening/saving

Andrew Azores aazores at redhat.com
Mon Jun 2 15:08:45 UTC 2014


Hi,

This patch simply puts the blocking IO PolicyFileModel calls for opening 
and saving policy files into SwingWorkers. Currently there is no 
progress indicator - any suggestions on what kind of visual to use here? 
There isn't any easy way (at least right now) to determine how far along 
the opening/saving process is, so a standard rectangular progress 
indicator doesn't sound right to me.

ChangeLog:
* netx/net/sourceforge/jnlp/security/policyeditor/PolicyEditor.java
(openAndParsePolicyFile, savePolicyFile): use SwingWorkers
(checkPolicyChangesWithDialog): handle Exceptions thrown by 
policyFile.hasChanged() and policyFile.getFile().getCanonicalPath(), 
rather than letting them bubble up

Thanks,

-- 
Andrew A

-------------- next part --------------
A non-text attachment was scrubbed...
Name: policyeditor-swingworker.patch
Type: text/x-patch
Size: 6900 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140602/912c48a9/policyeditor-swingworker.patch>


More information about the distro-pkg-dev mailing list