Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 119206 - Add 'event history' as hyperlinks to collab text chat output
Summary: Add 'event history' as hyperlinks to collab text chat output
Status: RESOLVED FIXED
Alias: None
Product: ECF
Classification: RT
Component: ecf.examples (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: ecf.examples-inbox CLA
QA Contact:
URL: http://www.eclipse.org/ecf
Whiteboard:
Keywords:
: 119569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-12-04 23:37 EST by Scott Lewis CLA
Modified: 2005-12-14 12:54 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Lewis CLA 2005-12-04 23:37:47 EST
A problem with the shared editor in the collab example is that there is no history.  If a participant opens a shared editor the receiver does not have any record of that shared editor opening, and no way to 'replay' that event under there own control.

The shared editor in the ECF collab example can use the following features:

1) The display of editor opening and editor selection events in the chat text output (as hyperlinks)
2) The ability to have the receiver click on the hyperlinks and to locally (and/or remotely) 'replay' the event.
3) Allow the receiver to specify (as a preference) whether the received events will be immediately executed (as the shared editor is now) OR not immediately executed by presented in the text chat history
4) Provide some additional UI for specifying what events (and associated resources) to share (e.g. key board?)
Comment 1 Boris Bokowski CLA 2005-12-06 21:46:25 EST
I have released a class org.eclipse.ecf.ui.views.SimpleLinkTextViewer that wraps a StyledText and supports appending text and clickable links.  When appending a link, you provide the link text and a Runnable that should be run when the user clicks on the link.
 
I haven't changed ChatRoomView, but there is a main() in the new class for testing.
Comment 2 Boris Bokowski CLA 2005-12-06 23:04:52 EST
I have released code that does (1) and (2) for the "Share Selection" action. Clicking on the link replays the event locally.

Scott/Ken: Over the next few days, I am too busy with the upcoming M4 of Eclipse and won't be able to contribute more.
Comment 3 Scott Lewis CLA 2005-12-08 02:54:09 EST
Parts 1-3 of this bug/enhancement request now implemented, checked in, tested.  Will be in stable release build 0.5.4 (12/11/05).  Part 4 will be added as another enhancement request
Comment 4 Scott Lewis CLA 2005-12-08 02:57:34 EST
*** Bug 119569 has been marked as a duplicate of this bug. ***
Comment 5 Mik Kersten CLA 2005-12-14 12:51:24 EST
Just fyi, at the core of Mylar is a very simple interaction history model.  Externalized it's just a stream of events in the following form:

<InteractionEvent Delta="null" 
StartDate="2005-12-13 19:01:29.536 PST" 
EndDate="2005-12-13 19:01:29.536 PST" Interest="1.0" Kind="edit" Navigation="null" OriginId="org.eclipse.mylar.java.ui.editor.MylarCompilationUnitEditor" StructureHandle="=org.eclipse.mylar.ui/src&lt;org.eclipse.mylar.ui.actions{AbstractApplyMylarAction.java[AbstractApplyMylarAction~getViewers" StructureKind="java" /> 

It's currently being used to create the interest model that shows up in the UI, and for analyzing usage patterns offline.  It would be straightforward to use this model for replyaing interaction, as long as 
Comment 6 Mik Kersten CLA 2005-12-14 12:54:43 EST
(please excuse the previous partial post)

Mylar has a bunch of support for working with these interaction history streams (e.g. to turn them into the interest model that drives the Mylar UI).  It would be straightforward to use this model for replyaing interaction, as long as the same resources existed in both workspaces.  This may be more than you need right now, and it may not be worth coupling to mylar.core, but I wanted to put this on your radar because there is interesting overlap here and that part of Mylar can be used independently of the task management and UI.