EclipsePreferencesforTeams » History » Version 42
Patrick Plitzner, 04/29/2014 05:27 PM
1 | 36 | Andreas Kohlbecker | {{>toc}} |
---|---|---|---|
2 | |||
3 | |||
4 | |||
5 | |||
6 | ---- |
||
7 | |||
8 | |||
9 | 1 | Andreas Kohlbecker | |
10 | 10 | Patrick Plitzner | # Eclipse plugins and preferences |
11 | 1 | Andreas Kohlbecker | |
12 | |||
13 | 9 | Patrick Plitzner | _Plugins, code templates, coding conventions, preferences etc. for EDIT CDM Development in php, java, javascript._ |
14 | 1 | Andreas Kohlbecker | |
15 | |||
16 | 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._ |
17 | 1 | Andreas Kohlbecker | |
18 | 23 | Andreas Kohlbecker | |
19 | |||
20 | 9 | Patrick Plitzner | ---- |
21 | 1 | Andreas Kohlbecker | |
22 | |||
23 | |||
24 | 35 | Andreas Kohlbecker | ## Quick Setup |
25 | 23 | Andreas Kohlbecker | |
26 | 1 | Andreas Kohlbecker | |
27 | 35 | Andreas Kohlbecker | |
28 | ### Setting up eclipse |
||
29 | |||
30 | |||
31 | 34 | Andreas Kohlbecker | 1. import the @prefs-available-software-sites.xml@, see the "Plugins" for more on this. |
32 | 33 | Andreas Kohlbecker | |
33 | 1. enable the following plugins: |
||
34 | |||
35 | * Remote Workspace Preferences |
||
36 | |||
37 | * TODO ... |
||
38 | 1 | Andreas Kohlbecker | |
39 | 35 | Andreas Kohlbecker | |
40 | |||
41 | ### Setting up a new Workspace |
||
42 | |||
43 | |||
44 | 1 | Andreas Kohlbecker | 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 |
45 | 35 | Andreas Kohlbecker | |
46 | 33 | Andreas Kohlbecker | |
47 | |||
48 | |||
49 | 9 | Patrick Plitzner | ## Coding conventions |
50 | 1 | Andreas Kohlbecker | |
51 | 9 | Patrick Plitzner | |
52 | |||
53 | ### Eclipse Code Template for Java |
||
54 | |||
55 | |||
56 | 28 | Andreas Kohlbecker | _NOTE: The Code Template is now deployed via the Remote Workspace Preferences (see below), so there is no longer a need to apply it manually!_ |
57 | |||
58 | |||
59 | 9 | Patrick Plitzner | To work with an eclipse IDE you may use the code template below, which includes the license comment, |
60 | |||
61 | the log4j logger import, and the class comment (@author, @creation, @version). |
||
62 | |||
63 | |||
64 | |||
65 | To use it you have to: |
||
66 | |||
67 | |||
68 | |||
69 | 13 | Andreas Kohlbecker | 1. download the attached file _CDM-Java-Code-Template.xml_. For downloading it click link below, scroll down and click "*ORIGINAL FORMAT*" !! |
70 | 9 | Patrick Plitzner | |
71 | |||
72 | 1. open eclipse preferences (MS Windows: window-preferences; MAC: eclipse-preferences) |
||
73 | |||
74 | |||
75 | 1. goto Java - Code Style - Code Templates |
||
76 | |||
77 | |||
78 | 1. import the template by using Import... |
||
79 | |||
80 | |||
81 | 1. |
||
82 | |||
83 | * don't forget to check the "Generate comments" check box in the "New Java Class" wizard or |
||
84 | |||
85 | * OR even better set this as **default** for the new class wizard by checking Window > Preferences... > Java > Code Style > templates > Automatically add comments... |
||
86 | |||
87 | |||
88 | |||
89 | ## Plugins |
||
90 | 23 | Andreas Kohlbecker | |
91 | |||
92 | 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 |
||
93 | |||
94 | 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@. |
||
95 | 9 | Patrick Plitzner | |
96 | |||
97 | 19 | Andreas Kohlbecker | |
98 | ### Subclipse |
||
99 | |||
100 | Subclipse is an Eclipse team provider for the Subversion version |
||
101 | |||
102 | control system. |
||
103 | |||
104 | * project site: http://subclipse.tigris.org/ |
||
105 | |||
106 | * update site: http://download.eclipse.org/releases/juno |
||
107 | |||
108 | * set up: |
||
109 | |||
110 | |||
111 | |||
112 | ### EGit |
||
113 | |||
114 | Eclipse Git is an Eclipse Team provider based on JGit, a pure Java implementation of the Git version control system. |
||
115 | |||
116 | * project site: http://eclipse.org/egit |
||
117 | |||
118 | * update site: http://download.eclipse.org/releases/juno |
||
119 | |||
120 | * set up: |
||
121 | |||
122 | |||
123 | 22 | Andreas Kohlbecker | |
124 | 19 | Andreas Kohlbecker | ### RunJettyRun |
125 | 21 | Andreas Kohlbecker | |
126 | * project site: http://code.google.com/p/run-jetty-run/ |
||
127 | |||
128 | * update site: |
||
129 | |||
130 | * set up: Install via Eclipse Marktplace |
||
131 | |||
132 | |||
133 | 1 | Andreas Kohlbecker | |
134 | 33 | Andreas Kohlbecker | ### Remote Workspace Preferences |
135 | 9 | Patrick Plitzner | |
136 | 37 | Andreas Kohlbecker | |
137 | 38 | 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. |
138 | 37 | Andreas Kohlbecker | |
139 | |||
140 | 40 | Andreas Kohlbecker | * project site: https://marketplace.eclipse.org/content/remote-workspace-preferences-plug |
141 | 1 | Andreas Kohlbecker | |
142 | 42 | Patrick Plitzner | * update site: http://netceteragroup.github.io/eclipse-team-etceteras/updatesite (or install via eclipse marketplace) |
143 | 1 | Andreas Kohlbecker | |
144 | 16 | Patrick Plitzner | * set up: |
145 | |||
146 | 42 | Patrick Plitzner | 1. Install the _Remote Workspace Preferences_ plugin and restart eclipse. **Currently not available** |
147 | 9 | Patrick Plitzner | |
148 | 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". |
||
149 | |||
150 | 1. Restart eclipse and hit "Yes" to import the remote preferences. |
||
151 | |||
152 | |||
153 | 29 | 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. |
154 | |||
155 | 31 | Andreas Kohlbecker | * 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. |
156 | 9 | Patrick Plitzner | |
157 | |||
158 | |||
159 | ### Web Development |
||
160 | |||
161 | 1 | Andreas Kohlbecker | |
162 | |||
163 | 16 | Patrick Plitzner | #### AnyEditTools |
164 | 1 | Andreas Kohlbecker | |
165 | 16 | Patrick Plitzner | * project site: http://andrei.gmxhome.de/anyedit/ |
166 | |||
167 | * update site: http://andrei.gmxhome.de/eclipse/ |
||
168 | |||
169 | * set up: |
||
170 | |||
171 | |||
172 | |||
173 | #### JavaScript Development Tools |
||
174 | |||
175 | * project site: http://www.eclipse.org/webtools/jsdt/ |
||
176 | |||
177 | * update site: http://download.eclipse.org/releases/juno |
||
178 | |||
179 | * set up: |
||
180 | |||
181 | |||
182 | |||
183 | #### PHP codesniffer |
||
184 | |||
185 | 27 | Andreas Kohlbecker | |
186 | [_CodeSniffer is broken in indigo!!!!_](http://sourceforge.net/tracker/index.php?func=detail&aid=3395739&group)id=263892&atid=1127654* |
||
187 | |||
188 | 15 | Andreas Kohlbecker | * project site: http://xfragger.de/209/php-codesniffer-fur-eclipse |
189 | 1 | Andreas Kohlbecker | |
190 | 18 | Andreas Kohlbecker | * update site: http://www.phpsrc.org/eclipse/pti/ |
191 | 15 | Andreas Kohlbecker | |
192 | 26 | Andreas Kohlbecker | * recommendet plugins: |
193 | |||
194 | * core |
||
195 | 25 | Andreas Kohlbecker | |
196 | * library.pear |
||
197 | |||
198 | * tools.phpmd |
||
199 | |||
200 | * tools.phpunit |
||
201 | |||
202 | * tools.codesniffer |
||
203 | |||
204 | 15 | Andreas Kohlbecker | * set up: |
205 | |||
206 | * disable all codesniffer rules in Window > Preferences |
||
207 | |||
208 | * download [Codesniffer rules for Drupal CDM](http://dev.e-taxonomy.eu/svn/branches/drupal/dataportal-to-drupal7/helper-scripts/Codesniffer/Drupal_CDM) |
||
209 | |||
210 | * in project settings enable the Drupal_CDM Codesniffer rules |
||
211 | |||
212 | * for drupal projects exclude the following files and folders: |
||
213 | |||
214 | ~~~ |
||
215 | */drupal*/modules/*,*/drupal*/includes/*,*/drupal*/misc/*,*/drupal*/themes/*,*/drupal*/profiles/*,*.png,*.gif,*.jpg |
||
216 | 1 | Andreas Kohlbecker | ~~~ |
217 | 15 | Andreas Kohlbecker | |
218 | 1 | Andreas Kohlbecker | |
219 | 16 | Patrick Plitzner | #### PHP Development Tools |
220 | 1 | Andreas Kohlbecker | |
221 | 16 | Patrick Plitzner | * project site: http://www.eclipse.org/projects/project.php?id=tools.pdt |
222 | |||
223 | * update site: http://download.eclipse.org/releases/juno |
||
224 | |||
225 | * set up: |
||
226 | |||
227 | |||
228 | |||
229 | #### PHP Mess Detector |
||
230 | |||
231 | * project site: http://phpmd.org/ |
||
232 | |||
233 | * update site: |
||
234 | |||
235 | * set up: |
||
236 | |||
237 | |||
238 | |||
239 | #### Web Page Editor |
||
240 | |||
241 | * project site: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.jst.jsf.doc.user%2Fhtml%2Fgettingstarted%2Fwpe%2Fwpe_getting_started.html |
||
242 | |||
243 | * update site: http://download.eclipse.org/releases/juno |
||
244 | |||
245 | 15 | Andreas Kohlbecker | * set up: |
246 | |||
247 | |||
248 | |||
249 | #### jshint |
||
250 | |||
251 | * project site: http://github.eclipsesource.com/jshint-eclipse/about.html |
||
252 | 9 | Patrick Plitzner | |
253 | * update site: http://github.eclipsesource.com/jshint-eclipse/updates/ |
||
254 | |||
255 | * set up: |
||
256 | 39 | Andreas Kohlbecker | |
257 | |||
258 | |||
259 | ### Documentation & UML |
||
260 | |||
261 | |||
262 | |||
263 | #### Architexa |
||
264 | |||
265 | |||
266 | 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. |
||
267 | |||
268 | |||
269 | Requires registration! |
||
270 | |||
271 | |||
272 | * project site: http://www.architexa.com/ |
||
273 | |||
274 | * update site: |
||
275 | |||
276 | * set up: |