background preloader

Eclipse

Facebook Twitter

Using svn 1.7 in eclipse on Mac OS X — widerin.org. After upgrading subversion client my eclipse could not find javahl bindings any more, because i previously installed the CollabNet ones, which are currently available for subversion 1.6.x only.

Using svn 1.7 in eclipse on Mac OS X — widerin.org

The bad thing about this is Subclipse does not work any more, until you'll install these libraries using one of the following two solutions. Both guides are valid for Mac OS X Lion and Mountain Lion. macports If you use macports to get these missing javahlbindings you just have to execute the following command in your Terminal. $ sudo port install subversion-javahlbindings homebrew Installing through homebrew is not as easy as installing through macports because they are not available as single package, but you can add a --java option to the homebrew command to build required javahlbinding together with subversion. Btw, you can check which different options are allowed on each formula by executing: Possible conflicts Using new installed subversion $ vi ~/.profile ... export PATH=/usr/local/bin:$PATH ...

Effective Eclipse: Shortcut keys. You should try to keep your hands on keyboard.

Effective Eclipse: Shortcut keys

The less you touch the mouse, the more code you can write. I am trying to keep the mouse laying still and control the IDE completely using keyboard. What do you think is faster: pressing ALT + C or right clicking the project, selecting Team -> Commit? It is said, that if a function does not have a key binding, it is useless. Below you will find a set of essential keyboard shortcuts that I love. Delete row. ALT + Up/Down Arrow Move the row (or the entire selection) up or down. ALT + Left/Right Arrow Move to the last location you edited. Organize imports. Probably the most useful one. Quick fix comes handy in other situations too. You could use the "Split variable declaration" on the bar variable, and then move it with Alt+Arrows above the try block.. Or you could use the "Add unimplemented methods" fix here. The best thing you can do if you see an error is to use the quick fix. Open Type. Shows you a list of all open editors. Move between views.

FAQ Eclipse. Les templates sont des bouts de code accessibles via des raccourcis typographiques.

FAQ Eclipse

Par exemple, tapez sys quelque part dans votre code source d'une classe Java et appuyez sur CTRL + Espace. Ceci provoque l'affichage d'une fenêtre, comme indiqué sur l'image suivante : Sélectionnez sysout - print to standard out et appuyez sur Entrée. Et voilà ! Le code System.out.println(); a été inséré. Parmi les templates prédéfinis, ceux-ci vous permettent de générer des squelettes de code qui vous aiderons à programmer plus rapidement. Autres exemples : Créer une instance d'une classe : Tapez new puis CTRL + Espace Sélectionnez le template new - create new Object et le code type name = new type(arguments); est généré, avec les champs à compléter encadrés, et le premier mot type sélectionné. Vous pouvez également définir vos propres templates : Pour cela, allez dans le menu Window > Preferences > Java > Editor > Templates. <p>${word_selection}${}</p>${cursor} A utiliser en début de corps d'une classe.