Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Graphical Eclipse FAQs
The Graphical Eclipse FAQs is a collection of FAQs that have been produced by the Eclipse community in hopes of helping guide users through frequently asked questions with the help of verbal instructions and graphical screenshots.
Contents
- 1 Eclipse Platform/Workspace
- 1.1 How do I find out which Java runtime environment is being used to run my Eclipse?
- 1.2 How do I show line numbers in the Eclipse text editor?
- 1.3 How do I change the colour of the highlighting marker that highlights all the occurrences of some element in the text editor?
- 1.4 How do I switch my workspace?
- 1.5 I have just installed a plug-in but I do not see any indication of it in my workspace. What do I do?
- 2 JDT
- 2.1 How do I change the compiler compliance level for my workspace?
- 2.2 How do I add arguments to the Java program I am running?
- 2.3 How do I alter my package representation so that parent packages are housing child packages?
- 2.4 I clicked on something and now I can only see the method that I am currently editing. What do I do? Did I lose my entire file?
- 3 PDE
Eclipse Platform/Workspace
How do I find out which Java runtime environment is being used to run my Eclipse?
1. Go into the Help menu and then click on About Eclipse SDK.
2. Now in the opened about dialog, click on 'Configuration Details'.
3. Now take a look at the java.vendor and java.version property.
How do I show line numbers in the Eclipse text editor?
1. Right-click on the left margin of your text editor and then click on 'Show Line Numbers'.
How do I change the colour of the highlighting marker that highlights all the occurrences of some element in the text editor?
1. Go into the Window menu and then click on Preferences.
2. Now navigate to the 'Annotations' preference page as below and change the colour of the 'Occurrences' annotation type.
How do I switch my workspace?
1. Go into the File menu and then go into the Switch Workspace submenu.
I have just installed a plug-in but I do not see any indication of it in my workspace. What do I do?
1. Did you try restarting Eclipse with the -clean argument? The instructions provided here are for Windows users. For UNIX-based system users, the steps are similar and you should be able to follow along without any trouble. First, open your Start menu and then click on Run.
2. Type in 'cmd'.
3. Navigate to your Eclipse folder and then run Eclipse with the -clean argument appended to it.
JDT
How do I change the compiler compliance level for my workspace?
1. Open up the preferences dialog by going to the Window menu.
2. Now navigate to the Java compiler preferences page as below and then select your compiler compliance level. The same steps can be applied on a per-project basis.
How do I add arguments to the Java program I am running?
1. Open up the run dialog via the dropdown toolbar item.
2. Select your Java Application launch configuration. Go into the 'Arguments' tab and then type in your arguments in that text field.
How do I alter my package representation so that parent packages are housing child packages?
1. Click on the dropdown menu on the Package Explorer view. Go to the 'Package Representation' submenu and then click on 'Hierarchical'.
2. You should now see your packages presented in a tree like structure.
I clicked on something and now I can only see the method that I am currently editing. What do I do? Did I lose my entire file?
1. No, you must've clicked on the 'Show Selected Element Only' toolbar item. See below and unselect it.
PDE
I get an unhandled event loop exception in my console. What gives?
1. Open up the run dialog via the dropdown toolbar item.
2. Select your Eclipse Application launch configuration. Go into the 'Arguments' tab and then append '-consoleLog' as an argument and then try running your application again.