Difference between revisions of "User:Cgomes7/Basics"

From CDOT Wiki
Jump to: navigation, search
(Moving and copying Java elements)
(Moving and copying Java elements)
Line 30: Line 30:
  
 
<table class="standard-table">
 
<table class="standard-table">
<tr>
 
 
<tr>
 
<tr>
 
<th>
 
<th>
Line 41: Line 40:
 
</th>
 
</th>
 
</tr>
 
</tr>
 +
<tr>
 
<td>
 
<td>
 
- Right click on a java class -> Refactor -> Move
 
- Right click on a java class -> Refactor -> Move
Line 46: Line 46:
 
<td>[[Image:move.jpg|thumb|widthpx| ]]</td>
 
<td>[[Image:move.jpg|thumb|widthpx| ]]</td>
 
</tr>
 
</tr>
 +
<td>
 +
- Right click on a java class -> Copy
 +
</td>
 +
<td>[[Image:copy.jpg|thumb|widthpx| ]]</td>
 
<tr>
 
<tr>
 
<td>
 
<td>
Line 51: Line 55:
 
</td>
 
</td>
 
<td>[[Image:packages.jpg|thumb|widthpx| ]]</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>
 
<tr>
 
<tr>
 
<td>
 
<td>
- File is moved.
+
- If a file of the type and name exist, you will be asked to rename the file.
 
</td>
 
</td>
<td>[[Image:newLocation.jpg|thumb|widthpx| ]]</td>
+
<td>[[Image:rename.jpg|thumb|widthpx| ]]</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Revision as of 20:15, 1 February 2011

DPS914 - Basic Lab

Basic Lab

Preparing Eclipse

Creating your first Java project

Tung 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

Creating a Java class

Renaming Java elements

Tung 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

- 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

Viewing the type Hierarchy

Searching the workbench

Tung tutorial project

Running your programs

Debugging your programs

Evaluating expressions

Evaluating snippets

Tung tutorial project

Using the Java browsing perspective

Writing and running JUnit tests