[Bprocessor-commit] /model/src/net/sourceforge/bprocessor/model Selector.java, 1.3, 1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-08-31 09:09:16
|
Update of /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32269/src/net/sourceforge/bprocessor/model Modified Files: Selector.java Log Message: Made the tile modellor use a outline net instead Index: Selector.java =================================================================== RCS file: /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model/Selector.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Selector.java 24 May 2007 10:56:16 -0000 1.3 --- Selector.java 31 Aug 2007 09:09:09 -0000 1.4 *************** *** 33,36 **** --- 33,39 ---- public Selector(List<Type> options) { this.options = options; + if (!options.isEmpty()) { + currentValue = options.get(0); + } } *************** *** 45,48 **** --- 48,54 ---- this.options.add(t); } + if (options.length > 0) { + setCurrentValue(options[0]); + } } |