Last modified by David Holt on 2005/11/19 11:44

From version 9.1
edited by Mike Schrag
on 2005/09/24 22:40
Change comment: There is no comment for this version
To version 10.1
edited by Mike Schrag
on 2005/11/19 11:44
Change comment: Migrated to Confluence 4.0

Summary

Details

Page properties
Content
... ... @@ -1,88 +1,73 @@
1 1  You'll now run your WO Application and get a glimpse at one of the coolest features of Eclipse.
2 2  
3 -1. If you want to run your WO Application, you can right-click/ctrl-click on the project name, "Run As" => "WOApplication". But Run doesn't give you some of the cool features that you really want. What you'd really like to be able to do is make changes to your source code WHILE you're running and see them reflected in the running app, so don't click Run :)
4 -\\\\[[image:Picture 15.png]]
5 -\\
3 +~1. If you want to run your WO Application, you can right-click/ctrl-click on the project name, "Run As" => "WOApplication". But Run doesn't give you some of the cool features that you really want. What you'd really like to be able to do is make changes to your source code WHILE you're running and see them reflected in the running app, so don't click Run
6 6  
5 +[[image:attach:Picture 15.png]]
6 +
7 7  ----
8 8  
9 -\\
9 +2. Instead, select "Debug As" => "WOApplication" (Note from Mike: the picture has "WOApplication (profiled)" selected – that's a mistake and I don't have to energy to go and retake the photo at the moment ).
10 10  
11 -1. Instead, select "Debug As" => "WOApplication" (Note from Mike: the picture has "WOApplication (profiled)" selected ~-~- that's a mistake and I don't have to energy to go and retake the photo at the moment :) ).
12 -\\\\[[image:Picture 17.png]]
13 -\\
11 +[[image:attach:Picture 17.png]]
14 14  
15 15  ----
16 16  
17 -\\
15 +3. Eclipse will now look through all the known types for classes that are launchable.
18 18  
19 -1. Eclipse will now look through all the known types for classes that are launchable.
20 -\\\\[[image:Picture 16.png]]
21 -\\
17 +[[image:attach:Picture 16.png]]
22 22  
23 23  ----
24 24  
25 -\\
21 +4. In our case, we want to run our principal class "Application", so you can type Application in the search field, or scroll down to it in the list and click "OK".
26 26  
27 -1. In our case, we want to run our principal class "Application", so you can type Application in the search field, or scroll down to it in the list and click "OK".
28 -\\\\\\Once you go through this process once, though, you will have a Run/Debug Configuration that you can just reuse every time without having to pick the class.
29 -\\\\\\For reference, a slightly faster way of getting to past this step is to select Run As => WOApplication on the Application class itself in Package Explorer rather than selecting it on the project.
30 -\\\\\\\\\\[[image:Picture 18.png]]
31 -\\
23 +Once you go through this process once, though, you will have a Run/Debug Configuration that you can just reuse every time without having to pick the class.
32 32  
25 +For reference, a slightly faster way of getting to past this step is to select Run As => WOApplication on the Application class itself in Package Explorer rather than selecting it on the project.
26 +
27 +[[image:attach:Picture 18.png]]
28 +
33 33  ----
34 34  
35 -\\
31 +6. Eclipse will now execute the WOApplication, opening a Console view at the bottom to show you stdout and stderr (stderr is red, stdout is blue). Additionally, Eclipse by default opens an internal browser that contains your Main.WO. So, hey, that's cool – it works, but that embedded browser has got to go
36 36  
37 -1. Eclipse will now execute the WOApplication, opening a Console view at the bottom to show you stdout and stderr (stderr is red, stdout is blue). Additionally, Eclipse by default opens an internal browser that contains your Main.WO. So, hey, that's cool ~-~- it works, but that embedded browser has got to go :)
38 -\\\\[[image:Picture 19.png]]
39 -\\
33 +[[image:attach:Picture 19.png]]
40 40  
41 41  ----
42 42  
43 -\\
37 +7. Select "Window" => "Preferences..."
44 44  
45 -1. Select "Window" => "Preferences..."
46 -\\\\[[image:Picture 21.png]]
47 -\\
39 +[[image:attach:Picture 21.png]]
48 48  
49 49  ----
50 50  
51 -\\
43 +8. Open "General", select "Web Browser", and change "Use internal Web browser" to "Use external Web Browser", click "Apply" and then "OK".
52 52  
53 -1. Open "General", select "Web Browser", and change "Use internal Web browser" to "Use external Web Browser", click "Apply" and then "OK".
54 -\\\\[[image:Picture 20.png]]
55 -\\
45 +[[image:attach:Picture 20.png]]
56 56  
57 57  ----
58 58  
59 -\\
49 +9. Go ahead and stop your WO Application. In the console view, there is a red square on the right side. If you click that, it will terminate your app (it will say "<terminated>" on the title bar of the Console view when it's done, and the red stop square will turn gray). If you want to clear the console output, you can the icon of the paper with the X on it.
60 60  
61 -1. Go ahead and stop your WO Application. In the console view, there is a red square on the right side. If you click that, it will terminate your app (it will say "<terminated>" on the title bar of the Console view when it's done, and the red stop square will turn gray). If you want to clear the console output, you can the icon of the paper with the X on it.
62 -1. You want to Debug again, but you can now save yourself some time. On the icon bar of Eclipse, in the second set of icons, there is an icon of a Bug with an arrow next to it and a Play button with an arrow next to it. These are your Debug and Run buttons. If you click the down arrow next to the Debug icon, you will see a list of recent run configurations to choose from. If you want to rerun the last configuration, you can just click the debug icon itself. Run works the same way.
63 -\\\\\\If you want to change any of the configuration options like WO parameters, commandline parameters, VM options, etc, you can click the down arrow and then select "Debug ..." or "Run ..." and then you can edit a plethora of options for the configurations.
64 -1. In our case, we want to just Debug again, so click the Debug icon. You will see Eclipse open the Console view again, but this time your default web browser will launch and you will see the output of your Main.wo component.
65 -\\\\[[image:Picture 22.png]]
66 -\\
51 +10. You want to Debug again, but you can now save yourself some time. On the icon bar of Eclipse, in the second set of icons, there is an icon of a Bug with an arrow next to it and a Play button with an arrow next to it. These are your Debug and Run buttons. If you click the down arrow next to the Debug icon, you will see a list of recent run configurations to choose from. If you want to rerun the last configuration, you can just click the debug icon itself. Run works the same way.
67 67  
68 -----
53 +If you want to change any of the configuration options like WO parameters, commandline parameters, VM options, etc, you can click the down arrow and then select "Debug ..." or "Run ..." and then you can edit a plethora of options for the configurations.
69 69  
70 -\\
55 +~11. In our case, we want to just Debug again, so click the Debug icon. You will see Eclipse open the Console view again, but this time your default web browser will launch and you will see the output of your Main.wo component.
71 71  
72 -1. Let's check out Hot Code Replacement. Switch back to Eclipse and leave the app running. Go to the Java tab of Main.wo and change the definition of now() to return a specific date and save. The Eclipse incremental compiler will now compile the changed method and replace it on-the-fly into the running application.
73 -\\\\[[image:Picture 23.png]]
74 -\\
57 +[[image:attach:Picture 22.png]]
75 75  
76 76  ----
77 77  
78 -\\
61 +12. Let's check out Hot Code Replacement. Switch back to Eclipse and leave the app running. Go to the Java tab of Main.wo and change the definition of now() to return a specific date and save. The Eclipse incremental compiler will now compile the changed method and replace it on-the-fly into the running application.
79 79  
80 -1. Reload Safari and you'll see the change. There ARE limitations to Hot Code Replacement. It is not able to replace structural changes to your code ~-~- added methods, removed methods, added fields, or removed fields. But most any change INSIDE of method works fine. You will find this to be an enormous productivity boost over the usual run, navigate, stop, fix, run, navigate, stop, fix cycle. Now it's run, navigate, fix, reload.
81 -\\\\[[image:Picture 24.png]]
82 -\\
63 +[[image:attach:Picture 23.png]]
83 83  
84 84  ----
85 85  
86 -\\
67 +13. Reload Safari and you'll see the change. There ARE limitations to Hot Code Replacement. It is not able to replace structural changes to your code – added methods, removed methods, added fields, or removed fields. But most any change INSIDE of method works fine. You will find this to be an enormous productivity boost over the usual run, navigate, stop, fix, run, navigate, stop, fix cycle. Now it's run, navigate, fix, reload.
87 87  
88 -1. Let's go ahead and [[Create a new WO Component]].
69 +[[image:attach:Picture 24.png]]
70 +
71 +----
72 +
73 +14. Let's go ahead and [[doc:Create a new WO Component]].
picture 15.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +155.3 KB
Content
picture 16.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +15.9 KB
Content
picture 17.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +161.4 KB
Content
picture 18.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +25.2 KB
Content
picture 19.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +108.2 KB
Content
picture 20.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +88.8 KB
Content
picture 21.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +39.2 KB
Content
picture 22.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +29.5 KB
Content
picture 23.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +15.6 KB
Content
picture 24.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +29.2 KB
Content