From: <jhs...@us...> - 2009-01-28 10:02:05
|
Revision: 121 http://flexotask.svn.sourceforge.net/flexotask/?rev=121&view=rev Author: jhspring Date: 2009-01-28 10:02:01 +0000 (Wed, 28 Jan 2009) Log Message: ----------- added List<Task> getTasks() methods to global timing and task diagram Modified Paths: -------------- trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/GlobalTiming.java trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/TaskDiagram.java Modified: trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/GlobalTiming.java =================================================================== --- trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/GlobalTiming.java 2009-01-28 09:33:37 UTC (rev 120) +++ trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/GlobalTiming.java 2009-01-28 10:02:01 UTC (rev 121) @@ -226,4 +226,13 @@ public static void resetProviders() { libraries = null; } + + /** + * Returns a list of tasks added to the task diagram to which the global + * timing belongs. + * @return a list of tasks + */ + protected List<Task> getTasks() { + return getParent().getTasks(); + } } Modified: trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/TaskDiagram.java =================================================================== --- trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/TaskDiagram.java 2009-01-28 09:33:37 UTC (rev 120) +++ trunk/flexotask-editor/src/com/ibm/realtime/flexotask/editor/model/TaskDiagram.java 2009-01-28 10:02:01 UTC (rev 121) @@ -136,6 +136,14 @@ } /** + * Returns a list of tasks added to this task diagram. + * @return a list of tasks + */ + protected List<Task> getTasks() { + return tasks; + } + + /** * Create a TaskDiagram from a saved FlexotaskEditSession document * @param xmlForm the XML form FlexotaskEditSession * @throws FlexotaskValidationException if any error occurs in parsing This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |