[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool SelectStrategy.java, 1.4, 1.5
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2006-12-03 17:48:23
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv9747/src/net/sourceforge/bprocessor/gl/tool Modified Files: SelectStrategy.java Log Message: The selection is now only cleared if it contains something and i have added a ratain(object o) method that substitute the selection with a single object. Changed in SelectionStrategy to use retain(obect o) method instead of clear and add => onle one changed event on selection Index: SelectStrategy.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectStrategy.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SelectStrategy.java 10 Aug 2006 13:08:01 -0000 1.4 --- SelectStrategy.java 3 Dec 2006 17:48:17 -0000 1.5 *************** *** 96,100 **** e1.setFrom(first); e4.setTo(first); ! Collection selection = Selection.primary(); x = e.getX(); y = e.getY(); --- 96,100 ---- e1.setFrom(first); e4.setTo(first); ! Selection selection = Selection.primary(); x = e.getX(); y = e.getY(); *************** *** 129,134 **** } else { if (!selection.contains(target)) { ! selection.clear(); ! selection.add(target); } } --- 129,133 ---- } else { if (!selection.contains(target)) { ! selection.retain(target); } } |