Plone in Eclipse IDE
How to set up Eclipse to do super cool code browsing and editing
What will you need?
- Plone Installation
- Eclipse Classic ( My preference )
- PyDev Eclipse Plugin (http://pydev.org/updates)
- Aptana Eclipse Plugin (http://download.aptana.com/tools/studio/plugin/install/studio)
Installing a Eclipse Plugin?
- Turn on Eclipse.
- Go to the Help drop menu.
- Go to Install New Software.
- Copy the download url into the "Works with", they are in parenthesis above.
- The window will populate with the plugins, select the check boxes on those plugins.
- Click finish or next, the rest is self explanatory. See Google for Eclipse Plugins if you need more guidance.
Eclipse
- Create a Pydev Project called 'Plone' (or whatever)
- Do not use Default on 'Project Contents'
- 'Project Contents' set to the top level of your Plone installation, it must be above your buildout-cache, src, and parts folders.
- 'Project Type' set to Python
- 'Grammer Version' for Plone 4* use 2.6, for Plone 3* use 2.4
- 'Interpreter' Click to Configure an interpreter not listed.
- Click 'New...', name it and set to what Plone * is using as a python.exe.
- Apply, Okay.
- 'Interpreter' Set to the one you just setup.
Buildout.cfg
- Add the following to the parts section
omelette
pydev
- Add the following to the bottom of your buildout, you may need to tweek these if your buildout is customized.
[omelette]
recipe = collective.recipe.omelette
eggs = ${instance:eggs}
[pydev]
recipe = pb.recipes.pydev
pydevproject_path = ${buildout:directory}/.pydevproject
eggs = ${instance:eggs}
(OPTIONAL)
If your bin/buildout is sluggish or just hanging. It is caused by the omelette folder being updated.
I recommend you totally trash the omelette folder and let buildout cook a new one, it is much faster. You can
setup your own script or such to get rid of the omelette directory before a buildout if need be.
(WINDOWS ONLY)
Junction.exe is needed for the Omelette recipe.
http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx
- Create folder in your Plone Directory, I called mine 'extra'.
- Place the Junction.exe in the folder you just created.
- Go to your Windows Environment Variables, add to your Path Variable the location to your 'extra' folder
- Mine was C:\Plone4\extra;
Reference which helped me set mine up:
http://plone.org/documentation/kb/developing-plone-with-eclipse
Email me if you have a problem or need more information.
This is a work in progress still.











