|
|
Re: Is .clear() no longer supported? [message #884356 is a reply to message #884293] |
Sun, 10 June 2012 22:39 |
Hassan M. Messages: 9 Registered: September 2011 Location: Ohio |
Junior Member |
|
|
Okay, well that wasn't there. I got the sources and added that function (to Graph.java), and that seemed to work. However, I don't know what subGraphFigures are, but that part wasn't working so I just commented it out:
public void clear() {
for (Iterator i = new ArrayList(connections).iterator(); i.hasNext();) {
removeConnection((GraphConnection) i.next());
}
//for (Iterator i = new HashSet(subgraphFigures).iterator(); i.hasNext();) {
//removeSubgraphFigure((IFigure) i.next());
//}
for (Iterator i = new ArrayList(nodes).iterator(); i.hasNext();) {
removeNode((GraphNode) i.next());
}
}
Anyway, thanks for the help!
[Updated on: Sun, 10 June 2012 22:40] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01988 seconds