OLD | NEW |
1 // Copyright (c) 2011, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 // Copyright 1996 John Maloney and Mario Wolczko | 4 // Copyright 1996 John Maloney and Mario Wolczko |
5 // | 5 // |
6 // This file is part of GNU Smalltalk. | 6 // This file is part of GNU Smalltalk. |
7 // | 7 // |
8 // GNU Smalltalk is free software; you can redistribute it and/or modify it | 8 // GNU Smalltalk is free software; you can redistribute it and/or modify it |
9 // under the terms of the GNU General Public License as published by the Free | 9 // under the terms of the GNU General Public License as published by the Free |
10 // Software Foundation; either version 2, or (at your option) any later version. | 10 // Software Foundation; either version 2, or (at your option) any later version. |
11 // | 11 // |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 EditConstraint edit = new EditConstraint(v, PREFERRED); | 721 EditConstraint edit = new EditConstraint(v, PREFERRED); |
722 Plan plan = planner.extractPlanFromConstraints(<EditConstraint>[edit]); | 722 Plan plan = planner.extractPlanFromConstraints(<EditConstraint>[edit]); |
723 for (int i = 0; i < 10; i++) { | 723 for (int i = 0; i < 10; i++) { |
724 v.value = newValue; | 724 v.value = newValue; |
725 plan.execute(); | 725 plan.execute(); |
726 } | 726 } |
727 edit.destroyConstraint(); | 727 edit.destroyConstraint(); |
728 } | 728 } |
729 | 729 |
730 Planner planner; | 730 Planner planner; |
OLD | NEW |