Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Example Shared Text Editor"

Line 3: Line 3:
 
First, get the plugin from anonymous CVS.  [http://www.eclipse.org/ecf/resources.html See the ECF dev resources page] for a description of how to get this plugin and the necessary dependencies.
 
First, get the plugin from anonymous CVS.  [http://www.eclipse.org/ecf/resources.html See the ECF dev resources page] for a description of how to get this plugin and the necessary dependencies.
  
# First create a text file in a project.  
+
# We will use two instances of eclipse for this demo; the creator instance (CI), and the joiner instance (JI). 
# Go to eclipse preferences, team->ECF Editor Sharing.  Adjust connection parameters as necessary. (http://kengilmer.com/shared_editor/s2.jpg)
+
# Run two the two Eclipse instances, making sure to use different workspaces if you are on the same machine.
# Right click on file and select Team -> Initiate Shared Session (http://kengilmer.com/shared_editor/s1.jpg)
+
# 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. <br>http://kengilmer.com/shared_editor/s2.jpg
# At this point, you have created a shared editor instance.  Now others can connect.
+
# Create a text file in a project in CI.
# Load another instance of eclipse, configure such that they point to the same server and share container names.
+
# In CI, Right click on file and select Team -> Initiate Shared Session <br>http://kengilmer.com/shared_editor/s1.jpg
# File->New->Collaboration->Shared Editor Session. (http://kengilmer.com/shared_editor/s3.jpg)
+
# At this point, you have created a shared editor instance in CI.  Now others can connect.
# 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)
+
# In JI, select File->New->Collaboration->Shared Editor Session<br>http://kengilmer.com/shared_editor/s3.jpg
# Select your file.  The editor will be created, and saved to whatever project container is specified.
+
# 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.<br>http://kengilmer.com/shared_editor/s4.jpg
# Start typing.  You should see changes on both editors.  (http://kengilmer.com/shared_editor/s5.jpg)
+
# Select your file.  The editor will be created, and saved to whatever project container is specified in JI.
 +
# Start typing in CI. (Note there is currently a bug in that if you type in JI <i>first</i>, CI's content will be erased.) You should see changes on both editors.  <br>http://kengilmer.com/shared_editor/s5.jpg

Revision as of 18:08, 25 April 2006

ECF Committer Ken Gilmer has implemented a shared text editor in the org.eclipse.ecf.example.collab.editor plugin.

First, get the plugin from anonymous CVS. See the ECF dev resources page for a description of how to get this plugin and the necessary dependencies.

  1. We will use two instances of eclipse for this demo; the creator instance (CI), and the joiner instance (JI).
  2. Run two the two Eclipse instances, making sure to use different workspaces if you are on the same machine.
  3. 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
  4. Create a text file in a project in CI.
  5. In CI, Right click on file and select Team -> Initiate Shared Session
    http://kengilmer.com/shared_editor/s1.jpg
  6. At this point, you have created a shared editor instance in CI. Now others can connect.
  7. In JI, select File->New->Collaboration->Shared Editor Session
    http://kengilmer.com/shared_editor/s3.jpg
  8. 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
  9. Select your file. The editor will be created, and saved to whatever project container is specified in JI.
  10. Start typing in CI. (Note there is currently a bug in that if you type in JI first, CI's content will be erased.) You should see changes on both editors.
    http://kengilmer.com/shared_editor/s5.jpg

Copyright © Eclipse Foundation, Inc. All Rights Reserved.