Tuesday, July 8, 2008

How to set up Eclipse and PDT for Cola and DocShare through ECF

1. Follow the instructions to install ECF:
http://www.eclipse.org/ecf/downloads.php

2. In my example let's use gmail as a communications protocol:
  • Open the 'Communications' perspective
  • Click the icon that says 'Connect to Provider'
  • Select XMPPS
  • Input your gmail account and password
3. ECF has a limitation so that you can only use it with the default text editor and the Java editor, but we want to use it with PDT:
  • Open ../eclipse/plugins/org.eclipse.ecf.docshare_2.0.0.v20080623-0024.jar
  • Open the file plugin.xml
  • Paste in this XML:
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:org.eclipse.php.core.phpsource.source.EditorContext">
<dynamic class="org.eclipse.ecf.internal.provisional.docshare.menu.DocShareRosterMenuContributionItem"
id="org.eclipse.ecf.docshare.php.dynamic3">
</dynamic>
</menuContribution>
</extension>
Now you should have a new menu entry in PHP editing mode that displays "Share Editor With"

No comments:

Post a Comment