Table Text Cell Editor with Completion Proposals [message #331212] |
Thu, 28 August 2008 08:59  |
Eclipse User |
|
|
|
I am looking for a table text cell editor that supports Auto Completion
proposals.
I found TableTextCellEditor in org.eclipse.jdt.internal.ui.dialogs, but it
uses the deprecated SubjectControlContentAssistant.
I am quite happy to change it to use the replacement classes but
SubjectControlContentAssistant only says "As of 3.2, replaced by Platform
UI's field assist support", which doesn't really help me enough to find
the replacement functionality.
So does anyone know which class or classes now replace
SubjectControlContentAssistant or does anyone now of a table text cell
editor that supports content assistance.
thanks
|
|
|
Re: Table Text Cell Editor with Completion Proposals [message #331251 is a reply to message #331212] |
Thu, 28 August 2008 11:12   |
Eclipse User |
|
|
|
Originally posted by: mario.winterer.gmx.net
In our project, I've simply subclassed TextCellEditor.
For content proposal I'm using the field assist API of JFace
(org.eclipse.jface.fieldassist). In our code, content assist is enabled
when the cell editor is activated for the first time:
....
if (contentProposalAdapter == null) {
...
// enable content assist on the cell editor's text widget
contentProposalAdapter = new ContentProposalAdapter(text,
new TextContentAdapter(), proposalProvider,
activationKeyStroke, null);
...
} else {
contentProposalAdapter.setEnabled(true);
}
super.activate();
....
Make sure to also override method
TextCellEditor#dependsOnExternalFocusListener() to return false always.
Otherwise you'll face some serious problems concerning focus.
Mario
kentusha schrieb:
> I am looking for a table text cell editor that supports Auto Completion
> proposals.
>
> I found TableTextCellEditor in org.eclipse.jdt.internal.ui.dialogs, but
> it uses the deprecated SubjectControlContentAssistant.
>
> I am quite happy to change it to use the replacement classes but
> SubjectControlContentAssistant only says "As of 3.2, replaced by
> Platform UI's field assist support", which doesn't really help me enough
> to find the replacement functionality.
>
> So does anyone know which class or classes now replace
> SubjectControlContentAssistant or does anyone now of a table text cell
> editor that supports content assistance.
>
> thanks
>
|
|
|
|
|
|
|
|
|
Re: Table Text Cell Editor with Completion Proposals [message #331321 is a reply to message #331299] |
Mon, 01 September 2008 04:36  |
Eclipse User |
|
|
|
Originally posted by: mario.winterer.gmx.net
Done. Filed as bug #245675
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=245675).
Tom Schindl schrieb:
> Hi Mario,
>
> Great! Could you file a bug and attach the snippet else I'm not allowed
> to add it to CVS. CC'me on the bug and I'll incooperate it immediately.
> Please also include your Copyright in the header of the Snippet.
>
> Thanks for sharing your knowledge with us.
>
> Tom
>
> Mario Winterer schrieb:
>> It's already done! I've used another snippet and changed it for my
>> purpose. Its added as attachment.
>>
>> Tom Schindl schrieb:
>>> Or you could use one of the existing ones and simply add the
>>> ContentProposal.
>>>
>>> Looks like:
>>> http://wiki.eclipse.org/JFaceSnippets#Snippet025TabEditing should be
>>> easy to adjust so that it adds ContentProposal.
>>>
>>> Tom
>>>
>>> Mario Winterer schrieb:
>>>> Hm. I could prepare one by removing domain specific stuff.
>>>>
>>>> Tom Schindl schrieb:
>>>>> [...]
>>>>>
>>>>>> Make sure to also override method
>>>>>> TextCellEditor#dependsOnExternalFocusListener() to return false
>>>>>> always. Otherwise you'll face some serious problems concerning focus.
>>>>>
>>>>> Right this was introduced for this special feature. Mario do you
>>>>> have a simple Snippet we can upload to our collection?
>>>>>
>>>>> Tom
>>>>>
>>>
>>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03261 seconds