Difference between revisions of "Team1/Navigate to a Java element's declaration"

From CDOT Wiki
Jump to: navigation, search
(Created page with ' === 8. Navigate to a Java element's declaration === 8.1. Select the element you want to look through, then go to ''Navigate - > Open Decleration'' or press ''F3''. <br/> [[Ima…')
 
 
Line 1: Line 1:
 +
=== 8. Navigate to a Java element's declaration ===
 +
 +
8.1. Select the element you want to look through, e.g. ''vehicle(constructor)'' then either:<br/>
 +
[[Image:declerationa.jpg |600px]]
 +
 +
<br/>8.2.1. Go to ''Navigate - > Open Decleration'' or press ''F3''.<br />
 +
[[Image:decleration1.jpg |500px ]]
  
  
=== 8. Navigate to a Java element's declaration ===
+
<br/>8.2.2. Or, right click on the element and click on ''Open Decleration'' or press ''F3''.<br />
 +
[[Image:decleration2.jpg |500px ]]
  
8.1. Select the element you want to look through, then go to ''Navigate - > Open Decleration'' or press ''F3''. <br/>
 
[[Image:decleration1.jpg |600px]]
 
  
<br/>8.2. In the ''New Java Class'' window, write down your class name, e.g."VehicleRegistration" and check the ''public static void main(String[] args)''. Press Finish to close the window.<br />
 
[[Image:newclass2.jpg |500px ]]
 
  
<br/>8.3. The following code will be the content of the ''VehicleRegistration'' class in ''cs.ecl.basics.lab'' package.<br />
+
<br/>8.3. The implementation of the constructor of ''Vehicle'' class will be opened up.<br />
[[Image:newclass3.jpg |600px ]]
+
[[Image:decleration3.jpg |600px ]]

Latest revision as of 12:40, 30 January 2011

8. Navigate to a Java element's declaration

8.1. Select the element you want to look through, e.g. vehicle(constructor) then either:
Declerationa.jpg


8.2.1. Go to Navigate - > Open Decleration or press F3.
Decleration1.jpg



8.2.2. Or, right click on the element and click on Open Decleration or press F3.
Decleration2.jpg



8.3. The implementation of the constructor of Vehicle class will be opened up.
Decleration3.jpg