Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| student:eclipse:help [2023/04/27 14:13] – bernstdh | student:eclipse:help [2025/11/10 12:25] (current) – bernstdh | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| - | If Eclispe | + | If Eclipse |
| Line 20: | Line 20: | ||
| The first line indicates that the subsequent lines should be sent to the virtual machine as arguments. The second sets the heap space to 128Mb initially. The third sets the maximum heap space to 521Mb. The last two set the starting and maximum amount of space to use for class names, objects that are never garbage collected, etc...) to 128Mb. | The first line indicates that the subsequent lines should be sent to the virtual machine as arguments. The second sets the heap space to 128Mb initially. The third sets the maximum heap space to 521Mb. The last two set the starting and maximum amount of space to use for class names, objects that are never garbage collected, etc...) to 128Mb. | ||
| + | |||
| + | |||
| + | ==== Opening a Terminal ==== | ||
| + | |||
| + | You can open a terminal in Eclipse by clicking on < | ||
| + | and then clicking on the < | ||
| Line 111: | Line 117: | ||
| === Creating Packages === | === Creating Packages === | ||
| - | Some courses require that code within a package | + | Some courses require that code within a project |
| - Right-click on the appropriate project (in the package explorer). | - Right-click on the appropriate project (in the package explorer). | ||
| Line 119: | Line 125: | ||
| - Unless you are explicitly told to do so, **do not** check the " | - Unless you are explicitly told to do so, **do not** check the " | ||
| + | Subpackages can be created by including a dot/period in the name. So, for example, if you have a %%data%% package you can create a subpackage named %%data.io%% simply by including the dot/period in the name when you create it. However, note that Eclipse will not visually put the %%io%% package insides of the %%data%% package (though it will put the corresponding %%io%% directory/ | ||
| === Creating Files === | === Creating Files === | ||
| Line 132: | Line 139: | ||
| - Pull down to < | - Pull down to < | ||
| - Pull over to < | - Pull over to < | ||
| - | - Enter the name of the package in the " | + | - Enter the full name of the package |
| - Enter the name of the class in the " | - Enter the name of the class in the " | ||
| - Optionally, complete the other fields and make the appropriate selections. | - Optionally, complete the other fields and make the appropriate selections. | ||
| Line 168: | Line 175: | ||
| To instruct Eclipse to use them when compiling and executing you should: | To instruct Eclipse to use them when compiling and executing you should: | ||
| - | - Create a directory/ | + | - Create a directory/ |
| - Copy or download the '' | - Copy or download the '' | ||
| - Open Eclipse. | - Open Eclipse. | ||
| Line 236: | Line 243: | ||
| To find a matching curly bracket (either opening or closing) type < | To find a matching curly bracket (either opening or closing) type < | ||
| + | |||
| + | |||
| + | ==== Counting Lines of Code (LOC) ==== | ||
| + | |||
| + | Though there are several software metrics plug-ins available, there is an easy " | ||
| + | |||
| + | - Click on < | ||
| + | - Enter '' | ||
| + | - Check the " | ||
| + | - Enter '' | ||
| + | - Select the appropriate scope | ||
| + | - Click on < | ||
| + | |||
| + | The top line of the " | ||
| + | |||
| Line 280: | Line 302: | ||
| - | In Eclipse, applications are started using the < | + | In Eclipse, applications are started using the < |
| + | |||
| + | |||
| + | === Run Configurations === | ||
| + | |||
| + | There are different kinds of run configurations, | ||
| + | To create a run configuration, | ||
