Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 236962 - [wikitext] support bug content assist
Summary: [wikitext] support bug content assist
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jingwen 'Owen' Ou CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 16:20 EDT by Steffen Pingel CLA
Modified: 2008-06-13 14:37 EDT (History)
1 user (show)

See Also:


Attachments
mylyn/context/zip (1005 bytes, application/octet-stream)
2008-06-12 19:25 EDT, Steffen Pingel CLA
no flags Details
content assist does not work (5.29 KB, patch)
2008-06-12 20:18 EDT, Jingwen 'Owen' Ou CLA
no flags Details | Diff
patch part 1 (4.19 KB, patch)
2008-06-12 23:54 EDT, Jingwen 'Owen' Ou CLA
no flags Details | Diff
patch part 2/2 (6.96 KB, patch)
2008-06-13 00:01 EDT, Jingwen 'Owen' Ou CLA
no flags Details | Diff
patch for getting a IContentAssistProcessor (1.59 KB, patch)
2008-06-13 00:34 EDT, David Green CLA
no flags Details | Diff
mylyn/context/zip (966 bytes, application/octet-stream)
2008-06-13 00:34 EDT, David Green CLA
no flags Details
re-do the patch: forgot static (1.60 KB, patch)
2008-06-13 00:52 EDT, David Green CLA
no flags Details | Diff
mylyn/context/zip (11.39 KB, application/octet-stream)
2008-06-13 00:52 EDT, David Green CLA
no flags Details
minor fixed for ExtensibleRichTextAttributeEditor (4.41 KB, patch)
2008-06-13 01:23 EDT, Jingwen 'Owen' Ou CLA
no flags Details | Diff
screenshot showing content assist in action (43.59 KB, image/png)
2008-06-13 09:31 EDT, David Green CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2008-06-12 16:20:14 EDT
The task editor has content assist for referencing other bugs. It would be great if that content assist was also supported in new wikitext comments and descriptions. David mentioned on bug 235222 comment 11 that Textile-J is already implemented in a way to support multiple context assist processors.
Comment 1 David Green CLA 2008-06-12 18:32:24 EDT
we need a Mylyn public API for either an IContentAssistProcessor or a factory that can create one.  Once that is available then it's trivial to integrate it with Textile-J
Comment 2 Steffen Pingel CLA 2008-06-12 19:25:20 EDT
Owen, the bug content assist implementation is in RepositoryCompletionProcessor .
Comment 3 Steffen Pingel CLA 2008-06-12 19:25:24 EDT
Created attachment 104784 [details]
mylyn/context/zip
Comment 4 Jingwen 'Owen' Ou CLA 2008-06-12 19:52:51 EDT
yeah, I was checking RepositoryCompletionProcessor, but according to the design right now, it seems we need to change MarkupSourceViewerConfiguration.getContentAssistant a bit (adding RepositoryCompletionProcessor into it, since when focused, all commands are directed to MarkupSourceViewerConfiguration), but RepositoryCompletionProcessor is invisible from outside.

Any better idea to implement this feature?
Comment 5 Jingwen 'Owen' Ou CLA 2008-06-12 19:57:00 EDT
 (In reply to comment #1)
> we need a Mylyn public API for either an IContentAssistProcessor or a factory
> that can create one.  Once that is available then it's trivial to integrate it
> with Textile-J

or we need to build a new IContentAssistProcessor that integrates MultiplexingContentAssistProcessor and RepositoryCompletionProcessor
Comment 6 Jingwen 'Owen' Ou CLA 2008-06-12 20:18:59 EDT
Created attachment 104787 [details]
content assist does not work

ExtensibleRichTextAttributeEditor is a good place to add RepositoryCompletionProcessor, but all content assist is overshadowed by Textile-J's.
Comment 7 Jingwen 'Owen' Ou CLA 2008-06-12 23:54:45 EDT
Created attachment 104805 [details]
patch part 1

for some reason I couldn't combine the two patch
Comment 8 Jingwen 'Owen' Ou CLA 2008-06-13 00:01:24 EDT
Created attachment 104806 [details]
patch part 2/2

couldn't create a patch combining the two to clipbroad, have to seperate them

*done*

* modified MarkupSourceViewerConfiguration to add bug content assist

*future work*

* fix the order of the content assist, right now the there is no broundary between WikiText content assist and Mylyn one
* make RepositoryCompletionProcessor visible to the WikiText, at the same time some modifications might be needed
Comment 9 Jingwen 'Owen' Ou CLA 2008-06-13 00:02:41 EDT
David, ur right. Steffen, how can we proceed to make RepositoryCompletionProcessor public?

> we need a Mylyn public API for either an IContentAssistProcessor or a factory
> that can create one.  Once that is available then it's trivial to integrate it
> with Textile-J
Comment 10 Jingwen 'Owen' Ou CLA 2008-06-13 00:04:34 EDT
please ignore this patch! fixed in the last two


> Created an attachment (id=104787)
> content assist does not work
> 
> ExtensibleRichTextAttributeEditor is a good place to add
> RepositoryCompletionProcessor, but all content assist is overshadowed by
> Textile-J's.
Comment 11 David Green CLA 2008-06-13 00:34:21 EDT
Created attachment 104809 [details]
patch for getting a IContentAssistProcessor

Good work Ownen.

How about this patch for getting an IContentAssistProcessor?  The added method could easily be accessed from the TaskMarkupSourceViewerConfiguration
Comment 12 David Green CLA 2008-06-13 00:34:35 EDT
Created attachment 104810 [details]
mylyn/context/zip
Comment 13 David Green CLA 2008-06-13 00:52:12 EDT
Created attachment 104813 [details]
re-do the patch: forgot static

I've adapted Owen's patch and applied it to Textile-J, SVN revision 718.   With this patch, we get content assist from all sides.
Comment 14 David Green CLA 2008-06-13 00:52:16 EDT
Created attachment 104814 [details]
mylyn/context/zip
Comment 15 Jingwen 'Owen' Ou CLA 2008-06-13 01:23:34 EDT
Created attachment 104819 [details]
minor fixed for ExtensibleRichTextAttributeEditor

fixed the font size
Comment 16 Steffen Pingel CLA 2008-06-13 01:34:15 EDT
Owen, I am not sure how your last patch relates to this bug (it looks like a patch from David that has already been merged)?

David, before we add the factory method to TasksUi which looks good to me can you use RepositoryCompletionProcessor directly in Textile-J?
Comment 17 David Green CLA 2008-06-13 09:31:03 EDT
Created attachment 104855 [details]
screenshot showing content assist in action

(In reply to comment #16)
> Owen, I am not sure how your last patch relates to this bug (it looks like a
> patch from David that has already been merged)?

Looks to me like there's some code from my patch plus some other stuff -- owen perhaps you could re-cut the patch after having updated to the latest sources from CVS?

> 
> David, before we add the factory method to TasksUi which looks good to me can
> you use RepositoryCompletionProcessor directly in Textile-J?

Completed in SVN revision 719
Comment 18 Jingwen 'Owen' Ou CLA 2008-06-13 14:19:48 EDT
 (In reply to comment #16)
> Owen, I am not sure how your last patch relates to this bug (it looks like a
> patch from David that has already been merged)?
> 

sorry for the confusion. I should have created another bug. Please refer to bug 237131
Comment 19 Jingwen 'Owen' Ou CLA 2008-06-13 14:37:17 EDT
anything to add? probably we can close this bug?
Comment 20 Jingwen 'Owen' Ou CLA 2008-06-13 14:37:51 EDT
bug close?