Web Tools Platform (WTP)

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

  1. Open Eclipse
  2. Select the Help > Software Updates… menu option
  3. Expand the Ganymede Update Site option
  4. Expand the Web and Java EE Development option
  5. Select the following options
    Eclipse XML Editors and Tools
    JavaScript Developer Tools
    Web Developer Tools
    Web Page Editor (Optional)
  6. Click the Install… button
  7. Click the Next button
  8. Select the I accept the terms of the license agreements radio option
  9. Click the Finish button
  10. Click Yes to restart Eclipse

Configure Web Tools Platform 3.0.x

  1. Open Eclipse
  2. Select the Window > Preferences menu option
  3. Configure indenting for JavaScript files
    1. Select the JavaScript > Code Style > Formatter left column option
    2. Create a new custom profile
      1. Click the New… button
      2. Enter a Profile Name
      3. Click OK
      4. Set the following options
        Tab Policy: Spaces only
        Indentation size: 2
      5. Click OK
  4. Configure indenting for CSS files
    1. Select the Web > CSS Files > Editor left column option
    2. Set the following options
      Indent using spaces
      Indentation size: 2
  5. Configure indenting for HTML files
    1. Select the Web > HTML Files > Editor left column option
    2. Set the following options
      Indent using spaces
      Indentation size: 2
  6. Configure indenting for XML files
    1. Select the XML > XML Files > Editor left column option
    2. Set the following options
      Indent using spaces
      Indentation size: 2
  7. Click OK

Open Source Software: