Package: collective.eclipsescripts
ContentsIntroductionFeaturesPrerequirementsInstallationUsageHow it worksFor more informationPossible future featuresAuthorIntroductioncollective.eclipsescripts is an Eclipse integration plug-in for Plone development.
It aims to provide effective way for novice developers to get started with Plone.FeaturesCreate Eclipse workspace from buildout installation - all Python projects inside src/ folder structure are
converted to Eclipse projects. You can keep your buildout in sync with your Eclipse workspace with one
command.Set Eclipse preferences suitable for Plone/Zope developmentTab stops to 8 spacesFile associations: .pt, .dtml, .zcml, etc.Version control ignores (do not commit egg-info folders)Text encoding settings to UTF-8Different UI Run shortcuts are automatically createdIDE compatible Zope launching script (retains console output by not making Zope to fork on start-up)Plone local instanceUnit test runners for all projectsRun buildoutOpen Zope debug shellEdit buildout.cfgPrerequirementsWhat you need to know before messing with this scriptBasic Plone development and Eclipse usage knowledgeWhat isbuildoutand buildout folder structureHow to useEclipse IDEInstallationNote: Currently we can’t support installation as Python egg or Eclipse plug-in bundle. This is being worked out.InstallAptana Studiowith PyDev and Subclipse plug-ins. Standalone Aptana installation
is recommended as it is the fastest way to get started - you do not need to manually gather and install plug-ins.Standard Eclipse standalone installation seems to have some componenent version compatibility issues.
Aptana is recommended way to install Eclipse for Python development.InstallPython Monkeyand restart EclipseCheckout this project using Subclipse/Subversive to Eclipse workspace as a projectRepository URL:https://svn.plone.org/svn/collectiveProject path: collective.eclipsescripts/trunkAlternatively copy Python egg contents to script/ folders under some of your Eclipse projectsImmediately menuScriptsshould appear in the top menu barOpen scripts in Python editor to see comments what they doExecute scripts by picking then fromScriptsmenubarOpen console to see possible sccript outputChoose menuWindow->Show View->Console. Then choose Eclipse Monkey Console
from alternative console views. Note: console might not be available until you have
run one of the scripts.UsageCreate Plone 3 buildout - use your favorite buildout integrated tool to manage source code checkout under src/.
E.g. ‘Mr. Developer <http://pypi.python.org/pypi/mr.developer>`_Launch Eclipse - Switch workspace and choose src/ folder in buildout as the workspace locationConfigure Python 2.4 (for Plone 3.x) in preferencesSet workspace settings - ChooseScripts->Plone->Set Plone PreferencesChooseScripts->Plone->Import src folder as workspaceto import all checked out projects
under src/ as Eclipse projects. If you add new projects you can run this command without losing
manual changes made to the projects.Plone instance and projects will have launchers created inRun configurations…menuOptionally, if you are usingcollective.recipe.omeletteall Plone packages are added under PyDev builders and code autocompletion will work for the projectsChooseScripts->Plone->Edit buildout.cfgif you wish to edit buildout.cfgHow it worksPython Monkey exposesEclipse process to Python scripting environment
throughJython run-time.
Everything what can be done by Eclipse plug-ins and Java development can be now done with few lines of Python code.
This makes the development of integration options for Eclipse real quick and dirty.Also, you do not need to have a separate Eclipse project for your scripts. You can keep your scripts
within any Eclipse project inscriptstop level folder.For more informationhttp://docs.aptana.com/docs/index.php/Adding_metadata_to_an_Eclipse_Monkey_scripthttp://help.eclipse.org/galileo/index.jspPossible future featuresDeploy as real Eclipse plug-inpaster integration: add view, content types directly from IDEdeployment integrationAuthormFabrik Research Oy- Python and Plone professionals for hire.mFabrik web site(In Finnish)mFabrik mobile siteBlogMore about Plone