ctrl-F to open File/Replace Dialog check Regular Expressions Find: ^[\t }*@.*$\R Replace \with: <leave blank> Click Replace All
Leave the open file in eclipse/sts tab after search
Window -> Preferences -> General -> Search uncheck Reuse editors to show matches
Eclipse Workspace – Prompt on Startup
To turn on / off the prompt for Eclipse Workspace on startup Open PreferencesGeneral -> Startup and Shutdown -> Workspaces
Auto Generate JavaDoc stub in Eclipse
To generate a JavaDoc stub for your class, method, etc you need to use the following key combination On Windows Alt+Shift+J On a Mac Alt+Cmd+J
Add the Drools Plug-in to Spring STS
Start Eclipse Help -> Install New Software Work With: http://download.jboss.org/drools/release/5.5.0.Final/org.drools.updatesite/ click the “Add” button Name: Drools Check the Drools and jBPM checkbox and follow the instructions to get it installed.
Git version control with Eclipse (EGit) – Tutorial
This is a great tutorial on Egit by Lars Voegel. Git version control with Eclipse (EGit) - Tutorial
Eclipse and JavaDoc
Install JavaDoc in Eclipse Use JDK Window -> Preferences-> Java -> Installed JREs Add Select path to JDK instead of JRE The javadoc is included with the JDK Download Javadoc Download Javadoc from the Oracle Site This does not need to be expanded Open Eclipse Window -> Preferences -> Java (expand) -> Installed JREs Select... Continue Reading →
Eclipse – Set your JRE
Windows Open Eclipse Window -> Preferences -> Java -> Installed JREs Add Navigate to JRE location - C:\Program Files\Java\... Mac Open Eclipse Eclipse -> Preferences -> Java -> Installed JREs Add Navigate to JRE location - /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home Set Java Compliance Level Preferences -> Java -> Compiler Compiler Compliance Level
Tomcat in Eclipse, set Java Version
Open Eclipse Window -> Show View -> Servers Double click your existing Tomcat Server click 'Open launch configuration' Classpath Bootstrap Entities Remove existing JRE if necessary (click Remove) Advanced -> Add Library -> OK JRE System Library -> Alternate JRE -> Installed JREs Add -> Standard VM /Library/Java/Java Virtual Machines ... path to jdk