summaryrefslogtreecommitdiff
path: root/sources/simulator/VSSimulator.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-13 19:19:25 +0000
committerPaul Buetow <paul@buetow.org>2008-06-13 19:19:25 +0000
commite4ac5f70765657dfab2a615a2bfcf6dc5c4ffdab (patch)
tree818e42214cc6a69845dc20c0ea6b9f21bba2e86e /sources/simulator/VSSimulator.java
parent86d37c2c10b9a0abbf1f4256333f13914c3c740b (diff)
run astyle
Diffstat (limited to 'sources/simulator/VSSimulator.java')
-rw-r--r--sources/simulator/VSSimulator.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/sources/simulator/VSSimulator.java b/sources/simulator/VSSimulator.java
index ea552f6..d2788a0 100644
--- a/sources/simulator/VSSimulator.java
+++ b/sources/simulator/VSSimulator.java
@@ -329,16 +329,16 @@ public class VSSimulator extends JPanel implements VSSerializable {
* @param rows the rows
*/
private void copyTasksAtRows(int rows[]) {
- ArrayList<VSTask> copiedTasks = new ArrayList<VSTask>();
+ ArrayList<VSTask> copiedTasks = new ArrayList<VSTask>();
- for (int row : rows)
- /* Use the copy constructor */
- copiedTasks.add(new VSTask(tasks.get(row)));
+ for (int row : rows)
+ /* Use the copy constructor */
+ copiedTasks.add(new VSTask(tasks.get(row)));
- for (VSTask task : copiedTasks) {
- taskManager.addTask(task, VSTaskManager.PROGRAMMED);
- addTask(task);
- }
+ for (VSTask task : copiedTasks) {
+ taskManager.addTask(task, VSTaskManager.PROGRAMMED);
+ addTask(task);
+ }
fireTableDataChanged();
}
@@ -356,15 +356,15 @@ public class VSSimulator extends JPanel implements VSSerializable {
ActionListener actionListener = new ActionListener() {
public void actionPerformed(ActionEvent ae) {
String command = ae.getActionCommand();
- int rows[] = source.getSelectedRows();
+ int rows[] = source.getSelectedRows();
if (command.equals(prefs.getString("lang.remove"))) {
- for (int i = rows.length - 1; i >= 0; --i)
- removeTaskAtRow(rows[i]);
+ for (int i = rows.length - 1; i >= 0; --i)
+ removeTaskAtRow(rows[i]);
} else if (command.equals(
- prefs.getString("lang.copy"))) {
- copyTasksAtRows(rows);
+ prefs.getString("lang.copy"))) {
+ copyTasksAtRows(rows);
}
}
};