This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 208061 - [discussion] explore single viewer to display comments in task editor
Summary: [discussion] explore single viewer to display comments in task editor
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 13:53 EDT by Robert Elves CLA
Modified: 2008-09-20 18:32 EDT (History)
2 users (show)

See Also:


Attachments
Interation 1 (31.08 KB, text/plain)
2007-11-18 12:09 EST, Robert Elves CLA
no flags Details
mylyn/context/zip (21.72 KB, application/octet-stream)
2007-11-18 12:09 EST, Robert Elves CLA
no flags Details
Iteration 1 Screenshot (15.44 KB, image/png)
2007-11-18 12:10 EST, Robert Elves CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Elves CLA 2007-10-30 13:53:15 EDT
The task editor currently creates a single viewer per comment. We have often discussed the idea of switching to a single viewer to render all comments (potentially speeding up render time). Lets use this bug report to track prototyping this idea.
Comment 1 Willian Mitsuda CLA 2007-11-01 21:09:53 EDT
It can resolve the bug#206568 problem.
Comment 2 Mik Kersten CLA 2007-11-01 21:20:54 EDT
Yup!  But I'm still hoping that we can let the UI be the driver for this instead of performance.  We should be able to get the performance profile right with laziness, since task editors should not open with a large number of comments expanded.
Comment 4 Robert Elves CLA 2007-11-18 12:09:10 EST
Created attachment 83193 [details]
Interation 1

Quick experimentation to see how this all works.  Code is functional so you can get a feel for what this might be like.  Would need further improvements including coloration of comment header etc, investate icon decoration either inline or in an additional ruler column.  Hyperlinking all works as it should.  I think this has potential and it really does improve render time.  I don't have numbers to support yet but it appears to be at least twice as fast when the bug has significant number of comments.
Comment 5 Robert Elves CLA 2007-11-18 12:09:15 EST
Created attachment 83194 [details]
mylyn/context/zip
Comment 6 Robert Elves CLA 2007-11-18 12:10:50 EST
Created attachment 83195 [details]
Iteration 1 Screenshot

Sample of what this looks like in the TaskEditor
Comment 7 Eugene Kuleshov CLA 2007-11-18 13:16:07 EST
Wau Rob! This is so cool. Few things need special attention:

-- some issue trackers (i.e. JIRA) allow to edit comments after posting. 
-- some other trackers are using richer formatting (track wiki editor/preview integration)
-- need syntax highlighting (i.e. bloden up comment header)
-- that action bar on the left, can it be global for the whole form editor instead of sitting inside comments section?
Comment 8 Robert Elves CLA 2007-11-18 13:42:12 EST
 (In reply to comment #7)
> Wau Rob! This is so cool. Few things need special attention:
Yes, this is pretty cool stuff although you've raised some good points as to why this may not be a suitable direction...

> -- some issue trackers (i.e. JIRA) allow to edit comments after posting.
	This shouldn't be a problem assuming you can lock down regions of a document (i.e. make the comment headers non-editable)

> -- some other trackers are using richer formatting (track wiki editor/preview
> integration)
This is what I see as the major blocker to this approach, although we could consider using this as a way to render old comments and use full viewers for new comments only... not certain.

> -- need syntax highlighting (i.e. bloden up comment header)
  yup
  
> -- that action bar on the left, can it be global for the whole form editor
> instead of sitting inside comments section?
	My guess is the ruler needs to be installed on a per viewer basis but I could be wrong.
Comment 9 Eugene Kuleshov CLA 2007-11-18 14:26:12 EST
(In reply to comment #8)
> ...assuming you can lock down regions of a document

Do you have any pointers for that by any chance? I needed something like that in some other place but couldn't figure out how to do that

> > -- some other trackers are using richer formatting (track wiki editor/preview
> > integration)
> This is what I see as the major blocker to this approach, although we could
> consider using this as a way to render old comments and use full viewers for new
> comments only... not certain.

I wonder if RTF editor will be sufficient for that, not sure though if it does work with the folding api. I can't apply your patch because of the conflicts with other patches that waiting reviews for too long.

BTW, what happens with the idea to show only new + last N comments by default?
Comment 10 Mik Kersten CLA 2007-11-20 03:20:41 EST
I don't think that we will be able to get sufficiently high a fidelity UI with this approach.  One of the main problems is that Fitts law (http://en.wikipedia.org/wiki/Fitts'_law ) means that in order to make the collapsing easy to click, we will have to make the comment sections work like widgets.  The small ruler widgets will be very hard to click.  Making the editor act like widgets will be a slippery slope, because editors are not meant to act like widgets, but like editable text regions.  Also, this will get in the way of Browser-based comment rendering, which is coming increasingly higher on the radar for JIRA and Trac.  Let's discuss further during tomorrow's call.  

This is not to say that we don't need to get the performance to be equivalent to what it would be with a single editor, we do.  But unless there is compelling evidence that we can make the UI easy enough to use we should be careful how much more time we invest in this approach (i.e. needs to be as as easy as GMail, since that kind of interaction was our goal before GMail came around, and can be nowhere near as hard as the current folding UI in Eclipse).
Comment 11 Eugene Kuleshov CLA 2007-11-20 13:10:14 EST
One more thing to add to list is to support keyboard based navigation, and for example, ability to copy text across multiple comments. 
Comment 12 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn