Project

General

Profile

EclipsePreferencesforTeams » History » Version 60

Andreas Kohlbecker, 03/16/2018 04:47 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 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)
32 59 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 use the file attached to here.
33 9 Patrick Plitzner
34 23 Andreas Kohlbecker
## Plugins
35
36
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
37 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@.
38
39 19 Andreas Kohlbecker
40
### Subclipse
41
42
Subclipse is an Eclipse team provider for the Subversion version
43
control system. 
44
45
* project site: http://subclipse.tigris.org/
46
* update site: http://download.eclipse.org/releases/juno
47
* set up:
48
49
50
### EGit
51
52
Eclipse Git is an Eclipse Team provider based on JGit, a pure Java implementation of the Git version control system.
53
54
* project site: http://eclipse.org/egit
55
* update site: http://download.eclipse.org/releases/juno
56
* set up:
57
58
59 22 Andreas Kohlbecker
60 21 Andreas Kohlbecker
### RunJettyRun
61
62
* project site: http://code.google.com/p/run-jetty-run/
63
* update site: 
64
* set up: Install via Eclipse Marktplace
65 1 Andreas Kohlbecker
66 33 Andreas Kohlbecker
### Remote Workspace Preferences
67 9 Patrick Plitzner
68 38 Andreas Kohlbecker
69 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.
70 1 Andreas Kohlbecker
71
* project site: https://marketplace.eclipse.org/content/remote-workspace-preferences-plug
72 16 Patrick Plitzner
* update site: http://netceteragroup.github.io/eclipse-team-etceteras/updatesite (or install via eclipse marketplace)
73 9 Patrick Plitzner
* set up:
74 44 Patrick Plitzner
  1. Install the _Remote Workspace Preferences_ plugin and restart eclipse.
75 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".
76 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)
77 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.
78 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.
79
80
### Code Template
81 1 Andreas Kohlbecker
82 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 
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: