Difference between revisions of "User:Cgomes7/Basics"
Line 28: | Line 28: | ||
== Editing Java elements == | == Editing Java elements == | ||
+ | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/4%20-%20Editing%20Java%20elements Tung's Tutorial] | ||
+ | |||
+ | |||
== Creating a Java class == | == Creating a Java class == | ||
+ | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/5%20-%20Creating%20a%20Java%20class Tung's Tutorial] | ||
+ | |||
== Renaming Java elements == | == Renaming Java elements == | ||
− | [https://zenit.senecac.on.ca/ | + | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/6%20-%20Renaming%20Java%20elements Tung's Tutorial] |
[https://zenit.senecac.on.ca/svn/ecl500_111rep5/trunk%2078/tung-lab1/src/cs/ecl/basics/lab/tut1/ project] | [https://zenit.senecac.on.ca/svn/ecl500_111rep5/trunk%2078/tung-lab1/src/cs/ecl/basics/lab/tut1/ project] | ||
== Moving and copying Java elements == | == Moving and copying Java elements == | ||
Line 80: | Line 85: | ||
== Navigate to a Java element's declaration == | == Navigate to a Java element's declaration == | ||
+ | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/8%20-%20Navigate%20to%20a%20Java%20element%20declaration Tung's Tutorial] | ||
+ | |||
== Viewing the type Hierarchy == | == Viewing the type Hierarchy == | ||
+ | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/9%20-%20Viewing%20the%20type%20Hierarchy Tung's Tutorial] | ||
+ | |||
== Searching the workbench == | == Searching the workbench == | ||
− | [https://zenit.senecac.on.ca/ | + | [https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/10%20-%20Searching%20the%20workbench Tung's Tutorial] |
[https://zenit.senecac.on.ca/svn/ecl500_111rep5/trunk%2078/tung-lab1/src/cs/ecl/basics/lab/tut1/ project] | [https://zenit.senecac.on.ca/svn/ecl500_111rep5/trunk%2078/tung-lab1/src/cs/ecl/basics/lab/tut1/ project] | ||
== Running your programs == | == Running your programs == |
Revision as of 08:29, 4 February 2011
DPS914 - Basic Lab
Contents
- 1 Install Eclipse Subversive plug-in
- 2 Preparing Eclipse
- 3 Creating your first Java project
- 4 Browsing Java elements using the package explorer
- 5 Editing Java elements
- 6 Creating a Java class
- 7 Renaming Java elements
- 8 Moving and copying Java elements
- 9 Navigate to a Java element's declaration
- 10 Viewing the type Hierarchy
- 11 Searching the workbench
- 12 Running your programs
- 13 Debugging your programs
- 14 Evaluating expressions
- 15 Evaluating snippets
- 16 Using the Java browsing perspective
- 17 Writing and running JUnit tests
Install Eclipse Subversive plug-in
Preparing Eclipse
Creating your first Java project
Browsing Java elements using the package explorer
- To browse java elements using package explorer, expand the java package to show all the java classes. - Expand a java class, all the java elements are now visible. |
Editing Java elements
Creating a Java class
Renaming Java elements
Moving and copying Java elements
Move Element |
Copy Element |
||
---|---|---|---|
- Right click on a java class -> Refactor -> Move |
- Right click on a java class -> Copy |
||
- Select destination package of the file. |
- Right click package where the file will be placed. -> Paste |
||
- The file has been moved. |
- If a file of the type and name exist, you will be asked to rename the file. |
Viewing the type Hierarchy
Searching the workbench
Running your programs
- Right click on the java class containing the main funtion. -> Run As -> Java Application |
|
- The application should run. |
Debugging your programs
Evaluating expressions
Evaluating snippets
Using the Java browsing perspective
- Select the Perspective menu in the corner of the screen and select "other". |
|
- Select the Java Browsing Perspective. |
|
- The Java Browsing Perspective shows the same information as the Project Explorer Perspective but it organizes it in a tree view. |