Eclipse

From BC$ MobileTV Wiki
Jump to: navigation, search

Eclipse is an open source IDE originally created by IBM in November 2001 and supported by a consortium of software vendors. The Eclipse Foundation was created in January 2004 as an independent not-for-profit corporation to act as the steward of the Eclipse community. The independent not-for-profit corporation was created to allow a vendor neutral and open, transparent community to be established around Eclipse. Today, the Eclipse community consists of individuals and organizations from a cross section of the software industry.[1]


Initiatives

IDE

The Eclipse IDEs (both downloadable/installable and cloud/web-based) are the foundation's primary product, through which most initiatives are channeled.

JDK

Adoptium

Working Group, renamed from prior "AdoptOpenJDK".

[2]

JakartaEE

See: JakartaEE (formerly J2EE, then JEE... "Java on the web" stack)

IoT


Shortcuts

Find Files (by filename)

To filter and quickly find files in a given project by Filename, highlight project then:

CTRL+SHIFT+R


Find Files (by Project contents)

Also useful is a manual search by text contained in all files (for a given project or directory of a project):

Highlight project, (from top menu) Search-->File


Find Occurences of Text in All Projects

To find occurences of a given set of Text in all files types within ALL Projects currently open in the IDE, you can simply hit:

CTRL+H  (then choose "File Search")

Find Definition (instantiation)

This helps you quickly find the place where of method/function or object/variable is instantiated in the code:

CTRL+G

Find next usage (in current file)

This helps you step between declarations, instantiations and usages of a variable:

CTRL+K


Call Hierarchy (calls to method/property)

Call Hierarchy allows you to find all all calls to and from a selected method, property, or constructor.

CTRL+ALT+H 

[5]


Auto Import & Import Cleanup

This will add any missing imports that Java knows about (a selection prompt will appear if there are multiple possible matches by name but different packages in the available paths/libs), and, as a side-effect this will automatically cleanup the order/spacing and remove any unused classes from the list of import statements:

CTRL+SHIFT+O

Generate Getters/Setters

This will auto-generate the standard Getter/Setter boilerplate code off of the list of "instance variables" already declared at the top of inside the class:

ALT+SHIFT+S (then R to skip the prompt and generate for all)

Run on Server

Start the default application server and all installed applications within it (requires an AppServer to be setup within the IDE):

CTRL+R


Custom

These need to be set within Windows --> Preferences --> Keys but are particularly useful:

List all key shortcuts/bindings

You can list out all currently mapped Shortcut Keys (bindings) using:

Ctrl+Shift+L

Clean/Build

Listed under "Build Clean". This will kick off a new build (requires a "build.xml" file for project):

Ctrl+Alt+B

Deploy

Listed under "Run". This will re-deploy the most recent build (requires a project to already be registered to a given server within the IDE):

Ctrl+Alt+D

[6] [7] [8] [9]


Templates



Tools


Resources

Plugins


Tutorials

[58]


External Links


References

  1. About Eclipse Foundation: http://www.eclipse.org/org/
  2. Eclipse Adoptium Working Group Formally Established: https://www.infoq.com/news/2021/03/eclipse-adoptium-established/
  3. How can I get the complete Call Hierarchy of a Java source code?: http://stackoverflow.com/questions/20589962/how-can-i-get-the-complete-call-hierarchy-of-a-java-source-code
  4. Call Hierarchy (in VisualStudio): https://msdn.microsoft.com/en-us/library/dd409859.aspx
  5. What is the difference between call hierarchy and find references in Eclipse?: http://stackoverflow.com/questions/14019906/what-is-the-difference-between-call-hierarchy-and-find-references-eclipse
  6. Eclipse -- List of key bindings: http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-keybindings.htm
  7. Effective Eclipse -- Shortcut Keys: https://dzone.com/articles/effective-eclipse-shortcut-key
  8. Keybinding keys to insert custom code Eclipse: https://stackoverflow.com/questions/11518784/keybinding-keys-to-insert-custom-code-eclipse (CTRL+SPACE SPACE can be used to do code template auto-suggestions)
  9. Top 30 Eclipse Keyboard Shortcuts for Java Programmers: https://dzone.com/articles/top-30-eclipse-keyboard-shortcuts-for-java-program-1
  10. Eclipse Code Templates tutorial: http://www.tutorialspoint.com/eclipse/eclipse_code_templates.htm
  11. Getting started with Eclipse code templates: https://www.ibm.com/developerworks/opensource/tutorials/os-eclipse-code-templates/index.html
  12. Eclipse Custom Variable for Java Code Templates: https://stackoverflow.com/questions/350600/eclipse-custom-variable-for-java-code-templates
  13. Use your own variable in eclipse code templates: https://thomaswabner.wordpress.com/2009/08/21/use-your-own-variable-in-eclipse-code-templates/
  14. Use Maven Artifact Version in Eclipse Code Templates: https://ahoehma.wordpress.com/2009/08/24/use-maven-artifact-version-in-eclipse-templates/
  15. Eclipse Code Templates: http://fahdshariff.blogspot.ca/2008/11/eclipse-code-templates.html
  16. Useful Eclipse Templates for Faster Coding: http://fahdshariff.blogspot.ca/2011/08/useful-eclipse-templates-for-faster.html
  17. Eclipse Orion -- Your IDE in the Cloud: http://www.eclipse.org/community/eclipse_newsletter/2016/january/article4.php
  18. Meet Eclipse Orion: For the cloud, in the cloud: http://www.ibm.com/developerworks/cloud/library/cl-orionsummary/index.html
  19. Eclipse Orion - Getting started: http://wiki.eclipse.org/index.php?title=Orion/Documentation/User_Guide/Getting_started&cm_mc_uid=93546180585114857091001&cm_mc_sid_50200000=1485771516
  20. Install Orion on (your machine) Localhost: http://wiki.eclipse.org/Orion/How_Tos/Install_Orion_on_Localhost
  21. Eclipse Orion - A Web Experience for Software Development: https://dzone.com/articles/eclipse-oriont
  22. Huson CI server plugin for Eclipse: http://www.eclipse.org/hudson/
  23. Setting up Eclipse to build Jenkins: https://wiki.jenkins-ci.org/display/JENKINS/Setting+up+Eclipse+to+build+Jenkins
  24. Control Hudson or Jenkins from Eclipse Indigo 3.7: http://ralf.schaeftlein.de/2011/07/15/control-hudson-or-jenkins-from-eclipse-indigo-3-7/
  25. Cobertura: http://cobertura.sourceforge.net/
  26. Eclipse count "lines of code": https://stackoverflow.com/questions/6924158/eclipse-count-lines-of-code
  27. Hibernate Tools: http://marketplace.eclipse.org/content/hibernate-tools-0
  28. Hibernate Tools: http://www.hibernate.org/subprojects/tools.html
  29. Hibernate Tools install -- Step-By-Step: http://www.youtube.com/watch?v=AtRstkliJ48 (VIDEO)
  30. How to install Spring IDE in Eclipse: http://www.mkyong.com/spring/how-to-install-spring-ide-in-eclipse/
  31. Spring Tool Suite (STS) for Eclipse Juno (3.8 + 4.2) 3.1.0.RELEASE: http://marketplace.eclipse.org/content/spring-tool-suite-sts-eclipse-juno-42
  32. Maven Eclipse Plugin: http://maven.apache.org/plugins/maven-eclipse-plugin/
  33. Cannot search for artifact in Eclipse Kepler using m2e plugin: http://stackoverflow.com/questions/18047843/cannot-search-for-artifact-in-eclipse-kepler-using-m2e-plugin
  34. Eclipse - Maven search dependencies don't work: http://stackoverflow.com/questions/14059685/eclipse-maven-search-dependencies-doesnt-work
  35. Nexus public respository empty cant create maven project: http://stackoverflow.com/questions/24678470/nexus-public-respository-empty-cant-create-maven-project
  36. Classic error -- Unable to update index for central|http://repo1.maven.org/maven2: http://stackoverflow.com/questions/7065478/classic-error-unable-to-update-index-for-centralhttp-repo1-maven-org-maven2
  37. The server does not support version 3.1 of the J2EE Web module specification on Eclipse: https://stackoverflow.com/questions/40925643/the-server-does-not-support-version-3-1-of-the-j2ee-web-module-specification-on?noredirect=1&lq=1
  38. The server does not support version 3.0 of the J2EE web module specification: https://stackoverflow.com/questions/6922391/the-server-does-not-support-version-3-0-of-the-j2ee-web-module-specification
  39. How to transfer Netbeans Project into Eclipse?: https://stackoverflow.com/questions/2122633/how-to-transfer-netbeans-project-into-eclipse
  40. How to get your Netbeans project into Eclipse: https://stackoverflow.com/a/33407417/335867
  41. Migrating From NetBeans to Eclipse: https://stackoverflow.com/questions/836647/migrating-from-netbeans-to-eclipse
  42. Importing Java Web EE Netbeans Project to Eclipse: https://stackoverflow.com/questions/12079395/importing-java-web-ee-netbeans-project-to-eclipse
  43. Using the Eclipse Debugger: http://www.youtube.com/watch?v=9gAjIQc4bPU
  44. How to set a breakpoint in Eclipse in a third party library?: http://stackoverflow.com/questions/370814/how-to-set-a-breakpoint-in-eclipse-in-a-third-party-library
  45. FAQ How do I set a conditional breakpoint?: http://wiki.eclipse.org/FAQ_How_do_I_set_a_conditional_breakpoint%3F
  46. How to generate Javadoc HTML in Eclipse?: https://stackoverflow.com/questions/4468669/how-to-generate-javadoc-html-in-eclipse
  47. Should JavaDoc comments be added to the implementation: https://stackoverflow.com/questions/3061387/should-javadoc-comments-be-added-to-the-implementation
  48. The resource is not on the build path of a javascript project: https://stackoverflow.com/questions/24505993/the-resource-is-not-on-the-build-path-of-a-javascript-project
  49. Tern & ECMAScript support: https://github.com/angelozerr/tern.java/wiki/Tern-&-ECMAScript-support
  50. Tern plugin for Eclipse IDE - Installation: https://github.com/angelozerr/tern.java/wiki/Tern-Eclipse-IDE
  51. Tern Console: https://github.com/angelozerr/tern.java/wiki/Tern-Console
  52. IBM Integration Bus, Version 9.0.0.8 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS: https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/au16690_.htm
  53. Eclispe - Error Log: https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-error_log_view.htm
  54. FAQ Where can I find that elusive .log file?: https://wiki.eclipse.org/FAQ_Where_can_I_find_that_elusive_.log_file%3F
  55. Nodeclipse - update site: http://www.nodeclipse.org/updates/
  56. Javascript file editing stopped working with Eclipse 2020-06: https://stackoverflow.com/questions/62742955/javascript-file-editing-stopped-working-with-eclipse-2020-06
  57. Javascript file editing stopped working with Eclipse 2020-06: https://stackoverflow.com/questions/62742955/javascript-file-editing-stopped-working-with-eclipse-2020-06 (Windows --> Preferences --> file associations then select *.js on the right side list, then select "Generic Text Editor" below and click "Default" button)
  58. Eclipse JavaScript Editor: content assist for js files, autocompletion: https://stackoverflow.com/questions/1006934/eclipse-javascript-editor-content-assist-for-js-files-autocompletion
  59. Loose classpath web libraries support: https://www.ibm.com/support/knowledgecenter/SSRTLW_8.0.4/com.ibm.javaee.doc/topics/tlooseclasspath.html

See Also

IDE | Java | Maven