Project

General

Profile

EclipsePreferencesforTeams » History » Version 61

Andreas Kohlbecker, 07/29/2019 03:07 PM

1 56 Andreas Kohlbecker
# Eclipse plugins and preferences
2
3 10 Patrick Plitzner
4 9 Patrick Plitzner
_Plugins, code templates, coding conventions, preferences etc. for EDIT CDM Development in php, java, javascript._
5 1 Andreas Kohlbecker
6 24 Andreas Kohlbecker
*TIP*: _For quickly setting up eclipse you may want to import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this._
7 1 Andreas Kohlbecker
8
----
9 57 Andreas Kohlbecker
10
{{>toc}}
11
12 1 Andreas Kohlbecker
13 54 Andreas Kohlbecker
## Installing Eclipse
14 1 Andreas Kohlbecker
15 54 Andreas Kohlbecker
The eclipse IDE can be downloaded from https://www.eclipse.org/downloads/eclipse-packages/ where you may want to choose the 'Eclipse IDE for Java Developers' package.
16
Another very good option is the [Spring Tool Suite](https://spring.io/tools) which comes bundled with almost all plugins you will need.
17 1 Andreas Kohlbecker
18 23 Andreas Kohlbecker
## Quick Setup
19 1 Andreas Kohlbecker
20 35 Andreas Kohlbecker
21
### Setting up eclipse
22 33 Andreas Kohlbecker
23
1. import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this.
24
1. enable the following plugins:
25
  * Remote Workspace Preferences
26 1 Andreas Kohlbecker
  * TODO ...
27 35 Andreas Kohlbecker
28
29
### Setting up a new Workspace
30 50 Andreas Müller
31 61 Andreas Kohlbecker
1. import the [[EclipsePreferencesforTeams#RemoteWorkspacePreferences|Remote Workspace Preferences]] from https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/prefs_remote_workspace_preferences.epf (see [Remote Workspace Preferences section](https://dev.e-taxonomy.eu/trac/wiki/EclipsePreferencesforTeams#RemoteWorkspacePreferences) below)
32
1. import the Java code template from https://raw.githubusercontent.com/cybertaxonomy/code-templates/master/eclipse/4.x/prefs/CDM-Java-Code-Template.xml 
33 23 Andreas Kohlbecker
## Plugins
34
35
The available software sites to be added to eclipse can be downloaded from here: http://dev.e-taxonomy.eu/svn/trunk/devtools/eclipse/4.x/prefs/prefs-available-software-sites.xml
36 9 Patrick Plitzner
Apply these setting by going to "Available Software Sites" in the eclipse preferences, click on import and browse to the location to where you downloaded @prefs-available-software-sites.xml@.
37
38 19 Andreas Kohlbecker
39
### Subclipse
40
41
Subclipse is an Eclipse team provider for the Subversion version
42
control system. 
43
44
* project site: http://subclipse.tigris.org/
45
* update site: http://download.eclipse.org/releases/juno
46
* set up:
47
48
49
### EGit
50
51
Eclipse Git is an Eclipse Team provider based on JGit, a pure Java implementation of the Git version control system.
52
53
* project site: http://eclipse.org/egit
54
* update site: http://download.eclipse.org/releases/juno
55
* set up:
56
57
58 22 Andreas Kohlbecker
59 21 Andreas Kohlbecker
### RunJettyRun
60
61
* project site: http://code.google.com/p/run-jetty-run/
62
* update site: 
63
* set up: Install via Eclipse Marktplace
64 1 Andreas Kohlbecker
65 33 Andreas Kohlbecker
### Remote Workspace Preferences
66 9 Patrick Plitzner
67 38 Andreas Kohlbecker
68 37 Andreas Kohlbecker
For now we decided to use this plugin for distributing preferences within the team, but we may switch to another solution in future, see #3335 (Share workspace setting within the team) for more information.
69 1 Andreas Kohlbecker
70
* project site: https://marketplace.eclipse.org/content/remote-workspace-preferences-plug
71 16 Patrick Plitzner
* update site: http://netceteragroup.github.io/eclipse-team-etceteras/updatesite (or install via eclipse marketplace)
72 9 Patrick Plitzner
* set up:
73 44 Patrick Plitzner
  1. Install the _Remote Workspace Preferences_ plugin and restart eclipse.
74 9 Patrick Plitzner
  1. Go to _File->Import->General->Remote Preferences->From URL_, paste this URL: http://dev.e-taxonomy.eu/svn/trunk/devtools/eclipse/4.x/prefs/prefs_remote_workspace_preferences.epf and hit "Finish".
75 29 Andreas Kohlbecker
  1. Restart eclipse and hit "Yes" to import the remote preferences. (If the dialog does not appear see the re-applying step below)
76 1 Andreas Kohlbecker
* To re-import/re-apply the preferences go to _File->Import->General->Remote Preferences->From configured URL_ which will now show all the applicable preferences files.
77 47 Andreas Müller
* Once the `prefs_remote_workspace_preferences.epf` file has changed you will need to paste the above URL again into the "From URL" text field.
78
79
### Code Template
80 1 Andreas Kohlbecker
81 60 Andreas Kohlbecker
1. Download the code template file from http://dev.e-taxonomy.eu/svn/trunk/devtools/eclipse/4.x/prefs/CDM-Java-Code-Template.xml or use attachment:CDM-Java-Code-Template.xml 
82 9 Patrick Plitzner
1. In eclipse open Window-Preferences and here open Java - Code Style - Code Template.
83
1. Use the import functionality and import the above file
84
85 1 Andreas Kohlbecker
### Web Development
86
87
#### AnyEditTools
88 16 Patrick Plitzner
89
* project site: http://andrei.gmxhome.de/anyedit/
90
* update site: http://andrei.gmxhome.de/eclipse/
91
* set up:
92
93
94
#### JavaScript Development Tools
95
96
* project site: http://www.eclipse.org/webtools/jsdt/
97
* update site: http://download.eclipse.org/releases/juno
98
* set up:
99
100
#### PHP codesniffer
101 27 Andreas Kohlbecker
102
103 1 Andreas Kohlbecker
[_CodeSniffer is broken in indigo!!!!_](http://sourceforge.net/tracker/index.php?func=detail&aid=3395739&group)id=263892&atid=1127654*
104 15 Andreas Kohlbecker
* project site: http://xfragger.de/209/php-codesniffer-fur-eclipse
105 26 Andreas Kohlbecker
* update site: http://www.phpsrc.org/eclipse/pti/
106 25 Andreas Kohlbecker
* recommendet plugins:   
107
  * core
108
  * library.pear
109
  * tools.phpmd 
110
  * tools.phpunit
111 15 Andreas Kohlbecker
  * tools.codesniffer
112
* set up:
113
  * disable all codesniffer rules in Window > Preferences
114
  * download [Codesniffer rules for Drupal CDM](http://dev.e-taxonomy.eu/svn/branches/drupal/dataportal-to-drupal7/helper-scripts/Codesniffer/Drupal_CDM)
115
  * in project settings enable the Drupal_CDM Codesniffer rules
116
  * for drupal projects exclude the following files and folders:
117
118
~~~
119
*/drupal*/modules/*,*/drupal*/includes/*,*/drupal*/misc/*,*/drupal*/themes/*,*/drupal*/profiles/*,*.png,*.gif,*.jpg
120 1 Andreas Kohlbecker
~~~
121 15 Andreas Kohlbecker
122 1 Andreas Kohlbecker
123
#### PHP Development Tools
124 16 Patrick Plitzner
125
* project site: http://www.eclipse.org/projects/project.php?id=tools.pdt
126
* update site: http://download.eclipse.org/releases/juno
127
* set up:
128
129
#### PHP Mess Detector
130
131
* project site: http://phpmd.org/
132
* update site: 
133
* set up:
134
135
#### Web Page Editor
136
137
* project site: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Fwpe%2Fwpe_getting_started.html
138 15 Andreas Kohlbecker
* update site: http://download.eclipse.org/releases/juno
139
* set up:
140
141
142
#### jshint
143 9 Patrick Plitzner
144
* project site: http://github.eclipsesource.com/jshint-eclipse/about.html
145 39 Andreas Kohlbecker
* update site: http://github.eclipsesource.com/jshint-eclipse/updates/
146
* set up:
147
148
### Documentation & UML
149
150
#### Architexa
151
152
Just Another Eclipse Plugin which helps in understanding and documenting code. Architexa can turn a large Java codebase into a comprehensible and navigable diagram of functionality and dependency.
153
154
Requires registration!
155
156
* project site: http://www.architexa.com/
157
* update site: 
158
* set up: