Running Snippet053 Jface Table Viewer troubleshoot

23 views Asked by At

This could not get weirder I was trying to run this snippet when it gives an error at following line

StartEditorWithContextMenuu

TreeCustomMenu

IStructuredSelection selection = viewer.getStructuredSelection();

gives suggestion to change but does not help anyone knows how to resolve this issue.

Any help is greatly appreciated.

1

There are 1 answers

0
Praveen On

Seems like I should trust eclipse a little more

IStructuredSelection selection = (IStructuredSelection) v.getSelection();

resolved it looks like it is working fine but I wont know unless I completely implement it