The Eclipse Web Tools Platform (WTP) project extends the Eclipse platform with tools for developing Web and Java EE applications. Visit the Web Tools Platform website for more information.
Version
- CentOS 5.x
- Eclipse 3.4.x
- Web Tools Platform (WTP) 3.0.x
Requirements
Install Web Tools Platform 3.0.x
- Open Eclipse
- Select the Help > Software Updates… menu option
- Expand the Ganymede Update Site option
- Expand the Web and Java EE Development option
- Select the following options
Eclipse XML Editors and Tools
JavaScript Developer Tools
Web Developer Tools
Web Page Editor (Optional)
- Click the Install… button
- Click the Next button
- Select the I accept the terms of the license agreements radio option
- Click the Finish button
- Click Yes to restart Eclipse
Configure Web Tools Platform 3.0.x
- Open Eclipse
- Select the Window > Preferences menu option
- Configure indenting for JavaScript files
- Select the JavaScript > Code Style > Formatter left column option
- Create a new custom profile
- Click the New… button
- Enter a Profile Name
- Click OK
- Set the following options
Tab Policy: Spaces only
Indentation size: 2
- Click OK
- Configure indenting for CSS files
- Select the Web > CSS Files > Editor left column option
- Set the following options
Indent using spaces
Indentation size: 2
- Configure indenting for HTML files
- Select the Web > HTML Files > Editor left column option
- Set the following options
Indent using spaces
Indentation size: 2
- Configure indenting for XML files
- Select the XML > XML Files > Editor left column option
- Set the following options
Indent using spaces
Indentation size: 2
- Click OK