Eclipse Communication Framework (ECF)

Shared Model Editing Using GraphShare

The Shared Data Graph Editor allows a group of Eclipse users connected to the same container group to collaboratively edit arbitrary EMF-generated models. It is an example application that shows how to use the GraphShare service.

Prerequisites

In addition to ECF, you will need:

  1. Eclipse 3.1M4+
  2. EMF+SDO 2.1.0.I2005+

Steps

  1. In your workspace, create a simple project, e.g. test.
  2. Use the ECF Collaboration Client to connect to a collaboration server (local or remote).
  3. Create a sample file to collaboratively edit:
    1. In the Navigator view, right-click your newly-created project and select New -> Other...
    2. Select Example EMF Model Creation Wizards -> Data Graph Model and click Next.
    3. Choose a unique filename for your new model. Note that the full workspace path of this file (including the project and all folders) is very important -- it is what identifies the model among the peers. Click Next.
    4. Select http:///org/eclipse/ecf/example/library.ecore as the model URI and Library as the Model Object. Click Finish.
  4. If you are the first one to share this file, you will see an empty Library. If someone else already published this model, you will get the initial copy from them.
  5. Make changes to the model. When you save, your changes will be broadcast to others. When someone else saves, your unsaved changes, if any, will be thrown away and replaced by theirs.