I have a viewpart with closable set to true. The user clicks the x. I want to hide the viewpart rather then close it. how can this be done?
Share
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.
If your app was created from a template that makes contributions to the UI it should have a WorkbenchWindowAdvisor file in one of the pregenerated packages. Not sure about the exact implementation details to hide the window on close, but it sounds like you will need to modify the preWindowShellClose method in the WorkbenchWindowAdvisor implementation of your application.