copy/cut multiple cells in table [message #464276] |
Sun, 20 November 2005 04:32  |
Eclipse User |
|
|
|
Originally posted by: ng.felicis.org
Hello together,
is there a way one can copy/cut multiple cells in a table instead of only
once at a time? I think this behaviour is implemented in Swing, but I
couldn't figure out if it is possible with SWT, too. I know that Steve
Northover wrote in his book about SWT "A Table Is Not a Spreadsheet", but
nevertheless such functionality would be of great benefit.
Is it possible to do that? If not, is it planned to be supported in future
versions of SWT?
Martin
|
|
|
|
Re: copy/cut multiple cells in table [message #464286 is a reply to message #464278] |
Sun, 20 November 2005 12:10   |
Eclipse User |
|
|
|
Hi,
As Friedrich said, this should be fairly easy to implement.
KTable does what you want, and maybe the code in KTableActionHandler
helps you.
Lorenz
Friederich Kupzog wrote:
> Hi Martin,
>
> probably you can implement this yourself quite easily. Look at the
> snippets for clipboard http://www.eclipse.org/swt/snippets/. You can
> listen to ctrl-c events and other copy commands and fill the clipboard
> yourself.
>
> Hope this helps,
> Friederich
>
> Martin Röhricht wrote:
>
>> Hello together,
>>
>> is there a way one can copy/cut multiple cells in a table instead of only
>> once at a time? I think this behaviour is implemented in Swing, but I
>> couldn't figure out if it is possible with SWT, too. I know that Steve
>> Northover wrote in his book about SWT "A Table Is Not a Spreadsheet", but
>> nevertheless such functionality would be of great benefit.
>> Is it possible to do that? If not, is it planned to be supported in
>> future
>> versions of SWT?
>>
>> Martin
>
>
>
|
|
|
Re: copy/cut multiple cells in table [message #464290 is a reply to message #464278] |
Sun, 20 November 2005 13:25  |
Eclipse User |
|
|
|
Originally posted by: ng.felicis.org
Hi Friederich,
Friederich Kupzog wrote:
> probably you can implement this yourself quite easily. Look at the
> snippets for clipboard http://www.eclipse.org/swt/snippets/. You can
> listen to ctrl-c events and other copy commands and fill the clipboard
> yourself.
I will give it a shot and let you all know if any problems arise. Thanks for
the hint with the clipboard.
Martin
|
|
|
Powered by
FUDForum. Page generated in 0.04369 seconds