Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Problem with the method invocation order within a view.
Problem with the method invocation order within a view. [message #134557] Tue, 23 September 2003 13:02
Eclipse UserFriend
Originally posted by: jmordax.terra.es

Hi, I have found a problem with method invocation order within a View.

I have a plugin which add a custom View. As all Views it extends
ViewSite so it implements:

- createPartControl(). Where I create all the components and layouts.

- setFocus(). Where I put the focus on a component created before
(within createPartControl).

When the view is launched, the platform invokes createPartControl and
later setFocus. So everything work fine.

But, imagine a have my View opened. Then I change to another View
(pressing its tab) so my view is hidden. Now I close Eclipse. Then a
restart Eclipse. The perspective has the same configuration that existed
when I closed Eclipse (this means my View is hidden). Then, I show my
View (pressing its tab) and...... crash! NullPointerException.

It seems it has not invoked createPartControl yet. And it invokes
setFocus before, which referes to instances that should have been
created within createPartControl.

Has anybody seen this problem? Is it a bug? Or, am I doing any wrong
assumption?

Thanks in advance,

Chemi.
Previous Topic:Lightweight Decorators
Next Topic:Crash on start after JDK update
Goto Forum:
  


Current Time: Wed Jul 16 04:44:50 EDT 2025

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

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

Back to the top