Home » Eclipse Projects » Eclipse Platform » problem on content assistant in my own editor
problem on content assistant in my own editor [message #324168] |
Fri, 18 January 2008 03:24  |
Eclipse User |
|
|
|
hi, all:
here's two problems when I implementing a xml-style editor.
1. I implement the CompletionProcessor by extending
TemplateCompletionProcessor, when press "ALT+/", proposals are listed, but
when I typing some character, the list not filtered according to input
characters?
I add some debug printing at the beginning of
TemplateCompletionProcessor.computeCompletionProposals(IText Viewer, int) but
to find that when I typing new characters, it's not invoked?
2. no info on status bar,
when editing files in my editor, information like "writable", "smart
insert", and line location all disappear, but when I switch to plain text
editor, every thing is there. So I think there must be a way to setup a
configuration that manager what to show in status bar.
any advice? thanks in advance!
Nick
|
|
|
Re: problem on content assistant in my own editor [message #324170 is a reply to message #324168] |
Fri, 18 January 2008 04:21   |
Eclipse User |
|
|
|
Nick Tan wrote:
> hi, all:
>
> here's two problems when I implementing a xml-style editor.
>
> 1. I implement the CompletionProcessor by extending
> TemplateCompletionProcessor, when press "ALT+/", proposals are listed,
> but when I typing some character, the list not filtered according to
> input characters?
> I add some debug printing at the beginning of
> TemplateCompletionProcessor.computeCompletionProposals(IText Viewer,
> int) but to find that when I typing new characters, it's not invoked?
Make sure your completin proposal class implements
org.eclipse.jface.text.contentassist.ICompletionProposalExte nsion2.
>
> 2. no info on status bar,
> when editing files in my editor, information like "writable",
> "smart insert", and line location all disappear, but when I switch to
> plain text editor, every thing is there. So I think there must be a
> way to setup a configuration that manager what to show in status bar.
Looks like your editor's action editor action bar contributor is missing
or not subclassing BasicTextEditorActionContributor.
Dani
>
> any advice? thanks in advance!
>
> Nick
|
|
|
Re: problem on content assistant in my own editor [message #324222 is a reply to message #324170] |
Sun, 20 January 2008 21:31  |
Eclipse User |
|
|
|
Thanks Dani, it works fine now.
"Daniel Megert" <daniel_megert@ch.ibm.com> 写入消息
news:fmpr3n$l5q$1@build.eclipse.org...
> Nick Tan wrote:
>
>> hi, all:
>>
>> here's two problems when I implementing a xml-style editor.
>>
>> 1. I implement the CompletionProcessor by extending
>> TemplateCompletionProcessor, when press "ALT+/", proposals are listed,
>> but when I typing some character, the list not filtered according to
>> input characters?
>> I add some debug printing at the beginning of
>> TemplateCompletionProcessor.computeCompletionProposals(IText Viewer, int)
>> but to find that when I typing new characters, it's not invoked?
>
> Make sure your completin proposal class implements
> org.eclipse.jface.text.contentassist.ICompletionProposalExte nsion2.
org.eclipse.jface.text.contentassist.ICompletionProposalExte nsion2.validate(IDocument,
int, DocumentEvent) does the trick.
>>
>> 2. no info on status bar,
>> when editing files in my editor, information like "writable",
>> "smart insert", and line location all disappear, but when I switch to
>> plain text editor, every thing is there. So I think there must be a way
>> to setup a configuration that manager what to show in status bar.
>
> Looks like your editor's action editor action bar contributor is missing
> or not subclassing BasicTextEditorActionContributor.
I take
org.eclipse.wst.xml.ui.internal.tabletree.SourceEditorAction BarContributor
as the reference.
> Dani
>
>>
>> any advice? thanks in advance!
>>
>> Nick
|
|
|
Goto Forum:
Current Time: Tue Jul 15 02:11:00 EDT 2025
Powered by FUDForum. Page generated in 0.09355 seconds
|