|
Re: Table Text Cell Editor with Completion Proposals [message #331251 is a reply to message #331212] |
Thu, 28 August 2008 15:12 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #331295 is a reply to message #331270] |
Fri, 29 August 2008 08:25 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mario.winterer.gmx.net
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
>
|
|
|
|
Re: Table Text Cell Editor with Completion Proposals [message #331298 is a reply to message #331296] |
Fri, 29 August 2008 10:24 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: mario.winterer.gmx.net
This is a multi-part message in MIME format.
--------------060406090807050107080303
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
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
>>>
>
>
--------------060406090807050107080303
Content-Type: text/plain;
name="SnippetTextCellEditorWithContentProposal.java"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="SnippetTextCellEditorWithContentProposal.java"
cGFja2FnZSBvcmcuZWNsaXBzZS5qZmFjZS5zbmlwcGV0cy52aWV3ZXJzOw0K DQppbXBvcnQg
b3JnLmVjbGlwc2UuamZhY2UuYmluZGluZ3Mua2V5cy5JS2V5TG9va3VwOw0K aW1wb3J0IG9y
Zy5lY2xpcHNlLmpmYWNlLmJpbmRpbmdzLmtleXMuS2V5TG9va3VwRmFjdG9y eTsNCmltcG9y
dCBvcmcuZWNsaXBzZS5qZmFjZS5iaW5kaW5ncy5rZXlzLktleVN0cm9rZTsN CmltcG9ydCBv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z aGVsbCk7DQoJ
CXNoZWxsLm9wZW4oKTsNCg0KCQl3aGlsZSAoIXNoZWxsLmlzRGlzcG9zZWQo KSkgew0KCQkJ
aWYgKCFkaXNwbGF5LnJlYWRBbmREaXNwYXRjaCgpKQ0KCQkJCWRpc3BsYXku c2xlZXAoKTsN
CgkJfQ0KDQoJCWRpc3BsYXkuZGlzcG9zZSgpOw0KCX0NCn0=
--------------060406090807050107080303--
|
|
|
|
Re: Table Text Cell Editor with Completion Proposals [message #331321 is a reply to message #331299] |
Mon, 01 September 2008 08:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.03408 seconds