Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » CellEditor in the TableViewer is not enabling the context menu
CellEditor in the TableViewer is not enabling the context menu [message #40777] Mon, 08 October 2007 13:47 Go to next message
Debasis Mishra is currently offline Debasis MishraFriend
Messages: 36
Registered: July 2009
Member
Hello,
In my GridTableViewer I have used Editing support API to get the required
widgets in the column.

In one column I am returning the DialogCellEditor.but I have given my
context menu on right click so when i am selecting that cell i am getting
my button but not getting my context menu in rightclick.





Thanks
Debasis
Re: CellEditor in the TableViewer is not enabling the context menu [message #40807 is a reply to message #40777] Tue, 09 October 2007 16:48 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
Hi Debasis,

The DialogCellEditor is placing its control in the cell and thus its
getting the right click and not the underlying grid. This is the case
with any cell editor. You might be able to assign your menu to the
editor. If that doesn't work then I would follow up in the RCP
newsgroup as this is more of a generic JFace viewer issue.

Regards,
-Chris

DebasisMishra wrote:
> Hello,
> In my GridTableViewer I have used Editing support API to get the
> required widgets in the column.
>
> In one column I am returning the DialogCellEditor.but I have given my
> context menu on right click so when i am selecting that cell i am
> getting my button but not getting my context menu in rightclick.
>
>
>
>
>
> Thanks
> Debasis
>
Re: CellEditor in the TableViewer is not enabling the context menu [message #40838 is a reply to message #40807] Wed, 10 October 2007 06:30 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5461
Registered: July 2009
Senior Member
hi,

I'm not I sure I get this right but you have assigned a context-menu on
the viewer but instead the editor is activated on right click?

If that's the case then this is a regression in 3.3 and 3.3.1 we are
going to fix in 3.3.2
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=203316).

You can fix this your own by providing your own
ColumnViewerEditorActivationStrategy strategy as described in the bug
report.

Tom

Chris Gross schrieb:
> Hi Debasis,
>
> The DialogCellEditor is placing its control in the cell and thus its
> getting the right click and not the underlying grid. This is the case
> with any cell editor. You might be able to assign your menu to the
> editor. If that doesn't work then I would follow up in the RCP
> newsgroup as this is more of a generic JFace viewer issue.
>
> Regards,
> -Chris
>
> DebasisMishra wrote:
>> Hello,
>> In my GridTableViewer I have used Editing support API to get the
>> required widgets in the column.
>>
>> In one column I am returning the DialogCellEditor.but I have given my
>> context menu on right click so when i am selecting that cell i am
>> getting my button but not getting my context menu in rightclick.
>>
>>
>>
>>
>>
>> Thanks
>> Debasis
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Re: CellEditor in the TableViewer is not enabling the context menu [message #585155 is a reply to message #40777] Tue, 09 October 2007 16:48 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
Hi Debasis,

The DialogCellEditor is placing its control in the cell and thus its
getting the right click and not the underlying grid. This is the case
with any cell editor. You might be able to assign your menu to the
editor. If that doesn't work then I would follow up in the RCP
newsgroup as this is more of a generic JFace viewer issue.

Regards,
-Chris

DebasisMishra wrote:
> Hello,
> In my GridTableViewer I have used Editing support API to get the
> required widgets in the column.
>
> In one column I am returning the DialogCellEditor.but I have given my
> context menu on right click so when i am selecting that cell i am
> getting my button but not getting my context menu in rightclick.
>
>
>
>
>
> Thanks
> Debasis
>
Re: CellEditor in the TableViewer is not enabling the context menu [message #585166 is a reply to message #40807] Wed, 10 October 2007 06:30 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5461
Registered: July 2009
Senior Member
hi,

I'm not I sure I get this right but you have assigned a context-menu on
the viewer but instead the editor is activated on right click?

If that's the case then this is a regression in 3.3 and 3.3.1 we are
going to fix in 3.3.2
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=203316).

You can fix this your own by providing your own
ColumnViewerEditorActivationStrategy strategy as described in the bug
report.

Tom

Chris Gross schrieb:
> Hi Debasis,
>
> The DialogCellEditor is placing its control in the cell and thus its
> getting the right click and not the underlying grid. This is the case
> with any cell editor. You might be able to assign your menu to the
> editor. If that doesn't work then I would follow up in the RCP
> newsgroup as this is more of a generic JFace viewer issue.
>
> Regards,
> -Chris
>
> DebasisMishra wrote:
>> Hello,
>> In my GridTableViewer I have used Editing support API to get the
>> required widgets in the column.
>>
>> In one column I am returning the DialogCellEditor.but I have given my
>> context menu on right click so when i am selecting that cell i am
>> getting my button but not getting my context menu in rightclick.
>>
>>
>>
>>
>>
>> Thanks
>> Debasis
>>


--
B e s t S o l u t i o n . at
------------------------------------------------------------ --------
Tom Schindl JFace-Committer
------------------------------------------------------------ --------
Previous Topic:CellEditor in the TableViewer is not enabling the context menu
Next Topic:Drag&drop in the Grid widget and project status
Goto Forum:
  


Current Time: Fri Nov 21 02:48:04 GMT 2014

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

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