Perspective Restore / Show View Update Issue [message #437142] |
Thu, 22 September 2005 16:08 |
Kyle Messages: 2 Registered: July 2009 |
Junior Member |
|
|
When modifying a perspective's short view list and restarting the application, the new addition (or subtraction) to the short view list does not show up unless you either close the modified perspective and open it or clear out the workspace cache before hand. As you can probably imagine, this is an undesirable trait to have since we update the system regularly and would want these new views available to our users.
The code for the perspective:
public void createInitialLayout(IPageLayout layout) {
//layout.addShowViewShortcut(SampleView.SAMPLE_VIEW_ID);
}
Start the application once with this line commented out. Open the perspective (Window->open perspective->other), then close the application. Now uncomment the line, and restart the application. Notice that window->show view does not list the sample view. Now close the perspective (window->close perspective) and then reopen the perspective (just switching between perspectives does not solve the problem). Notice that window->show view now works.
I'm out of ideas for a solution. I imagine the reason it does not update the menu is because the createInitialLayout() method is not called when restarting from a workbench, but we want to be able to keep the preferences and layouts of the perspective that the user is in and also be able to provide new updates without destroying that. Any ideas are appreciated.
~Kyle
|
|
|
Powered by
FUDForum. Page generated in 0.02311 seconds