Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Shared Diagram Example
Shared Diagram Example [message #601488] Wed, 29 March 2006 19:08 Go to next message
Bob Brady is currently offline Bob BradyFriend
Messages: 28
Registered: July 2009
Junior Member
I am not able to get the Shared GEF Diagram example working. My Eclipse
error log is empty, and no errors are dumped to console output.

These are the steps I used:

* Installed Eclipse 3.2M5A with latest emf-sdo, gef, ecf 0.75
* Started localhost ecf server with startserver.cmd.

First user:

* Created a simple project "Test1".
* Connected to server by ECF menu as "user1" for that project.
* Created new Shared GEF Diagram "my_new.diagram".

Second user:

* Ran another instance of eclipse by using another workspace.
* Created a new simple project "Test2"
* Connected to same local server as "user2" by using ECF menu.
* Created Shared GEF Diagram "my_new.diagram" and linked (Advanced -> link
to file in file system) with the same file in first workspace

Now, any change I make & save, is not reflected automatically to another
user. I must not be following the procedure correctly, but don't see what
I'm doing wrong. Do you have any suggestions?

* Is the linking the diagram necessary for user2?
* I noticed that when I right click on the *.diagram file of the project,
that there is an "ECF->Open Shared Editor". Should this be used in the
above procedure? Where?
* I tried opening the diagram in the first workspace with "Open Shared
Editor" right-click, but still now collaborative effects observed.
* I tried opening diagram in both workspaces with "Open Shared Editor",
but no collaboration observed.
* When opening shared editor for user1, then user2 gets dialog "open
shared editor of foo.diagram from user1?". After user2 accepts dialog, no
collaboration effects observed afterwards.

Thanks...Bob
Re: Shared Diagram Example [message #601529 is a reply to message #601488] Fri, 31 March 2006 05:42 Go to previous messageGo to next message
Scott Lewis is currently offline Scott LewisFriend
Messages: 1038
Registered: July 2009
Senior Member
Hi Bob,

Bob Brady wrote:
> I am not able to get the Shared GEF Diagram example working. My Eclipse
> error log is empty, and no errors are dumped to console output.
>
> These are the steps I used:
>
> * Installed Eclipse 3.2M5A with latest emf-sdo, gef, ecf 0.75
> * Started localhost ecf server with startserver.cmd.
>
> First user:
>
> * Created a simple project "Test1". * Connected to server by ECF menu as
> "user1" for that project.
> * Created new Shared GEF Diagram "my_new.diagram".
>
> Second user:
>
> * Ran another instance of eclipse by using another workspace.
> * Created a new simple project "Test2"
> * Connected to same local server as "user2" by using ECF menu.
> * Created Shared GEF Diagram "my_new.diagram" and linked (Advanced ->
> link to file in file system) with the same file in first workspace

You don't need to link this my_new.diagram to the old one...by having
the same project name and file name the graphshare editor automatically
hooks them together (as long as they are connected to a given
collaboration server...as you have described/done).

Note you can run your two clients at ecftcp://localhost:3282/server as
you describe, but you can also connect to
ecftcp://ecf.eclipse.org:3282/server and things should work as well.

>
> Now, any change I make & save, is not reflected automatically to another
> user. I must not be following the procedure correctly, but don't see
> what I'm doing wrong. Do you have any suggestions?

Yes, the only thing that you are doing wrong is using different names
for the projects "Test1" and "Test2" in the two clients. They should be
the same (i.e. "Test1" and "Test1").

>
> * Is the linking the diagram necessary for user2?
> * I noticed that when I right click on the *.diagram file of the
> project, that there is an "ECF->Open Shared Editor". Should this be
> used in the above procedure? Where?

No...this is actually another example application...not directly related
to the graphshare editor. It should be connected...but currently it is not.

I think the only problem is the use of "Test1" and "Test2" for project
names. The .diagram resource is scoped to the particular project...for
this example they need to be the same.

Scott
Re: Shared Diagram Example [message #601534 is a reply to message #601529] Fri, 31 March 2006 15:03 Go to previous message
Bob Brady is currently offline Bob BradyFriend
Messages: 28
Registered: July 2009
Junior Member
Thanks Scott!

I followed your advice and used the same project and diagram file names as
well as the Eclipse server at ecftcp://ecf.eclipse.org:3282/server

Got things working as expected in about two minutes.

Cheers...Bob
Previous Topic:ECF Bug Resolutions
Next Topic:Retrieving a specific version from cvs
Goto Forum:
  


Current Time: Fri Apr 26 15:52:15 GMT 2024

Powered by FUDForum. Page generated in 0.04230 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top