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:
- Eclipse 3.1M4+
- EMF+SDO 2.1.0.I2005+
Steps
- In your workspace, create a simple project, e.g. test.
- Use the ECF Collaboration Client to connect to a collaboration
server (local or remote).
- Create a sample file to collaboratively edit:
- In the Navigator view, right-click your newly-created project
and select New -> Other...
- Select Example EMF Model
Creation Wizards -> Data Graph Model and click Next.
- 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.
- Select http:///org/eclipse/ecf/example/library.ecore
as the model URI and Library
as the Model Object. Click Finish.
- 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.
- 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.