Changeset 75
- Timestamp:
- 05/26/07 10:03:58 (3 years ago)
- Files:
-
- trunk/bin/build.xml (modified) (1 diff)
- trunk/src/main/org/lastpod/LastPod.java (modified) (2 diffs)
- trunk/src/test/org/lastpod/LastPodMock.java (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/bin/build.xml
r59 r75 180 180 </target> 181 181 182 <target name="run-mock" depends="compile,run-debug" 183 description="Runs the dist jar file with debugging enabled."> 184 185 <property name="lastpod.debug" value="Debugging is not enabled."/> 186 <property name="lastpod.arg1" value="-D"/> 187 <property name="lastpod.arg2" value="-D"/> 188 <property name="lastpod.arg3" value="-D"/> 189 <property name="lastpod.arg4" value="-D"/> 190 191 <echo message="${lastpod.debug}"/> 192 <java classname="org.lastpod.LastPodMock" fork="true"> 193 <classpath refid="project.classpath"/> 194 <jvmarg value="${lastpod.arg1}"/> 195 <jvmarg value="${lastpod.arg2}"/> 196 <jvmarg value="${lastpod.arg3}"/> 197 <jvmarg value="${lastpod.arg4}"/> 198 </java> 199 </target> 200 182 201 <!-- create a jar file for deployment. --> 183 202 <target name="dist" depends="prepare,compile" trunk/src/main/org/lastpod/LastPod.java
r71 r75 42 42 * Loads the recent played information from the iPod and constructs the 43 43 * GUI to display it. 44 * @param model The application's model. 44 45 */ 45 pr ivate void load() {46 protected void load(Model model) { 46 47 recentplayed = new ArrayList(); 47 48 48 Model model = new ModelImpl();49 49 model.setRecentlyPlayed(recentplayed); 50 50 userInterface = new UI(model); … … 63 63 javax.swing.SwingUtilities.invokeLater(new Runnable() { 64 64 public void run() { 65 /* Use this application model. */ 66 Model model = new ModelImpl(); 67 65 68 LastPod lastPod = new LastPod(); 66 lastPod.load( );69 lastPod.load(model); 67 70 } 68 71 });
