[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Copy/Paste problem in TableViewer

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