0

I have a eclipse-plugin that have two perspectives. There is a view which extends ViewPart in one of the two perspectives. In this view, I overrided saveState method of ViewPart to save my data.

First, I open the prespective that has this view. Then i add some data in the view which should be save in saveState. Next, I navigate to the other perspective that does not have this view. Finally, I close the eclipse's workspace.

In eclipse 4.2(juno), saveState method of the view do not have been called. My data lost. In eclipse 3.6(Helios), saveState method of the view have been called. My date has been persisted.

Does anyone know the reason? How can I insure that the saveState will be called when closing the workspace on all version of eclipse?

4

2 に答える 2

0

Eclipse e4 には ApplicationWorkbenchAdvisor クラスがなく、アプリケーション モデルにはこれを設定するプロパティがなく、Eclipse 3.x とはまったく異なります。wikiおよびvogella チュートリアル ブログ
から詳細を入手できます。

于 2013-05-20T03:29:07.350 に答える