|How to initiate an inactive view in an IFolderLayout [message #691890]
||Sat, 02 July 2011 18:05
Registered: July 2011
So here is my situation:|
I have an IFolderLayout which contains multiple views, let's say A, and B.
From my observation, only one view - the active view - gets initiated (i.e., createPartControl get called). Thus if A is the active view, B, and C are not initiated until the user clicks on them.
This creates problem for me. What I want is to show some text "String 0" in B, and when user loads a file the text get changed to "String 1". What I'm doing is putting the "String 0" in createPartControl, and register this view as an event listener to my controller, so that whenever a file loads up the view changes the text to "String 1".
Now if A is the active view, which means B is not initiated. Then when the user loads a file and click on view B, only "String 0" will be shown since createPartControl is called at this moment.
Is there a way to initiate the view upon plugin start up? Or do I have to use another controller to control the text in views?
Powered by FUDForum
. Page generated in 0.02081 seconds