Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 2.76 KB

eclipse.md

File metadata and controls

52 lines (40 loc) · 2.76 KB

Eclipse configuration

Requirements

  • Download from Artifactory
  • Unzip and startup eclipse.exe
  • Choose a folder for your workspace

Initial steps

  • Configure "autosave" by open window/preferences, and then: autosave

  • Import Project import

  • Import Gradle project with the default options: importGradle

  • To verify that we are up to date with all the dependencies, that all compiles oK and to generate the Test runners, execute the Gradle task testClasses: testClasses

  • Change package presentation: package

Running the tests

  • In src\test\java\tests... you will find the jUnit classes to execute the tests. Those classes are automatically generated after execute the gradle task testClasses IntelliJ

Update project

  • If something is changed in the project, you can refresh the Gradle configuration by: eclipse-refresh

Tutorials

See https://www.udemy.com/eclipse-java-tutorial-for-beginners/

Shortcut Description
Alt+Shift+R Rename
Ctrl+1 Quickfix; shows potential fixes for warnings, errors or shows possible actions
Ctrl+Space Content assist/ code completion
Ctrl+D Deletes current line in the editor
Ctrl+Q Goes to the last edited position
Alt+Shift+L Extract local variable
Ctrl+Shift+F Format source code
Ctrl+Alt+H Opens call hierarchy
Shift+Alt+UP Selects enclosing elements. Result depending on cursor position
Ctrl+F Opens the find dialog
Ctrl+Shift+R Opens the resource dialog
Ctrl+Shift+F format code
Alt+Shift+S generate getters / setters
Ctrl+Alt+G find usages