[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] ShowIn Menu in Problem View

Hello,

In my RCP application, we r using eclipse provided problems view. wherein ShowIn Menu option in the context Menu does not have any applicable views to navigate. I have added Outline View in my advisor class. And now am getting Outline View in a view list of ShowIn menu.

And my outline view class is implemneting IShowInTarget, through which am getting 'public boolean show(ShowInContext context){ }' method to implement so as to navigate to Outline View with the selected object.

As far as i know,Eclipse's MarkerView would give me the selected object, as my problems view is an eclipse provided view. But the object i am getting from 'context.getSelection()' is a File object. But this is of no use to me as i am not getting the required object to set as input to my view.

Through 'context.getInput()' i am getting list of markers through which i could easily get the proper object for my outline view's input. But here the problem is i dont know which marker is the selected one.

Could anyone please tell me, which approach is correct to get the proper object to set as input to my outline view. through Selection or through Marker?


regards, Khalid