Example Shared Text Editor
Revision as of 11:05, 22 September 2007 by Remy.suen.gmail.com (Talk | contribs)
ECF committer Ken Gilmer has implemented a shared text editor in the org.eclipse.ecf.example.collab.editor plugin.
First, get the plug-in from anonymous CVS. See the ECF developer resources page for a description of how to get this plug-in and its necessary dependencies.
- We will require two instances of eclipse for this demo; the creator instance (CI), and the joiner instance (JI). To begin, you will need to start an ECF generic server first, see ECF Servers (was here) for details.
- Run the two Eclipse instances, making sure to use different workspaces if you are on the same machine.
- Go to eclipse preferences, team->ECF Editor Sharing. Adjust connection parameters as necessary. If you are using multiple machines, both will need to point to the same ECF server.
http://kengilmer.com/shared_editor/s2.jpg - Create a text file in a project in CI.
- In CI, Right click on file and select Team -> Initiate Shared Session
http://kengilmer.com/shared_editor/s1.jpg - At this point, you have created a shared editor instance in CI. Now others can connect.
- In JI, select File->New->Team->Shared Editor Session
http://kengilmer.com/shared_editor/s3.jpg - The dialog will now show a window asking for local container, and will list all active editor sessions. These sessions are global to the ECF container name specified in preferences.
http://kengilmer.com/shared_editor/s4.jpg - Select your file. The editor will be created, and saved to whatever project container is specified in JI.
- Start typing in CI. You should see changes on both editors.
http://kengilmer.com/shared_editor/s5.jpg