|Problem closing a view unless it is active [message #551745]
||Mon, 09 August 2010 12:36
Registered: July 2009
I am developing RCP application in which I have 3 views.
All 3 views respond to selection changes.
(A) Normal behavior when view to be closed is already in focus:
Whereas if an element of view B is selected and then if we try closing
it, view B closes without and exception / warning. Also in debug stack
trace, we can find the dispose method of view being called.
(B) Unexpected behavior when another view is in focus:
When element in view A is selected, and I try to click on 'x' button
(try to close view) of view B, a warning is logged in Error log view and
the view gets closed.
On debug it is observed that the dispose method of view B is never
called during such a close action.
If we check on Eclipse IDE we can observe normal behavior as mentioned
in point (A) above.
I have been investigating into this issue since long time.
If anyone has any suggestion regarding this issue please let me know.
Following is the warning message observed:
WARNING: Prevented recursive attempt to activate part ViewA while still
in the middle of activating part ViewB
Powered by FUDForum
. Page generated in 0.02490 seconds