Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
app:eclipse:start [2010/08/22 20:44]
andreas.haerter
app:eclipse:start [2011/05/12 17:51] (current)
Line 1: Line 1:
 ====== Eclipse ====== ====== Eclipse ======
-FIXME Explain ​Eclipse ​(-> especially that it is a platformand common Editors are Plugins using this platform) ​+Eclipse ​is an Open Source cross-platform ​software development environment including an integrated development environment (IDE) and an extensible plugin system.
  
-FIXME Explain ​Eclipse ​Workspaces +Basic vocabulary and facts: 
- +  * **Eclipse ​itself is a platform.**\\ Nothing more, nothing less. You can write your own, common applications based on the Eclipse platform. E.g. [[..:​rssowl:​start|RSSOwl]] is Eclipse based. 
-FIXME Settings ​are stored within ​the workspacePutting them into Dropbox or comparable ​may be useful.+  * **Most GUI features and functionality ​are provided by Plugins.**\\ This is also true for Eclipse'​s main purpose: software development. E.g. the C/C++ editor comes with the "[[.:​plugin:​cdt|C/​C++ Development Tools (CDT)]]"​ plugin, the Python support with the [[.:​plugin:​pydev|PyDev]] plugin and so on. Sometimes, there are even more than one plugins ​ available, doing basically the same in different ways. Therefore, there is no "​default"​ Eclipse. And "​naked"​ Eclipse ​may be nearly useless for many developers (this is comparable with a naked Microsoft Windows without any additional software). 
 +  * **Workspaces are keeping all your meta-data, settings and projects. And you can have an unlimited number of them.**\\ The first thing you have to do after Eclipse was started is to choose your Workspace. You can compare this with an user/​account on operating systems: you can switch between different user accounts and you may have different fonts, links, backgrounds and data. This is very useful ​cause many companies and projects have different coding standards. E.g. you may create a Workspace for the ones working "2 spaces source code indentation"​ and "1 tab source code indentation"​.\\ There is only one downside of this approach: You can't share settings between different Workspaces. But a Workspace is just a directory, containing subdirectories and files so you can rename and copy them as you like. Therefore there is no problem to create a basic blueprint/​template Workspace. Set your general configuration there and copy+rename it if you have to create a new Workspace. 
 +  * **Projects are logical "​packages"​ in your Workspace**\\ FIXME Explain FIXME Explain that source code don't has to be stored with the Workspace/​project. You can make existing directories usable with "​New->​Folder->​Advanced->​Link to alternate location"​. 
 +  * **A "​Working Set" is an optional categorization functionality**\\ Working Sets are something like "​containers"​ to make large workspaces with many projects useable. Working Sets are able to group projects or even other Working Sets.
  
  
  
 ===== Installation ===== ===== Installation =====
 +
 +<WRAP center round tip 60%>
 +If you are using [[..:​dropbox:​start|Dropbox]] or a comparable service, think about the following to make switching and/or re-installing workstations less painful:
 +  - Put your workspaces into a synced directory.
 +  - You may even install the whole application into a synced directory. So you don't have to install Eclipse on every machine and all of your [[.:​plugin:​start|Plugins]] are in sync.
 +</​WRAP>​
 +
  
 ==== Ubuntu ==== ==== Ubuntu ====
 === 10.04 Lucid and above === === 10.04 Lucid and above ===
-<wrap info>Cause Eclipse is written in Java, you need a functional [[..:​java-runtime-environment:​start|Java Runtime Environment (JRE)]]</​wrap>​ before you can use it.+<wrap info>Because ​Eclipse is written in Java, you need a functional [[..:​java-runtime-environment:​start|Java Runtime Environment (JRE)]]</​wrap>​ before you can use it.
  
 == Installation,​ using the package manager == == Installation,​ using the package manager ==
Line 20: Line 30:
  
 == Manual installation == == Manual installation ==
-A manual installation of Eclipse is not very problematic ​cause it is a Java program, does not have much external dependencies and brings a built-in update mechanism. This makes Eclipse a very "​portable"​ application. Therefore this is one of the rare cases where you won't loose any comfort and security by bypassing Ubuntu'​s package manager.+A manual installation of Eclipse is not very problematic ​because ​it is a Java program, does not have much external dependencies and brings a built-in update mechanism. This makes Eclipse a very "​portable"​ application. Therefore this is one of the rare cases where you won't loose any comfort and security by bypassing Ubuntu'​s package manager.
  
 __Main benefits of a manual installation:​__ __Main benefits of a manual installation:​__
Line 49: Line 59:
  
 ===== Plugins ===== ===== Plugins =====
-{{indexmenu>app:eclipse:​plugin#2|js navbar nocookie tsort nsort context}}+The following lists all documented [[.:​plugin:​start|plugins]]:​ 
 +{{topic>plugin +eclipse ​-de}} 
 + 
 + 
 + 
 +===== Tips and tricks ===== 
 +==== Hotkeys / Keyboard shortcuts ==== 
 +<wrap tip>You can look at and change all shortcuts by opening "​Window->​Preferences->​General->​Keys"</​wrap>​. 
 +Most important ones (IMHO): 
 +  * **Navigate** 
 +    * <​key>​C-l</​key>:​ Go to __L__ine 
 +    * <​key>​C-q</​key>:​ Jump back to the last edited line. 
 +    * <​key>​A-Left</​key>:​ Jump back to the last edited line within the last edited method or function. 
 +    * <​key>​A-Right</​key>:​ Jump forward after <​key>​A-Left</​key>​ was used. 
 +    * <​key>​C-f</​key>:​ __F__ind text 
 +    * <​key>​C-k</​key>:​ Find next occurrence. <wrap tip>This works also for currently marked text</​wrap>,​ you don't have to search for something before. 
 +    * <​key>​C-S-k</​key>:​ Find previous occurrence. <wrap tip>This works also for currently marked text</​wrap>,​ you don't have to search for something before. 
 +    * <​key>​C-S-p</​key>:​ Jump to corresponding opening/​closing (curly) bracket 
 +    * <​key>​C-F6</​key>​\\ <​key>​C-e</​key>:​ Switch between open files. 
 +    * <​key>​C-S-r</​key>:​ Search for files within the projects. <wrap tip>You can use upper case letters to find camel case filenames</​wrap>:​ e.g. "​TFIC"​ is able to find "​ThisFeatureIsCool.txt"​. 
 +    * <​key>​C-.</​key>:​ Jump to next error (need activated syntax validation/"​report errors as you type"​) 
 +  * **Edit** 
 +    * <​key>​C-y</​key>:​ Undo 
 +    * <​key>​C-y</​key>:​ Redo 
 +    * <​key>​C-S-c</​key>​\\ <​key>​C-S-7</​key>::​ (Un)Comment currently selected line(s) 
 +  * **Other** 
 +    * <​key>​C-S-l</​key>:​ Show Hotkey-Cheat-Sheet((a hotkey for hotkeys... LOL)) 
 +    * <​key>​C-=</​key>:​ Zoom in. 
 +    * <​key>​C-Minus</​key>:​ Zoom out. 
 + 
 +==== Put everything into a Dropbox ==== 
 +If you are using [[..:​dropbox:​start|Dropbox]] or a comparable service, think about the following to make switching and/or re-installing workstations less painful: 
 +  - Put your workspaces into a synced directory. 
 +  - You may even install the whole application into a synced directory. So you don't have to install Eclipse on every machine and all of your [[.:plugin:start|Plugins]] are in sync. 
 + 
 + 
 +===== Troubleshooting ===== 
 +==== Resource is out of sync with the file system ==== 
 +This error is uncritical. If you are editing/​moving/​deleting managed within a workspace outside of Eclipse it can't know about the changes. Eclipse simply refuses to open such files to prevent errors cause they are out of sync as the error tells you. To re-sync them, right-click on the parent folder and choose "​Refresh"​. 
 + 
 +==== "out of memory"​ errors ==== 
 +The solution is simple: give the Java VM/Eclipse more RAM (default is 128MB). E.g. start Eclipse with the following parameters to give it between 256-512MB of memory: <​code>​-vmargs -Xms256M -Xmx512M -XX:​PermSize=256M -XX:​MaxPermSize=512M</​code>​ You may add them to your application starter/​link. 
 + 
 +==== Eclipse is very slow ==== 
 +If you got a slow CPU, try to disable: 
 +  * Syntax checker/​code assistant: Window->​Preferences->​Dynamic Languages->​Report problems as you type 
 +  * Spell checker: Window->​General->​Editors->​Text Editors->​Spelling->​Enable spell checking. 
 + 
 +==== Eclipse does not ask for a workspace at startup ==== 
 +Simply re-enable "​Window->​General->​Startup and Shutdown->​Workspaces->​Prompt for workspace on startup"​.
  
  
Line 57: Line 116:
   * [[http://​www.eclipse.org/​|Official Eclipse project page]]   * [[http://​www.eclipse.org/​|Official Eclipse project page]]
   * [[http://​wiki.eclipse.org/​|Eclipsepedia - Official Eclipse Wiki]]   * [[http://​wiki.eclipse.org/​|Eclipsepedia - Official Eclipse Wiki]]
-  * [[uuwiki>​Eclipse]] ​(German)+  * [[uuwiki>​Eclipse]] ​:lang_de: 
 +**Tips and tricks** 
 +  * [[http://​www.luisdelarosa.com/​2005/​02/​16/​eclipse-tip-use-bookmarks-to-track-important-places-in-your-code/​|Eclipse Tip: Use Bookmarks to track important places in your code]]
  
 {{tag>​application eclipse}} {{tag>​application eclipse}}
Print/export
QR Code
QR Code app:eclipse:start (generated for current page)
Languages