Project

General

Profile

EclipsePreferencesforTeams » History » Version 56

Andreas Kohlbecker, 11/08/2016 10:01 AM

1 56 Andreas Kohlbecker
# Eclipse plugins and preferences
2
3 36 Andreas Kohlbecker
{{>toc}}
4 10 Patrick Plitzner
5 1 Andreas Kohlbecker
6 9 Patrick Plitzner
_Plugins, code templates, coding conventions, preferences etc. for EDIT CDM Development in php, java, javascript._
7 1 Andreas Kohlbecker
8 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._
9 23 Andreas Kohlbecker
10 9 Patrick Plitzner
----
11 1 Andreas Kohlbecker
12 54 Andreas Kohlbecker
## Installing Eclipse
13 1 Andreas Kohlbecker
14 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.
15
Another very good option is the [Spring Tool Suite](https://spring.io/tools) which comes bundled with almost all plugins you will need.
16 1 Andreas Kohlbecker
17 23 Andreas Kohlbecker
## Quick Setup
18 1 Andreas Kohlbecker
19 35 Andreas Kohlbecker
20
### Setting up eclipse
21 33 Andreas Kohlbecker
22
1. import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this.
23
1. enable the following plugins:
24
  * Remote Workspace Preferences
25 1 Andreas Kohlbecker
  * TODO ...
26 35 Andreas Kohlbecker
27
28
### Setting up a new Workspace
29 50 Andreas Müller
30 46 Patrick Plitzner
1. import the [[EclipsePreferencesforTeams#RemoteWorkspacePreferences|Remote Workspace Preferences]] from http://dev.e-taxonomy.eu/svn/trunk/devtools/eclipse/4.x/prefs/prefs_remote_workspace_preferences.epf (see [Remote Workspace Preferences section](https://dev.e-taxonomy.eu/trac/wiki/EclipsePreferencesforTeams#RemoteWorkspacePreferences) below)
31 33 Andreas Kohlbecker
1. import the Java code template from http://dev.e-taxonomy.eu/svn/trunk/devtools/eclipse/4.x/prefs/CDM-Java-Code-Template.xml or http://dev.e-taxonomy.eu/trac/browser/trunk/devtools/eclipse/4.x/prefs/CDM-Java-Code-Template.xml  (see [Code Template section](http://dev.e-taxonomy.eu/trac/wiki/EclipsePreferencesforTeams#CodeTemplate) below)
32 9 Patrick Plitzner
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
80
### Code Template
81
82
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 http://dev.e-taxonomy.eu/trac/browser/trunk/devtools/eclipse/4.x/prefs/CDM-Java-Code-Template.xml
83 9 Patrick Plitzner
1. In eclipse open Window-Preferences and here open Java - Code Style - Code Template.
84
1. Use the import functionality and import the above file
85
86 1 Andreas Kohlbecker
### Web Development
87
88
#### AnyEditTools
89 16 Patrick Plitzner
90
* project site: http://andrei.gmxhome.de/anyedit/
91
* update site: http://andrei.gmxhome.de/eclipse/
92
* set up:
93
94
95
#### JavaScript Development Tools
96
97
* project site: http://www.eclipse.org/webtools/jsdt/
98
* update site: http://download.eclipse.org/releases/juno
99
* set up:
100
101
#### PHP codesniffer
102 27 Andreas Kohlbecker
103
104 1 Andreas Kohlbecker
[_CodeSniffer is broken in indigo!!!!_](http://sourceforge.net/tracker/index.php?func=detail&aid=3395739&group)id=263892&atid=1127654*
105 15 Andreas Kohlbecker
* project site: http://xfragger.de/209/php-codesniffer-fur-eclipse
106 26 Andreas Kohlbecker
* update site: http://www.phpsrc.org/eclipse/pti/
107 25 Andreas Kohlbecker
* recommendet plugins:   
108
  * core
109
  * library.pear
110
  * tools.phpmd 
111
  * tools.phpunit
112 15 Andreas Kohlbecker
  * tools.codesniffer
113
* set up:
114
  * disable all codesniffer rules in Window > Preferences
115
  * download [Codesniffer rules for Drupal CDM](http://dev.e-taxonomy.eu/svn/branches/drupal/dataportal-to-drupal7/helper-scripts/Codesniffer/Drupal_CDM)
116
  * in project settings enable the Drupal_CDM Codesniffer rules
117
  * for drupal projects exclude the following files and folders:
118
119
~~~
120
*/drupal*/modules/*,*/drupal*/includes/*,*/drupal*/misc/*,*/drupal*/themes/*,*/drupal*/profiles/*,*.png,*.gif,*.jpg
121 1 Andreas Kohlbecker
~~~
122 15 Andreas Kohlbecker
123 1 Andreas Kohlbecker
124
#### PHP Development Tools
125 16 Patrick Plitzner
126
* project site: http://www.eclipse.org/projects/project.php?id=tools.pdt
127
* update site: http://download.eclipse.org/releases/juno
128
* set up:
129
130
#### PHP Mess Detector
131
132
* project site: http://phpmd.org/
133
* update site: 
134
* set up:
135
136
#### Web Page Editor
137
138
* project site: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Fwpe%2Fwpe_getting_started.html
139 15 Andreas Kohlbecker
* update site: http://download.eclipse.org/releases/juno
140
* set up:
141
142
143
#### jshint
144 9 Patrick Plitzner
145
* project site: http://github.eclipsesource.com/jshint-eclipse/about.html
146 39 Andreas Kohlbecker
* update site: http://github.eclipsesource.com/jshint-eclipse/updates/
147
* set up:
148
149
### Documentation & UML
150
151
#### Architexa
152
153
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.
154
155
Requires registration!
156
157
* project site: http://www.architexa.com/
158
* update site: 
159
* set up: