[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: When do ViewParts get disposed?

Very odd: after reading your mail I added System.out.println()'s to my code to see, when the ctor and the dispose() are actually called and now everything works fine and as you described (and as I originally expected). Even after removing the println's again things remain fine. Oh well,...

Thank anyway,
Michael

"Paul Webster" <pwebster@xxxxxxxxxx> wrote in message news:ejiekl$rf3$1@xxxxxxxxxxxxxxxxxxxx
For normal views, there is only every one ViewPart in existence. It's actually the same ViewPart open in one or more perspectives. When you hide the view so it's no longer visible in any perspective, then the ViewFactory tells the workbench page to dispose it.

As part of that call, the IWorkbenchPart#dispose() method is called.

Are there any errors in your error log? <workspace>/.metadata/.log? This part lifecycle hasn't changed in a long time.

Later,
PW