[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: problem on content assistant in my own editor

Thanks Dani, it works fine now.


"Daniel Megert" <daniel_megert@xxxxxxxxxx> ååææ news:fmpr3n$l5q$1@xxxxxxxxxxxxxxxxxxxx
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(ITextViewer, 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.ICompletionProposalExtension2.

org.eclipse.jface.text.contentassist.ICompletionProposalExtension2.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.SourceEditorActionBarContributor as the reference.



Dani


any advice? thanks in advance!

Nick