Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Prevented recursive attempt to activate part
Prevented recursive attempt to activate part [message #300807] Fri, 17 March 2006 06:35 Go to next message
Eclipse UserFriend
I have 2 views (using TreeViewer) that use
getSite().getPage().addPostSelectionListener(this) to chnage their input
according the current selection. Their selectionChanged(..) method ignores
any selections which aren't IFiles, so I shouldn't get my own selection
changes.

When you click on one of the elements in the tree, the properties view is
updated.

This works fine unless you start editing one of the values in the prop.
view then go back to the tree. This causes the following entry to be
placed in the errorlog:
WARNING: prevented recursive attempt to activate part
org.eclipse.ui.views.PropertySheet while still in the middle of activating
myView.

Found this:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg40 562.html
but not sure what it means.
Anyone got any ideas?
Thanks in advance
Chris

PS the error in the log has a different icon (cross in front of paper) to
normal (just a cross) and causes the log to take focus. Might like to use
it in my plugin. What is it?
Re: Prevented recursive attempt to activate part [message #301276 is a reply to message #300807] Mon, 27 March 2006 06:00 Go to previous messageGo to next message
Eclipse UserFriend
OK, just realised that the error log taking focus is a preference of the
error log view.

Anyway, still struggling with this problem. Any help would be greatly
appreciated.

Thanks
Re: Prevented recursive attempt to activate part [message #302747 is a reply to message #300807] Thu, 27 April 2006 19:02 Go to previous message
Eclipse UserFriend
Chris wrote:

> When you click on one of the elements in the tree, the properties view
> is updated.

I had the same problem but with GEF editor instead of tree in your case.
It almost made me mad but finally I found that I have overridden
method setFocus() in my GEF editor with the one with an empty body. But
the super method in GraphicalEditor class of GEF implements it as:

public void setFocus() {
getGraphicalViewer().getControl().setFocus();
}

I did not have enough power to investigate it but the problem
disappeared when I removed my empty setFocus().

> This works fine unless you start editing one of the values in the prop.
> view then go back to the tree. This causes the following entry to be
> placed in the errorlog:
> WARNING: prevented recursive attempt to activate part
> org.eclipse.ui.views.PropertySheet while still in the middle of
> activating myView.

Exactly the same message :)


/Leo
Previous Topic:Weird ResourceInfo / content-type caching problem
Next Topic:Notifying a different view when the user clicks a context menu in a view
Goto Forum:
  


Current Time: Thu May 08 10:27:42 EDT 2025

Powered by FUDForum. Page generated in 0.05287 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top