Difference between revisions of "User:Cgomes7/Basics"

From CDOT Wiki
Jump to: navigation, search
(Browsing Java elements using the package explorer)
 
(14 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
[http://zenit.senecac.on.ca/wiki/index.php/Basics_:_Lab Basic Lab]
 
[http://zenit.senecac.on.ca/wiki/index.php/Basics_:_Lab Basic Lab]
 
   
 
   
 +
[[Image:Team_5_logo1.gif]]
 +
 +
== Install Eclipse Subversive plug-in ==
 +
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/0%20-%20Install%20Eclipse%20Subversive%20plug-in  Tung's Tutorial]
 +
 
== Preparing Eclipse ==
 
== Preparing Eclipse ==
 +
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/1%20-%20Preparing%20Eclipse  Tung's Tutorial]
  
 
== Creating your first Java project==
 
== Creating your first Java project==
[https://zenit.senecac.on.ca/~ecl500_111a11/lab_tutorial_Tung/lab1/2.%20Creating%20your%20first%20Java%20project/index.html Tung tutorial]
+
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/2%20-%20Creating%20your%20first%20Java%20project 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]
 
== Browsing Java elements using the package explorer ==
 
== Browsing Java elements using the package explorer ==
Line 22: 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/~ecl500_111a11/lab_tutorial_Tung/lab1/6.%20Renaming%20Java%20elements/index.html Tung tutorial]
+
[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 ==
  
{| class="wikitable" border="1"
+
 
|-
+
<table class="standard-table">
| - Right click on a java class -> Refactor -> Move|| [[Image:move.jpg|thumb|widthpx| ]]
+
<tr>
|-
+
<th>
| cell || cell
+
Move Element
|}
+
</th>
 +
<th>
 +
</th>
 +
<th>
 +
Copy Element
 +
</th>
 +
<th></th>
 +
</tr>
 +
<tr>
 +
<td>
 +
- Right click on a java class -> Refactor -> Move
 +
</td>
 +
<td>[[Image:move.jpg|thumb|widthpx| ]]</td>
 +
<td>
 +
- Right click on a java class -> Copy
 +
</td>
 +
<td>[[Image:copy.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
- Select destination package of the file.
 +
</td>
 +
<td>[[Image:packages.jpg|thumb|widthpx| ]]</td>
 +
<td>
 +
- Right click package where the file will be placed. -> Paste
 +
</td>
 +
<td>[[Image:paste.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
- The file has been moved.
 +
</td>
 +
<td>[[Image:newLocation.jpg|thumb|widthpx| ]]</td>
 +
<td>
 +
- If a file of the type and name exist, you will be asked to rename the file.
 +
</td>
 +
<td>[[Image:rename.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
</table>
  
 
== 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/~ecl500_111a11/lab_tutorial_Tung/lab1/10.%20Searching%20the%20workbench/index.html Tung tutorial]
+
[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 ==
 +
<table>
 +
<tr>
 +
<td>
 +
- Right click on the java class containing the main funtion.
 +
-> Run As -> Java Application
 +
</td>
 +
<td>
 +
[[Image:run.jpg|thumb|widthpx| ]]
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
- The application should run.
 +
</td>
 +
<td>
 +
[[Image:run11.jpg|thumb|widthpx| ]]
 +
</td>
 +
</tr>
 +
</table>
 +
 
== Debugging your programs ==
 
== Debugging your programs ==
== Evaluating expressions ==
+
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/12%20-%20Debugging%20your%20programs  Tung's Tutorial]
== Evaluating snippets ==
+
 
[https://zenit.senecac.on.ca/~ecl500_111a11/lab_tutorial_Tung/lab1/14.%20Evaluating%20snippets/index.html Tung tutorial]
+
== Evaluating snippets and expressions  ==
 +
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/14%20-%20Evaluating%20snippets 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]
 
== Using the Java browsing perspective ==
 
== Using the Java browsing perspective ==
 +
<table class="standard-table">
 +
<tr>
 +
<td>
 +
- Select the Perspective menu in the corner of the screen and select "other".
 +
</td>
 +
<td>[[Image:other.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
- Select the Java Browsing Perspective.
 +
</td>
 +
<td>[[Image:jbpers1.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
- The Java Browsing Perspective shows the same information as the Project Explorer Perspective but it organizes it in a tree view.
 +
</td>
 +
<td>[[Image:jbpers.jpg|thumb|widthpx| ]]</td>
 +
</tr>
 +
</table>
 
== Writing and running JUnit tests ==
 
== Writing and running JUnit tests ==
 +
[https://zenit.senecac.on.ca/%7Eecl500_111a11/labs/lab1%20-%20Basic/16%20-%20Writing%20and%20running%20JUnit%20tests  Tung's Tutorial]

Latest revision as of 08:30, 4 February 2011

DPS914 - Basic Lab

Basic Lab

Team 5 logo1.gif

Install Eclipse Subversive plug-in

Tung's Tutorial

Preparing Eclipse

Tung's Tutorial

Creating your first Java project

Tung's Tutorial 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.

JavaElements.jpg

Editing Java elements

Tung's Tutorial


Creating a Java class

Tung's Tutorial

Renaming Java elements

Tung's Tutorial project

Moving and copying Java elements

Move Element

Copy Element

- Right click on a java class -> Refactor -> Move

Move.jpg

- Right click on a java class -> Copy

Copy.jpg

- Select destination package of the file.

Packages.jpg

- Right click package where the file will be placed. -> Paste

Paste.jpg

- The file has been moved.

NewLocation.jpg

- If a file of the type and name exist, you will be asked to rename the file.

Rename.jpg

Navigate to a Java element's declaration

Tung's Tutorial

Viewing the type Hierarchy

Tung's Tutorial

Searching the workbench

Tung's Tutorial project

Running your programs

- Right click on the java class containing the main funtion. -> Run As -> Java Application

Run.jpg

- The application should run.

Run11.jpg

Debugging your programs

Tung's Tutorial

Evaluating snippets and expressions

Tung's Tutorial project

Using the Java browsing perspective

- Select the Perspective menu in the corner of the screen and select "other".

Other.jpg

- Select the Java Browsing Perspective.

Jbpers1.jpg

- The Java Browsing Perspective shows the same information as the Project Explorer Perspective but it organizes it in a tree view.

Jbpers.jpg

Writing and running JUnit tests

Tung's Tutorial