문제

I have added a view with the SWT Browser into my 3.x application running in 4.2 runtime. After a fresh install the browser view is displayed, but after the first run the view has disappeared.

I found out that in the runtime workspace a file

   '.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi ' 

has been created. This contains a line

  ... elementId="com.hjb.pm.ui.views.BrowserView" toBeRendered="false" ....

If I change the toBeRendered flag to true, everything is fine for one application run. How can I control this flag?

As a work around I have added -clearPersistedState to my command line arguments. This ignores the saved state.

도움이 되었습니까?

해결책

The answer was found after filing an eclipse bug 409382.

My fault was to specify restorable=false for this view in the plugin.xml. After setting this to false, the tobeRendered="false" disappears from the workbench.xmi.

The work around is no longer needed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top