====== [[http://www.eclipse.org|Eclipse]] ====== ===== General ===== * [[http://www.springsource.com/products/eclipse-downloads|SpringSource Tool Suite]] downloads * [[eclipse>Platform_UI/Juno_Performance_Investigation|Juno Performance Investigation]] * [[habrahabr>244713|10 возможностей быть продуктивнее с Eclipse для Java разработчиков]] {{eclipse_plugins_4.5.2.png?1000|Installed plugins}} Other plugins: * [[http://editbox.sourceforge.net/|EditBox]] -- plugin for highlighting the background of the source code * [[http://jeljo.wordpress.com/2012/02/11/xmind-on-eclipse/|Xmind on Eclipse]] * [[http://eclipsecolorthemes.org/|Eclipse Color Themes]] * [[http://www.eclipse.org/datatools/project_sqldevtools/|DTP SQL Development Tools Project]] * [[programming:java:start#what_java_decompiler_is_the_best|What Java decompiler is the best]] {{eclipse_bookmarks.xml|Bookmarks}}: | Eclipse EGit | http://download.eclipse.org/egit/updates/ | | Gonsole | http://rherrmann.github.io/gonsole/repository/ | | MercurialEclipse | http://cbes.javaforge.com/update/ | | [[https://www.eclipse.org/mat/|Memory Analyzer]] :YES: | https://download.eclipse.org/mat/latest/update-site/ | | [[http://wiki.eclipse.org/MemoryAnalyzer/OQL#OQL_.28Memory_Analyzer.29_versus_SQL_.28MAT.2FCalcite.29|Memory Analyzer Calcite plugin]] :YES: | [[https://github.com/vlsi/mat-calcite-plugin/releases/latest|Download latest version]] and add e.g. ''MatCalciteRepository-1.5.0.zip'' to sites. \\ Documentation: [[https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.mat.ui.help%2Freference%2Foqlsyntax.html|OQL syntax]], [[https://publib.boulder.ibm.com/httpserv/cookbook/Major_Tools-Eclipse_Memory_Analyzer_Tool.html#Major_Tools-Eclipse_Memory_Analyzer_Tool-Object_Query_Language_OQL|OQL examples]], [[http://wiki.eclipse.org/MemoryAnalyzer/OQL|OQL (Memory Analyzer) versus SQL (MAT/Calcite)]], [[https://www.eclipse.org/forums/index.php?t=msg&th=2045&goto=5952&#msg_5952|example 1]], [[https://www.eclipse.org/forums/index.php?t=msg&th=440499&goto=987293&#msg_987293|example 2]], [[https://www.codetd.com/en/article/12640606|Advanced use of Eclipse Memory Analyzer Tool]] | | [[https://marketplace.eclipse.org/content/ibm-monitoring-and-diagnostic-tools-garbage-collection-and-memory-visualizer-gcmv|Garbage Collection and Memory Visualizer (GCMV)]] :YES: | Install from Marketplace | | [[github>groovy/groovy-eclipse/wiki|Groovy-Eclipse]] :YES: | https://groovy.jfrog.io/ui/native/plugins-release/e4.26/ | | EPIC (Perl) | http://e-p-i-c.sf.net/updates/testing/ | | [[github>angelozerr/angularjs-eclipse|AngularJS]] :YES: | https://marketplace.eclipse.org/content/angularjs-eclipse | | Aptana Studio | http://download.aptana.com/studio3/plugin/install | | Eclipse SQL Explorer | http://eclipsesql.sourceforge.net/((:NO: Does not work on Eclipse Neon (4.6), use [[http://dbeaver.jkiss.org/|DBeaver]] below)) | | [[http://dbeaver.jkiss.org/|DBeaver]] ((SQL console)) | http://dbeaver.jkiss.org/update/latest/ | | oXygen XML Editor | http://www.oxygenxml.com/InstData/Editor/Eclipse/ | | [[https://www.eclemma.org/installation.html#updatesite|EclEmma Java Code Coverage]] | http://update.eclemma.org/ | | Eclipse Checkstyle Plug-in | http://eclipse-cs.sf.net/update/ | | JSHint | http://github.eclipsesource.com/jshint-eclipse/updates/ | | Java Decompiler | Add ''[[https://github.com/java-decompiler/jd-eclipse/releases/download/v1.0.0/jd-eclipse-site-1.0.0-RC2.zip|jd-eclipse-site-1.0.0-RC2.zip]]'' to sites((Make sure that **Decompiled Class File Editor** is the default editor for ''.class'' files (//Preferences -> Global -> Editors -> File Associations -> *.class//.))) | | JadClipse | http://jadclipse.sf.net/updateUnfortunately, JadClipse update site is down. As advised in [[stackoverflowa>13916713/267197|this post]], you need to download ''{{jdeclipse_update_site.zip}}'', and add this ZIP to list of software sites. | | Atlassian connector | http://update.atlassian.com/atlassian-eclipse-plugin/rest/e3.7 (check [[https://confluence.atlassian.com/display/IDEPLUGIN/Installing+the+Eclipse+Connector#InstallingtheEclipseConnector-sites|Installing the Eclipse Connector]] for updates) | | [[http://dev.cdhq.de/eclipse/word-wrap/|Eclipse Word-Wrap]] | http://dev.cdhq.de/eclipse/updatesite/luna/ | | [[http://ystrot.github.com/glance/|Glance]] ((Incremental text search. Also available via [[http://marketplace.eclipse.org/sites/all/themes/nova/images/helpMarketplace.png|Eclipse Marketplace]])) :YES: | http://www.exyte.com/glance/updates \\ Has nasty [[github>ystrot/glance/issues/13|issue with Git history support]]. Fixed in [[github>cypher256/glance|this fork]], use this update site: \\ https://raw.githubusercontent.com/cypher256/glance/master/releng/com.xored.glance-updatesite/site.xml | | Colorer | http://colorer.sf.net/eclipsecolorer/ | | [[https://marketplace.eclipse.org/content/json-tools|Json Tools]] | https://bitbucket.org/denmiroch/jsontools/src/default/JsonSite/ | | [[http://nodj.github.io/AutoDeriv/|AutoDeriv]]((Eclipse plugin that handles the derived state of resources from a textual file)) :YES: | http://nodj.github.io/AutoDeriv/update \\ Create ''.derived'' in your workspace root (''D:\workspace\.derived'') with the following content: target **/target | ^ To install SVN 1.7 correctly enable these sites ^^ | Subversive Site | http://download.eclipse.org/technology/subversive/0.7/update-site/ | | Subversive Connectors Site | http://community.polarion.com/projects/subversive/download/eclipse/2.0/update-site/ | ^ To install SVN 1.8 for Kepler enable these sites ^^ | Subversive Site | http://download.eclipse.org/technology/subversive/1.1/update-site/ | | Subversive Connectors Site | http://community.polarion.com/projects/subversive/download/eclipse/3.0/update-site/ | ^ To install Subversive v4.0.4 for Nuon enable these sites (helps to solve [[eclipsetracker>492534|Compare with last revision not working]] problem) ^^ | Subversive Site | http://download.eclipse.org/technology/subversive/4.0/update-site/ | ^ [[eclipse>Jetty_WTP_Plugin/Jetty_WTP_Install|Installing the WTP Adaptor]] ^^ | Jetty WTP | http://download.eclipse.org/jetty/updates/jetty-wtp | | JBoss WTP for Kepler | http://download.jboss.org/jbosstools/updates/webtools/kepler/ | | JBoss WTP for Luna | http://download.jboss.org/jbosstools/updates/webtools/luna/ | :YES: = install for [[https://spring.io/tools/sts/all|Eclipse STS]]. * [[http://cs.winona.edu/cscap/javaspeak/eclipseShortcuts.htm|Eclipse shortcuts]] * [[habrahabr>168223|Eclipse for Java Developers. Навигация и редактирование]] | ''Ctrl+Shift+R'' | Resource | | ''Ctrl+Shift+T'' | Type | | ''Ctrl+Shift+X'' | Upper | | ''Ctrl+Shift+Y'' | Lower | | ''Alt+Shift+X,Y'' | Run as Java | | ''Alt+Shift+R'' | Rename | | ''Ctrl+Alt+Up'' | Duplicate line | | ''Ctrl+L'' | List all shortcuts | | ''Alt+F7'' | Compare with HEAD | | ''Alt+F8'' | Compare with Rev | | ''Alt+Shift+F7'' | Replace with HEAD | | ''Ctrl+Shift+P'' | Navigating to Matching braces | | ''Ctrl+O'' | Navigating to different parts of the code | | ''Ctrl+,'' and ''Ctrl+.'' | Takes you to the previous/next error | | ''Ctrl+F7'' | Switching to different views | | ''Ctrl+F6'' | Switching to different editors | | ''Ctrl+F8'' | Switch to different perspectives | | ''F3'' from console | Navigate to the corresponding source code | | ''Ctrl+Shift+ArrowUp/Down'' | Jumping from method to method | | ''Ctrl+Shift+I'' | Evaluate selected expression | | ''Ctrl+Shift+U'' | Toggle case (upper/lower) | ===== Questions answered ===== === What are the best JVM settings for Eclipse? === See [[stackoverflow>142357|here]]. === How to reset/change authentication information for SVN access? === Subclipse running over SVNKit stores authentication information in ''configuration\org.eclipse.core.runtime\.keyring'' (see [[http://svn.haxx.se/subusers/archive-2006-09/0052.shtml|here]] and [[http://www.techcrony.info/?p=29|here]] for more information). === After switching from [[http://subclipse.tigris.org/|Subclipse]] to [[http://www.eclipse.org/subversive/|Subversive]] I cannot share the project anymore === * You need to //Disconnect// the project in Subclipse before switching to new Subversive provider (see [[http://forums.polarion.com/viewtopic.php?t=117#p399|here]]). * You can move temporary ''.svn'' folder from the root of your project somewhere, refresh the project, return it back and refresh again. Now you can yse //Team -> Share Project// (see [[http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&viewType=browseAll&dsMessageId=948155#messagefocus|here]]). === How to install JavaHL plugin for Subclipse? === When installing Subclipse JavaHL adapter for Eclipse on 64-bit platform, the installation fails due to the following: ''Missing requirement: JavaHL 1.6.6 Win32 Binaries (Optional) 2.2.2.I20100512-1900 (org.polarion.eclipse.team.svn.connector.javahl16.win32.feature.group 2.2.2.I20100512-1900) requires 'org.polarion.eclipse.team.svn.connector.javahl16.win32 [2.2.2.I20100512-1900]' but it could not be found'' From [[http://subclipse.tigris.org/wiki/JavaHL#head-0ae839721445e3f59d10a128ec9439d4f4988d5f|here]]: You need to install 64-bit version of [[http://www.sliksvn.com/en/download|Silk SVN]]. Subclipse should find JavaHL on ''%PATH%'' and just work. === How to install embedded application server for Eclipse? === * For Apache Tomcat follow [[http://www.eclipse.org/webtools/jst/components/ws/1.0/tutorials/InstallTomcat/InstallTomcat.html|these instructions]] as well as [[eclipse>WTP_Tomcat_FAQ|WTP+Tomcat FAQ]]. If you have installed only WTP plugin, you also need "JST Server Adapters" (see [[http://www.mail-archive.com/users@tomcat.apache.org/msg64367.html|here]]) to get [[Tomcat]], [[JBoss]] & Oracle adapters. * For Jetty [[eclipse>Jetty/Starting/Downloads|see here]] and [[http://docs.codehaus.org/display/JETTY/Downloading+Jetty|here]]: * The latest [[http://www.webtide.com/eclipse/features/org.mortbay.jetty.serveradaptor_1.0.4.jar|Eclise plugin]] can only work with [[http://dist.codehaus.org/jetty/jetty-6.1.22/jetty-6.1.22.zip|Jetty 6.x]]. * For Jetty 7.x download Jetty common package [[http://dist.codehaus.org/jetty/|from here]] and JSP 2.1 support [[http://oss.sonatype.org/content/groups/jetty/org/mortbay/jetty/jetty-jsp-2.1/|from here]] (see also [[stackoverflow>1003710|How do I install Jetty WTP Server Adapter for Eclipse 3.5?]]). === How to copy workspace configuration (clone the workspace)? === You need to copy ''.metadata/.plugins/org.eclipse.core.runtime/.settings'' folder. === [[stackoverflowa>408449/267197|How do I change Eclipse to use tabs instead of spaces?]] === {{eclipse_editor_tabs.png|Insert spaces for tabs}} After setting the tab policy for Java/XML/... editor, one needs to uncheck //Insert spaces for tabs// in //Preferences -> Editors -> Text Editors//. === How to deal with console applications? === Indeed, when you launch the application that uses console directly under Eclipse it will not work, as ''System.console()'' will return ''null''. The solution is described [[stackoverflow>104254|here]]: * either use ''BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));'' * or debug the Java application remotely (launch JVM with ''-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=9090,server=y,suspend=y'') === How enable schema checking & autocompletion for ''log4j.xml''? === From [[stackoverflowa>10852980/267197|Referencing log4j.dtd in log4j.xml]]: You need to use the following declaration: ''%%%%'' instead of: ''%%%%'' === How to exclude ''target'' folder from search results? === From [[stackoverflowa>8214101/267197|Exclude target folder from search results in eclipse]]: Mark the ''target'' folders as "Derived" resource in properties. In quick search (Ctrl+Shift+R) screen in options (press the arrow in the top right corner) make sure that "Show derived resources" is unticked. === I get the ''sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target'' exception when fetching from remote repository === The problem is that the remote server uses the SSL certificate, which couldn't be verified by JRE. This means you have to add the missing authority certificate (if the remote certificate was signed by it) or add the remote certificated itself (if it is self-signed). The best way is to check this in Firefox (click on this icon {{http://img.informer.com/icons/png/48/2505/2505203.png?16}} in right-bottom corner) and export the necessary key. Then you need to manipulate the JRE default key storage and import the given certificate to it. Assuming that you are in ''$JAVA_HOME/jre/lib/security'' directory and ''C:\Temp\DigiCertHighAssuranceEVRootCA.crt'' is the exported certificate: ''..\..\bin\keytool.exe -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias DigiCertHighAssuranceEVRootCA -file C:\Temp\DigiCertHighAssuranceEVRootCA.crt'' In case you import the self-signed certificate, skip the ''-trustcacerts'' key. ''changeit'' is a default password for the key store. For complete reference check ''[[javase>docs/tooldocs/windows/keytool.html|keytool]]'' manual. === Hot to cure "Read timeout" message in Update Manager? === From [[stackoverflowa>3403534/267197|Change value of 'Read timeout' of Eclipse's Update Manager]]: Add ''-Dsun.net.client.defaultReadTimeout=30000'' to your ''eclipse.ini''. ====== [[https://www.jetbrains.com/idea/features/|IntelliJ IDEA]] ====== Hotkeys: | ''Shift+F6'' | Rename | | ''Ctrl+B'' | Go to declaration or usages | | ''Ctrl+Alt+B'' | Go to implementation | | ''Ctrl+N'' | Jump to class | | ''Ctrl+Shift+N'' | Search in all files | | ''Ctrl+Shift+U'' | Toggle lower/upper case | | ''Ctrl+Alt+Shift+J'' | Highlight all occurrences of selected text in a file | | ''Ctrl+Alt+V'' | Refactor → Extract variable | | ''Ctrl+Alt+N'' | Refactor → Inline (replace) variable | | ''Ctrl+Shift+F10'' | Run all tests in current file | | ''Alt-Enter'' | Provide error fix (e.g. add missing import) | | ''Ctrl-F12'' | Navigate to / list all class methods | {{tag>Eclipse IDEA Jetty SVN}}