Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Copy/Paste problem in TableViewer
Copy/Paste problem in TableViewer [message #422608] Thu, 11 September 2008 09:32 Go to next message
Eclipse UserFriend
Originally posted by: r_julian2001.yahoo.com

Hello,
We defined a TableViewer with 3 columns all three using
textcelleditors. Also, we implemented cut/copy/paste by extending
EditingDomainActionBarContributor. Drag and drop also is there. I edit a
cell say, row 7 column 1, and use Ctrl+C to copy the contents of this
cell. I then use Ctrl+V to paste onto a different cell. What happens is
the whole row is actually copied to clipboard and pasted as a new row in
the TableViewer. My problem is I want (Ctrl+C) only the cell content to
be copied not the whole row.

When I am in the cell, and make a right click to get the contextmenu of
the textboxcelleditor. This menu I could use without problems to copy
and paste to a new cell.

Is there a way to tie this contextmenu of the textcelleditor with EMF's
cut/cpy/pste/del ? Thanks in advance.

Best regards. --julian
Re: Copy/Paste problem in TableViewer [message #422610 is a reply to message #422608] Thu, 11 September 2008 09:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Julian,

Comments below.

Robert Julian Chandradoss wrote:
> Hello,
> We defined a TableViewer with 3 columns all three using
> textcelleditors. Also, we implemented cut/copy/paste by extending
> EditingDomainActionBarContributor. Drag and drop also is there. I edit
> a cell say, row 7 column 1, and use Ctrl+C to copy the contents of
> this cell. I then use Ctrl+V to paste onto a different cell. What
> happens is the whole row is actually copied to clipboard and pasted as
> a new row in the TableViewer. My problem is I want (Ctrl+C) only the
> cell content to be copied not the whole row.
>
> When I am in the cell, and make a right click to get the contextmenu
> of the textboxcelleditor. This menu I could use without problems to
> copy and paste to a new cell.
>
> Is there a way to tie this contextmenu of the textcelleditor with
> EMF's cut/cpy/pste/del ? Thanks in advance.
Unfortunately the subtleties of how to hookup hot keys with the right
actions is something that's always escaped me. Entry fields have their
own popup menu that does things locally just for that field, so it
sounds like you are happy with that but that the hot keys don't invoke
those actions but rather the ones defined by EMF. I even have
outstanding issues with making Ctrl-C work in the Sample XSD Editor that
I've not been able to fix for lack of time to investigate. I hope
someone else has some good ideas, because I'm at a loss...
>
> Best regards. --julian


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Copy/Paste problem in TableViewer [message #422621 is a reply to message #422610] Thu, 11 September 2008 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r_julian2001.yahoo.com

Hello Ed,
Thanks for the reply. I also hope someone will drop a nice idea.
Best regards --julian


Ed Merks wrote:
> Julian,
>
> Comments below.
>
> Robert Julian Chandradoss wrote:
>> Hello,
>> We defined a TableViewer with 3 columns all three using
>> textcelleditors. Also, we implemented cut/copy/paste by extending
>> EditingDomainActionBarContributor. Drag and drop also is there. I edit
>> a cell say, row 7 column 1, and use Ctrl+C to copy the contents of
>> this cell. I then use Ctrl+V to paste onto a different cell. What
>> happens is the whole row is actually copied to clipboard and pasted as
>> a new row in the TableViewer. My problem is I want (Ctrl+C) only the
>> cell content to be copied not the whole row.
>>
>> When I am in the cell, and make a right click to get the contextmenu
>> of the textboxcelleditor. This menu I could use without problems to
>> copy and paste to a new cell.
>>
>> Is there a way to tie this contextmenu of the textcelleditor with
>> EMF's cut/cpy/pste/del ? Thanks in advance.
> Unfortunately the subtleties of how to hookup hot keys with the right
> actions is something that's always escaped me. Entry fields have their
> own popup menu that does things locally just for that field, so it
> sounds like you are happy with that but that the hot keys don't invoke
> those actions but rather the ones defined by EMF. I even have
> outstanding issues with making Ctrl-C work in the Sample XSD Editor that
> I've not been able to fix for lack of time to investigate. I hope
> someone else has some good ideas, because I'm at a loss...
>>
>> Best regards. --julian
Re: Copy/Paste problem in TableViewer [message #422622 is a reply to message #422621] Thu, 11 September 2008 11:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Can't you simply disable the C&P Handlers EMF-Attached to the global
system when the CellEditor is activated? I think the following thread
[1] form January shades some light on copy and paste

Tom

[1]http://www.eclipsezone.com/eclipse/forums/t106593.html

Robert Julian Chandradoss schrieb:
> Hello Ed,
> Thanks for the reply. I also hope someone will drop a nice idea.
> Best regards --julian
>
>
> Ed Merks wrote:
>> Julian,
>>
>> Comments below.
>>
>> Robert Julian Chandradoss wrote:
>>> Hello,
>>> We defined a TableViewer with 3 columns all three using
>>> textcelleditors. Also, we implemented cut/copy/paste by extending
>>> EditingDomainActionBarContributor. Drag and drop also is there. I
>>> edit a cell say, row 7 column 1, and use Ctrl+C to copy the contents
>>> of this cell. I then use Ctrl+V to paste onto a different cell. What
>>> happens is the whole row is actually copied to clipboard and pasted
>>> as a new row in the TableViewer. My problem is I want (Ctrl+C) only
>>> the cell content to be copied not the whole row.
>>>
>>> When I am in the cell, and make a right click to get the contextmenu
>>> of the textboxcelleditor. This menu I could use without problems to
>>> copy and paste to a new cell.
>>>
>>> Is there a way to tie this contextmenu of the textcelleditor with
>>> EMF's cut/cpy/pste/del ? Thanks in advance.
>> Unfortunately the subtleties of how to hookup hot keys with the right
>> actions is something that's always escaped me. Entry fields have
>> their own popup menu that does things locally just for that field, so
>> it sounds like you are happy with that but that the hot keys don't
>> invoke those actions but rather the ones defined by EMF. I even have
>> outstanding issues with making Ctrl-C work in the Sample XSD Editor
>> that I've not been able to fix for lack of time to investigate. I
>> hope someone else has some good ideas, because I'm at a loss...
>>>
>>> Best regards. --julian


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: Copy/Paste problem in TableViewer [message #422628 is a reply to message #422622] Thu, 11 September 2008 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r_julian2001.yahoo.com

Hello tom,
Thanks for the input. will try it out.

Best regards. --julian

Tom Schindl wrote:
> Hi,
>
> Can't you simply disable the C&P Handlers EMF-Attached to the global
> system when the CellEditor is activated? I think the following thread
> [1] form January shades some light on copy and paste
>
> Tom
>
> [1]http://www.eclipsezone.com/eclipse/forums/t106593.html
>
> Robert Julian Chandradoss schrieb:
>> Hello Ed,
>> Thanks for the reply. I also hope someone will drop a nice idea.
>> Best regards --julian
>>
>>
>> Ed Merks wrote:
>>> Julian,
>>>
>>> Comments below.
>>>
>>> Robert Julian Chandradoss wrote:
>>>> Hello,
>>>> We defined a TableViewer with 3 columns all three using
>>>> textcelleditors. Also, we implemented cut/copy/paste by extending
>>>> EditingDomainActionBarContributor. Drag and drop also is there. I
>>>> edit a cell say, row 7 column 1, and use Ctrl+C to copy the contents
>>>> of this cell. I then use Ctrl+V to paste onto a different cell. What
>>>> happens is the whole row is actually copied to clipboard and pasted
>>>> as a new row in the TableViewer. My problem is I want (Ctrl+C) only
>>>> the cell content to be copied not the whole row.
>>>>
>>>> When I am in the cell, and make a right click to get the contextmenu
>>>> of the textboxcelleditor. This menu I could use without problems to
>>>> copy and paste to a new cell.
>>>>
>>>> Is there a way to tie this contextmenu of the textcelleditor with
>>>> EMF's cut/cpy/pste/del ? Thanks in advance.
>>> Unfortunately the subtleties of how to hookup hot keys with the right
>>> actions is something that's always escaped me. Entry fields have
>>> their own popup menu that does things locally just for that field, so
>>> it sounds like you are happy with that but that the hot keys don't
>>> invoke those actions but rather the ones defined by EMF. I even have
>>> outstanding issues with making Ctrl-C work in the Sample XSD Editor
>>> that I've not been able to fix for lack of time to investigate. I
>>> hope someone else has some good ideas, because I'm at a loss...
>>>> Best regards. --julian
>
>
Re: Copy/Paste problem in TableViewer [message #423942 is a reply to message #422622] Fri, 10 October 2008 12:10 Go to previous message
Eclipse UserFriend
Originally posted by: r_julian2001.yahoo.com

Dear Tom,
Works fine. Thanks a lot.

Best regards. --julian

Tom Schindl wrote:
> Hi,
>
> Can't you simply disable the C&P Handlers EMF-Attached to the global
> system when the CellEditor is activated? I think the following thread
> [1] form January shades some light on copy and paste
>
> Tom
>
> [1]http://www.eclipsezone.com/eclipse/forums/t106593.html
>
> Robert Julian Chandradoss schrieb:
>> Hello Ed,
>> Thanks for the reply. I also hope someone will drop a nice idea.
>> Best regards --julian
>>
>>
>> Ed Merks wrote:
>>> Julian,
>>>
>>> Comments below.
>>>
>>> Robert Julian Chandradoss wrote:
>>>> Hello,
>>>> We defined a TableViewer with 3 columns all three using
>>>> textcelleditors. Also, we implemented cut/copy/paste by extending
>>>> EditingDomainActionBarContributor. Drag and drop also is there. I
>>>> edit a cell say, row 7 column 1, and use Ctrl+C to copy the contents
>>>> of this cell. I then use Ctrl+V to paste onto a different cell. What
>>>> happens is the whole row is actually copied to clipboard and pasted
>>>> as a new row in the TableViewer. My problem is I want (Ctrl+C) only
>>>> the cell content to be copied not the whole row.
>>>>
>>>> When I am in the cell, and make a right click to get the contextmenu
>>>> of the textboxcelleditor. This menu I could use without problems to
>>>> copy and paste to a new cell.
>>>>
>>>> Is there a way to tie this contextmenu of the textcelleditor with
>>>> EMF's cut/cpy/pste/del ? Thanks in advance.
>>> Unfortunately the subtleties of how to hookup hot keys with the right
>>> actions is something that's always escaped me. Entry fields have
>>> their own popup menu that does things locally just for that field, so
>>> it sounds like you are happy with that but that the hot keys don't
>>> invoke those actions but rather the ones defined by EMF. I even have
>>> outstanding issues with making Ctrl-C work in the Sample XSD Editor
>>> that I've not been able to fix for lack of time to investigate. I
>>> hope someone else has some good ideas, because I'm at a loss...
>>>> Best regards. --julian
>
>
Previous Topic:Eclipse modeling trainings
Next Topic:[Teneo] EMF and legacy database
Goto Forum:
  


Current Time: Thu Sep 26 18:14:49 GMT 2024

Powered by FUDForum. Page generated in 0.04634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top