Project

General

Profile

EclipsePreferencesforTeams » History » Version 68

Andreas Müller, 03/26/2022 03:05 PM

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