On-the-fly "Hello world" with Eclipse (page 2 of 5)
Step-by-Step develop an iPush client with Eclipse
Step 5 - Check project components
Back to Eclipse workbench, in Package Explorer, you'll see the project iPushDemo just created and the JARs included.

Figure 7. check project components of iPushDemo
Step 6 - Create a new class iPushDemo
We are going to create a new class of iPushDemo and set its properties.
(a) Move your cursor on folder of iPushDemo project src , right-click then select [New] / [Class].

Figure 8. create a new class
(b) In [New Java Class] dialog, type iPushDemo in the Name field.
(c) In Which method stubs would you like to create? block, check all three items to make Eclipse generates some methods automatically.
(d) Click [Add] button.

Figure 9. set properties for class iPushDemo
(e) Type iPush in Choose interfaces field (case-sensitive), you'll see iPush2MsgListener shown in the Matching types list.
(f) Select iPush2MsgListener and click [Add] button to add it in Interfaces list.

Figure 10. select implemented interface iPush2MsgListener
(g) Click [OK] button to return [New Java Class] dialog.
(h) You can see com.icetech.ipush2.iPush2MsgListener shown in the Interfaces pane of [New Java Class] dialog.
(i) Click [Finish] button to generate the new class iPushDemo.

Figure 11. finish and generate the new class iPushDemo
Step 7 - Check the new class iPushDemo
You can see the function structure of the class iPushDemo in the Java editor now.

Figure 12. the function structure of the class iPushDemo
| Page 2 of 5 | 1 2 3 4 5 |