#95 update to Jhotdraw

open
nobody
gui (23)
5
2010-10-21
2010-10-21
Code_Slave
No

update to latest version of Jhotdraw is 95% working(takes about 1 hour to modify Jstock code to work) however there seems to be some sort of failure during re-load of saved diagrams caused in:

JStock 'OperatorFigure'
in the following code:

in.openElement("connectors");
connectors.clear();
final int size = in.getElementCount();
for (int i = 0; i < size; i++) {
final AbstractConnector c = (AbstractConnector) in.readObject(i);
connectors.add(c);
}
The "ref" is not being found during the DOM load, which would indicate that the information is not being correctly written out........

Update to the latest Jhotdraw also allows the "delete" bug to be fixed, that was filed in a previous bug report, it seems that mouse navigation of menus is the problem.
Currently it is too difficult to track down bugs in Jstock draw because:
1. the current Jhotdraw library is nearly 4 years out of date
2. source to trace thru the class is not available, since the library does not announce which revision it is.

Discussion

  • yccheok
    yccheok
    2011-03-26

    Thanks for the nice try. Instead of keep changing JStock source code, to cope with latest JHotDraw release, we have an initiative to "fork" out a version of JHotDraw, and modify it to suit to JStock need. Please refer to

    http://jstock.hg.sourceforge.net/hgweb/jstock/JHotDraw/file/6c9f6fbd9c05/README.txt

    However, the work has been stopped for a while, as we need to take care for other features and bug fixes which is more urgent.

    Although we can live with bugs caused by current used outdated JHotDraw, in long run, we wish to maintain our own JHotDraw code base.

    Talk to me if you would like to take over this task.