Bug 260475 - application of DOI to editor content and folding
Summary: application of DOI to editor content and folding
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.0.0   Edit
Assignee: David Green CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on: 260547
Blocks:
  Show dependency tree
 
Reported: 2009-01-08 18:59 EST by David Green CLA
Modified: 2011-01-06 10:01 EST (History)
2 users (show)

See Also:


Attachments
a work in progress (13.64 KB, patch)
2009-01-13 21:10 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (67.81 KB, application/octet-stream)
2009-01-13 21:10 EST, David Green CLA
no flags Details
initial implementation (20.55 KB, patch)
2009-01-14 00:48 EST, David Green CLA
no flags Details | Diff
updated implementation (34.88 KB, patch)
2009-01-14 11:53 EST, David Green CLA
no flags Details | Diff
evolved with active folding and bug fixes (41.73 KB, patch)
2009-01-15 11:54 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (81.66 KB, application/octet-stream)
2009-01-15 11:54 EST, David Green CLA
no flags Details
outline context menu (43.95 KB, patch)
2009-01-16 12:18 EST, David Green CLA
no flags Details | Diff
mylyn/context/zip (64.10 KB, application/octet-stream)
2009-01-20 00:00 EST, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2009-01-08 18:59:30 EST
The WikiText editor and representation of WikiText content should integrate better with the Mylyn task DOI model

* structured outline integration inside the editor, the outline view and in the navigation hierarchy
* editor folding (automatic, as it works for the Java editor)
Comment 1 David Green CLA 2009-01-09 01:30:13 EST
see relevant article  "Folding in Eclipse Text Editors":http://www.eclipse.org/articles/Article-Folding-in-Eclipse-Text-Editors/folding.html
Comment 2 David Green CLA 2009-01-13 21:10:39 EST
Created attachment 122491 [details]
a work in progress

work in progress, with a structure bridge implementation
Comment 3 David Green CLA 2009-01-13 21:10:43 EST
Created attachment 122492 [details]
mylyn/context/zip
Comment 4 David Green CLA 2009-01-14 00:48:10 EST
Created attachment 122503 [details]
initial implementation

Implemented a context structure bridge and context ui bridge.  They don't work as I would expect, but they're a good start.
Comment 5 David Green CLA 2009-01-14 11:53:13 EST
Created attachment 122549 [details]
updated implementation

attached a working implementation including UI monitor components
Comment 6 David Green CLA 2009-01-14 11:55:20 EST
Steffen, Mik, I've attached a patch that imlpements a context structure bridge, context ui bridge, user interaction monitor etc for wikitext content.  It's ready for a test-drive.  When you get a chance could you take a look and try it out?  You'll need to activate a task and open a file in the WikiText markup editor (*.mediawiki, *.textile).

Please let me know how it goes!
Comment 7 David Green CLA 2009-01-15 11:54:54 EST
Created attachment 122694 [details]
evolved with active folding and bug fixes

the implementation is now more complete with active folding support

There are some interesting interactions between the outline view and the editor.  When someone selects and item in the outline view, it alters the selection in the editor.  If the user then causes that item to be removed from the context using hot-keys, the editor collapses all uninteresting regions except the region covered by the outline item, since the editor selection includes that region.

Also I've added a context menu to the editor outline however the Mylyn actions for increasing/decreasing interest don't appear (why?)
Comment 8 David Green CLA 2009-01-15 11:54:57 EST
Created attachment 122695 [details]
mylyn/context/zip
Comment 9 David Green CLA 2009-01-16 12:18:45 EST
Created attachment 122824 [details]
outline context menu

patch updated to include DOI actions in the context menu.

For some reason when the outline view is shown with a DOI filter the alt+click action doesn't work, and the alt+click text is not shown when no items are visible.  Steffen do you have any ideas on this one?
Comment 10 Steffen Pingel CLA 2009-01-16 14:12:46 EST
I see the same problem with Java files on Linux (although I never see the Alt+click text due to differences in the SWT implementation). Could you file a separate bug for that if there isn't one already?
Comment 11 David Green CLA 2009-01-19 23:59:56 EST
(In reply to comment #10)
> I see the same problem with Java files on Linux (although I never see the
> Alt+click text due to differences in the SWT implementation). Could you file a
> separate bug for that if there isn't one already?

filed as bug 261446
Comment 12 David Green CLA 2009-01-20 00:00:34 EST
implemented in org.eclipse.mylyn.wikitext.tasks.ui
Comment 13 David Green CLA 2009-01-20 00:00:40 EST
Created attachment 123032 [details]
mylyn/context/zip