Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Communications Framework (ECF) » Sending Selection in DocShare
Sending Selection in DocShare [message #623704] Wed, 18 June 2008 12:51 Go to next message
Syed Sajid Hussain Shah is currently offline Syed Sajid Hussain Shah
Messages: 10
Registered: July 2009
Junior Member
Hi ECF Team

Previously, in DocShare, when two users are sharing the editor one user
could send his selection to other user. But as after RC5 this does'nt
seems to be working.

Cheers
Sajid
Re: Sending Selection in DocShare [message #623706 is a reply to message #623704] Wed, 18 June 2008 14:29 Go to previous messageGo to next message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Sajid,

There are actually two 'kinds' of shared editing in ECF:

1) Real-Time Shared Editor/DocShare. This provides the real-time update
as users make changes...and supports use cases where both users
need/want to change the document contents. This is what was recently
fully enabled with Cola, and which is available via supporting IM
protocols (XMPP, Skype).

2) Shared Resources. This provides the remote opening and navigation of
files that are *in both of the participant's workspaces*. This has been
in place for the collaboration example for some time, and is due to a
use case presented to my by Ward Cunningham...i.e. online walkthroughs
where there are not changes being made to the document, but rather a
single leader is walking n people through a discussion of the source.

In ECF 2.0.0, 1 is presented in the UI as shown in the DocShare docs:

http://wiki.eclipse.org/DocShare_Plugin

2 is available (when connected to a collaboration group) via a context
menu item:

Share Resource to Collaboration


NOW, having said all that, 1 does *not* (yet) have sharing of
selections, but 2 does. To implement 1, we will probably have to get
some additional support from the Platform UI, as it's possible to have
more than one selection active on the editor at a time...and that
currently isn't supported in the existing Eclipse editor UI.

2, however, does have sharing selections. Once you start sharing a
resource, select a text region in the editor, and then open the context
menu *with the pointer in the marker bar on the left of the editor. One
of the menu items should say "Share Selection" (right under Add Task).
If you then select that item, you should see in the collaboration chat:

[06/18 07:08 AM] slewis: <open
file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "/>
[06/18 07:09 AM] slewis: <open
file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "
selection=1065-1075/>
[06/18 07:09 AM] slewis: <open
file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "
selection=1095-1105/>

Existing participants will have the selection made in their editors, and
the markup above can be hovered over with ctrl down to create a
hyperlink...clicking on the link will open the resource and show the
given selection. That markup is intended to serve as a 'replayable
history' of the resource sharing and navigation.

As we move forward with shared editing, we will be merging some of these
capabilities in both kinds of editor sharing, so as to better support
the associated use cases.

Scott

Syed Sajid Hussain Shah wrote:
> Hi ECF Team
>
> Previously, in DocShare, when two users are sharing the editor one user
> could send his selection to other user. But as after RC5 this does'nt
> seems to be working.
>
> Cheers
> Sajid
Re: Sending Selection in DocShare [message #623708 is a reply to message #623706] Wed, 18 June 2008 14:57 Go to previous messageGo to next message
Syed Sajid Hussain Shah is currently offline Syed Sajid Hussain Shah
Messages: 10
Registered: July 2009
Junior Member
Scott Lewis wrote:
> Hi Sajid,
>
> There are actually two 'kinds' of shared editing in ECF:
>
> 1) Real-Time Shared Editor/DocShare. This provides the real-time update
> as users make changes...and supports use cases where both users
> need/want to change the document contents. This is what was recently
> fully enabled with Cola, and which is available via supporting IM
> protocols (XMPP, Skype).
>
> 2) Shared Resources. This provides the remote opening and navigation of
> files that are *in both of the participant's workspaces*. This has been
> in place for the collaboration example for some time, and is due to a
> use case presented to my by Ward Cunningham...i.e. online walkthroughs
> where there are not changes being made to the document, but rather a
> single leader is walking n people through a discussion of the source.
>
> In ECF 2.0.0, 1 is presented in the UI as shown in the DocShare docs:
>
> http://wiki.eclipse.org/DocShare_Plugin
>
> 2 is available (when connected to a collaboration group) via a context
> menu item:
>
> Share Resource to Collaboration
>
>
> NOW, having said all that, 1 does *not* (yet) have sharing of
> selections, but 2 does. To implement 1, we will probably have to get
> some additional support from the Platform UI, as it's possible to have
> more than one selection active on the editor at a time...and that
> currently isn't supported in the existing Eclipse editor UI.
>
> 2, however, does have sharing selections. Once you start sharing a
> resource, select a text region in the editor, and then open the context
> menu *with the pointer in the marker bar on the left of the editor. One
> of the menu items should say "Share Selection" (right under Add Task).
> If you then select that item, you should see in the collaboration chat:
>
> [06/18 07:08 AM] slewis: <open
> file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "/>
> [06/18 07:09 AM] slewis: <open
> file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "
> selection=1065-1075/>
> [06/18 07:09 AM] slewis: <open
> file=" org.eclipse.ecf/src/org/eclipse/ecf/core/AbstractContainer.j ava "
> selection=1095-1105/>
>
> Existing participants will have the selection made in their editors, and
> the markup above can be hovered over with ctrl down to create a
> hyperlink...clicking on the link will open the resource and show the
> given selection. That markup is intended to serve as a 'replayable
> history' of the resource sharing and navigation.
>
> As we move forward with shared editing, we will be merging some of these
> capabilities in both kinds of editor sharing, so as to better support
> the associated use cases.
>
> Scott
>
> Syed Sajid Hussain Shah wrote:
>> Hi ECF Team
>>
>> Previously, in DocShare, when two users are sharing the editor one
>> user could send his selection to other user. But as after RC5 this
>> does'nt seems to be working.
>>
>> Cheers
>> Sajid

Hi Eclipse Team
I have checked both options and I look forward to ECF 2.1. Right now I
am interested to have a shared editing session (both parties can type at
a same time). I want to add the functionality to show remote cursor of
both users to each other.

Can you please direct me what and where the changes to be made for this
functionality?

Cheers
Sajid
Re: Sending Selection in DocShare [message #623720 is a reply to message #623708] Wed, 18 June 2008 21:21 Go to previous message
Scott Lewis is currently offline Scott Lewis
Messages: 970
Registered: July 2009
Senior Member
Hi Sajid,

Syed Sajid Hussain Shah wrote:
<stuff deleted>

> Hi Eclipse Team
> I have checked both options and I look forward to ECF 2.1. Right now I
> am interested to have a shared editing session (both parties can type at
> a same time). I want to add the functionality to show remote cursor of
> both users to each other.
>
> Can you please direct me what and where the changes to be made for this
> functionality?


After Sajid sent this, he and I (Scott) had a brief chat in the ecf
collaboration group: ecftcp://ecf.eclipse.org:3282/server

The honest answer is that I don't know off the top of my head where/what
all changes would have to be made (to SWT, JFace, Editor, etc) to
support multiple cursor/multiple selection functionality.

It may be possible to simulate it by using background/foreground
changing (e.g. make the region selected by remote users an alternative
color foreground/background), or perhaps graphics overlays (box, etc).
But still I'm not sure of all the necessary changes/whether the existing
SWT/JFace/Editor APIs can/will support this.

Perhaps other ECF committers know the details about such
functionality?...if so please say so here and/or point out any relevant
bugs/enhancements that already exist in this area. And I've copied
Boris B who's on the Platform UI team. He and I have discussed such
things briefly in the past, but now it seems we're getting closer to
reality (and perhaps with e4 as well).

Thanks,

Scott
Previous Topic:Re: How to run org.eclipse.ecf.example.collab_1.3.0.v20080616-1220 that is released with RC5
Next Topic:How to test new DocShare Plugin
Goto Forum:
  


Current Time: Fri Sep 19 07:54:40 GMT 2014

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

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