Select Java
Build Path in the left pane of the dialog which opens and the Source tab in the right
pane, as shown in the following figure, and click on the Link Source... button.
Creating Your Working Environment
[ 40 ]
In the next dialog, click on the Browse... button and navigate to the directory
structure created by Maven as shown previously. Select the java subdirectory (its
complete path will be perhaps C:\tapestry5\work\t5first\src\main\java). Click on
Finish and then OK. You will see this java directory now linked with your project as
shown in the following figure:
You could now delete the t5first/src directory as it won't be needed anymore, but
better wait until you see another option of how to make source code available to
the application.
Open the Start.java file in the code editor, and if you made any changes to it while
playing with NetBeans in one of the previous sections, you will see those changes
here, as this is exactly the same source file, now linked by Eclipse.
Chapter 2
[ 41 ]
If you do not like the idea of sharing the source code, you can copy it into your
Eclipse project instead. Right-click on the java directory in Project Explorer and
click on Delete.
Pages:
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63