[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] M4 getInstance Not Working ?
|
- From: colin@xxxxxxxxxxxxxx (Colin)
- Date: Fri, 20 Dec 2002 15:35:36 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Maybe a stupid question, but is it somehow possible that the following
construction is not working anymore in M4 (When I test my plugin, when I
it's deployed there seems to be no problem) ?
public class ResultView extends ViewPart
{
private static ResultView instance = null;
public static ResultView getInstance()
{
return instance;
}
public void createPartControl(Composite parent)
{
instance = this;
}
}
The problem is that getInstance gives null. That was never the case. The
partcontrol is there, so how is it possible ?
Is this the way for other code to get the one and only instance of a view
anyway, or is there a prefered other way ?
Kind regards,
Colin.