[Issue 6414] svg batch export of class diagram generates 0 byte file

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.issues
Message-ID <[email protected]>
http://argouml.tigris.org/issues/show_bug.cgi?id=6414






------- Additional comments from [email protected] Wed Feb 29 15:51:15 -0800 2012 -------
If I understand the problem correctly, a possible solution is to force the save 
graphics command to run on the event dispatch thread (as it would if it was 
invoked from the UI and as the Set Diagram command does).

I've attached a patch which shows the basics of how to do this, but I haven't 
tested it.

I agree with Bob that a better structure would be to have the save method 
explicitly take the name of the diagram that it is intended to work on rather 
than operating of the "current" diagram (ie nasty global state).

It might be worth considering whether all command line methods should run on the 
event dispatch thread.  There are likely other synchronization issues hiding 
since this is how synchronization is managed for most things.  The reason for 
the code is that the chain of events could have started on the MDR event 
dispatch thread, rather than the Swing event dispatch thread.  Things which need 
to be synchronized are forced through the single Swing event dispatch thread for 
synchronization reasons.

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=448&dsMessageId=2928160

To unsubscribe from this list, e-mail: [[email protected]].
Please do not reply to this mail. Instead, add your comments in the issue.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.