i have multiple instances of view open in my eclipse rcp application. Can any one tell me how can i identify which instance of viewpart is running. and also how can i switch to different instances of same ViewId programmatically ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume you have set
allowMultiplein the view declaration.Use
getViewSite().getSecondaryId()in your code to get the secondary id of the current view.And use
IWorkbenchPage.showView(String viewId, String secondaryId, int mode)to activate a different view…