|How can I preserve the sequence of open Views when one is closed and re-opened? [message #757425]
||Fri, 18 November 2011 12:09
| John Ormerod
Registered: January 2010
The RCP app I am working with, progamatically closes and re-opens the same view part, as the part of the user's workflow sequence. (Maybe this can be changed, but not right now).
When multiple views are open, this has the effect of putting the newly opened view on the right of the open views.
Some users have said that they find this change of position in the views disconcerting, and have asked if we could keep the view in its current position at the transition points in the workflow.
Q1. Is it possible to programatically change the sequence of views?
If not, then the rest of the questions, are not relevant.
If it is possible:
Q2. What classes and methods can I use?
Q3. How can I find the actual sequence as seen by the user?
I am experimenting with a listener that Implements IPartListener2, and for some of the partXXX methods, I display a list of the open views using activePage.getViewReferences(). The sequence returned matches the visible sequence at first, but as views are opened/closed either manually or by program code, then the internal sequence diverges from the external one.
Powered by FUDForum
. Page generated in 0.01955 seconds