Development: Eclipse PrimerEclipse IDEThis document gives a short introduction to the IDE Eclipse. To use the Eclipse IDE several preferences should be set correctly. If you are using a different editor or IDE you should try to set this programs preferences similar to the guidelines described on this page. Eclipse VersionBasically the version of the Eclipse IDE you use does not matter. However versions 2.x contain several bugs that make it worth to switch to version 3.x. The project files in the repository as well as the code templates and the coding style are built for Eclipse 3.2.x. PreferencesDefault Runtime EnvironmentThe project relies on a JavaSE 6 or higher. As of version 3.2 Eclipse supports "Execution Environments". This project makes use of this feature by using the JavaSE 6 execution environment.
It appears that if a runtime environment is added using the
"Browse..." button in the "Installed JREs"
preferences section the tools.jar of the JDK does not
get added automatically. File EncodingsPlease try to stick to "ISO-8859-1" (also known as "ISO-Latin-1") file encodings. The default file encoding may be set in the preferences on the tab General -> Workspace -> Text file encoding. Line DelimitersTry to use "Unix" line delimiters. The default line delimiter may be set in the preferences on the tab General -> Workspace -> New text file line delimiter. Coding StyleThis project uses a project specific coding style. This includes custom templates, formatter and import rules. Please try to use the code formatter sparingly, esp. when it comes down to breaking long lines the results of the formatter are not very pleasing. Therefore do not format existing code. CVS PreferencesFile Content
Eclipse has its own table to figure out whether a file should be treated
by CVS as text or binary
file. In this table three file extension that are important in our project
are missing: To configure Eclipse for these file extensions go to the preferences tab Team -> File Content and add the following manually:
Ignored ResourcesThe following changes have been made to the ignored resources known by Eclipse (see preferences tab under Team -> Ignored Resources):
Built-in Ant SupportEclipse features a nice built-in Ant support (see Window -> Show View -> Ant) that allows to execute builds directly from within Ant. Run Ant builds with an external JRE to prevent problems. |