eclipse pdt installation for ullright

Installation

Note: this guide assumes using Ubuntu (9.10) and PDT 2.1 SR2

  • Install Java:
    • sudo aptitude install sun-java6-bin
  • Make sure we're using the correct java:
    • sudo update-alternatives --config java
  • 64-bit users: At the moment we recommend installing a 32-bit Java VM since there's no Eclipse PDT all-in-one package for 64-bit systems.(Spring 2009)
    • sudo aptitude install ia32-sun-java6-bin
    • sudo update-alternatives --config java
    • Note that this permanently changes your active Java VM.
    • As an alternative, manually installing everything for your architecture should work too.
  • Download from http://download.eclipse.org/tools/pdt/downloads/
  • Extract the file to ~/bin/eclipse
  • Workaround for Button-Bug
    • create file start_eclipse.sh in ~/bin/eclipse
    • insert content in start_elipse.sh:
    • export GDK_NATIVE_WINDOWS=1
      ./eclipse
    • make start_eclipse.sh executeable
    • run Eclipse via start_eclipse.sh
  • Launch eclipse
  • Default workspace: /var/www
  • Install svn plugin.
    There are two choices. Subversive lacks a tree based commit dialog which comes very handy.
  • Install symfoclipse:
  • Install yamlEditor:

Configuration

Window -> Preferences

 Font size:

  • General -> Appearance -> Colors and Fonts
    • Basic -> Text Font -> Edit -> Monospace 11pt

ullright code style settings:

  • PHP -> Code Style -> Formatter
    • Tab policy : Spaces
    • Indendation size: 2
  • General -> Editors -> Text Editors
    • Display tab width: 2
    • Insert spaces for tabs: checked

print margin

  • General -> Editors -> Text Editors
    • Show print margin: checked
    • Print margin column: 80

 

Run -> External tools -> External tools configuration

  • "New" Icon
    • Name: symfony cache-clear
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: cache:clear
  • "New" Icon
    • Name: publish
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:publish
  • "New" Icon
    • Name: get and load production database
    • Location: ${project_loc}/symfony
    • Working Directory: ${project_loc}
    • Arguments: ullright:get-and-load-production-database