tableviewer double-click opens editor and clicks button on new editor [message #1504271] |
Tue, 09 December 2014 00:38  |
Eclipse User |
|
|
|
I'm having what feels like should be a fairly simple problem to resolve, but I can't seem to find exactly how to resolve it. I'm using Eclipse 3.4. But I have an RCP with an editor with a TableViewer. I add a double-click listener to that table. Within that double-click listener, I call a method that opens a new editor based upon the row that was clicked on. The new editor opens up just great, but it registers a click on that new editor right under where the mouse is. So frequently that click happens to fall on a button and my users have to cancel out of whatever dialog that launched.
Here's a really abbreviated code snippet:
viewer.addDoubleClickListener(new IDoubleClickListener() {
public void doubleClick(DoubleClickEvent event)
{
// input gets initialized
IEditorPart part = this.getSite().getPage().openEditor(input, AnotherEditor.ID);
}
});
Any help or ideas would be greatly appreciated.
Thanks,
Matt
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07255 seconds