• R/O
  • SSH
  • HTTPS

freegantt: Commit


Commit MetaInfo

Révision134 (tree)
l'heure2012-09-18 22:16:58
Auteurmonolith52

Message de Log

マイルストーンの判断条件から実質工期を排除

Change Summary

Modification

--- trunk/src/jp/sourceforge/freegantt/swing/TaskListTable.java (revision 133)
+++ trunk/src/jp/sourceforge/freegantt/swing/TaskListTable.java (revision 134)
@@ -227,9 +227,6 @@
227227 repaint();
228228 }
229229
230-// final Task task = project.getTaskAtRow(row);
231-// boolean isAvailableLevelUp = (task != null);
232-// boolean isAvailableLevelDown = (task != null && task.getLevel() > 0);
233230 boolean isAvailableLevelUp = true;
234231 boolean isAvailableLevelDown = true;
235232
--- trunk/src/jp/sourceforge/freegantt/data/Task.java (revision 133)
+++ trunk/src/jp/sourceforge/freegantt/data/Task.java (revision 134)
@@ -115,7 +115,7 @@
115115 this.group = flag;
116116 }
117117 public boolean isMilestone() {
118- return (period == null || period == 0) && (realPeriod == null || realPeriod == 0);
118+ return (period == null || period == 0);
119119 }
120120 public boolean isDrawable() {
121121 return startDate != null;
--- trunk/src/jp/sourceforge/freegantt/data/Project.java (revision 133)
+++ trunk/src/jp/sourceforge/freegantt/data/Project.java (revision 134)
@@ -282,6 +282,11 @@
282282 }
283283
284284 public void update() {
285+
286+ // グループフラグを更新する
287+ for (Task task: tasks) {
288+ getController().setTaskGroup(!getChildTasks(task).isEmpty(), getIndexByTask(task));
289+ }
285290
286291 // タスクをlevelの降順にソートする
287292 List<Task> sortedTasks = new ArrayList<Task>(tasks);
@@ -294,10 +299,8 @@
294299 }
295300 });
296301
297-
298302 // 階層の深いものから実質工期を求める
299303 for (Task task: sortedTasks) {
300- getController().setTaskGroup(!getChildTasks(task).isEmpty(), getIndexByTask(task));
301304 if (task.isGroup()) {
302305 updateParentPeriod(task);
303306 } else if (task.isMilestone()) {
Afficher sur ancien navigateur de dépôt.