ECF SDK plugin called DocShare (org.eclipse.ecf.docshare) that implements real-time shared editing.
- ECF (Target Components for Eclipse).
- Connect via a supported provider. Supported providers are: XMPP (Google Talk, Jabber).
- You must also have a contact/friend/buddy...in your contact list...that currently also connected to your supported provider.
How to Use
- Open a TextEditor on a text resource from your workspace (e.g. a .java file, or .txt file).
- Open the Context Menu (right click) on the text editor, and you should see a context menu like this
- Select the target user to share your editor session with. Note that if you select a target user that is not running ECF client, it will have no effect and the target user will not see a notification.
Once the receiver accepts the docshare, both participants may edit the document via their local editor and the changes will be immediately distributed to the other participant via ECF.
How to Stop
- Open the context menu for the editor being shared.
- Select "Stop Sharing Editor with ..."
'slewis' client (the initiator), before starting editor sharing
'fliwatuet' client (the receiver), before starting editor sharing
Slewis initiates the real-time shared editing by opening the context menu in the editor, and choosing Share Editor With -> email@example.com ->ECF -> firstname.lastname@example.org
Fliwatuet receives a notice and can accept or reject the shared editing session
If fliwatuet accepts, the editor is opened with slewis' current editor content on fliwatuet's workbench
At this point, both participants can edit the text and updates will be immediately distributed and shown on the other's corresponding editor.
So, for example, here fliwatuet enters a new method (baz)
These same updates appear immediately on slewis' workbench. Slewis can also make changes and these are reflected on fliwatuet's workbench.
Technical Info and Source Code
DocShare detects conflicts and resolves them using an algorithm and implementation called 'Cola'. That work is described in Real-Time Shared Editing.
The source code for docshare can be browsed by clicking here.
To work with the source code for DocShare bundle specifically and/or all of ECF, see ECF source code repo here.
|Eclipse Communication Framework|
|API Documentation • Javadoc • Providers|
|Development Guidelines • Integrators Guide|