Problem closing a view unless it is active [message #551745] |
Mon, 09 August 2010 12:36 |
sneha Messages: 25 Registered: July 2009 |
Junior Member |
|
|
Hi all,
I am developing RCP application in which I have 3 views.
All 3 views respond to selection changes.
Problem observed:
(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
"
Thanks,
Sneha
|
|
|
Powered by
FUDForum. Page generated in 0.03165 seconds