GridTreeViewer's questons [message #1012677] |
Fri, 22 February 2013 02:30 |
cheng shouwu Messages: 12 Registered: September 2012 |
Junior Member |
|
|
Hi guys:
I am using nebula GridTreeViewer in my project,but there are three question,I can not know how to do,can anyone help me?
1,when a cell(TextCellEditor) is focused(not editor activate),I type CTRL+V,and want to paste the content to the cell,but now I only can make the editor activate through ColumnViewerEditorActivationStrategy setting,I have to type CTRL+V again to paste.is there any way to paste the content to a cell(TextCellEditor) with only one time typing CTRL+V?
2.afte inputing the value of a cell , when typing the ENTER keybord,I want to navigate to the cell of next row in the same column index,how to perfomance that?
3.I come from china,I always want to input chinese words,which combined by some keybord.when the cell(TextCellEditor) is focused(not editor activate),I can not input the chinese words,how should I resolve that problem?
that's will be appreciated if there is some snippets to indicate the questions.
thanks a lot
|
|
|
Re: GridTreeViewer's questons [message #1012802 is a reply to message #1012677] |
Fri, 22 February 2013 08:46 |
Thomas Schindl Messages: 6651 Registered: July 2009 |
Senior Member |
|
|
Those questions are not Grid specific but JFace ones ;-)
Am 22.02.13 03:30, schrieb cheng shouwu:
> Hi guys:
>
> I am using nebula GridTreeViewer in my project,but there are three
> question,I can not know how to do,can anyone help me?
>
> 1,when a cell(TextCellEditor) is focused(not editor activate),I type
> CTRL+V,and want to paste the content to the cell,but now I only can make
> the editor activate through ColumnViewerEditorActivationStrategy
> setting,I have to type CTRL+V again to paste.is there any way to paste
> the content to a cell(TextCellEditor) with only one time typing CTRL+V?
>
You have to subclass TextCellEditor and overwrite
activate(ColumnViewerEditorActivationEvent) there you can get the
activation event.
> 2.afte inputing the value of a cell , when typing the ENTER keybord,I
> want to navigate to the cell of next row in the same column index,how to
> perfomance that?
>
You'll best overload keyReleaseOccured() and there in an *asyncExec* set
new selection AND call viewer.editElement()
> 3.I come from china,I always want to input chinese words,which combined
> by some keybord.when the cell(TextCellEditor) is focused(not editor
> activate),I can not input the chinese words,how should I resolve that
> problem?
>
See above the activate() will get the original event and you can there
from get the typed char and insert it directly to the text-field.
Tom
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04555 seconds