[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: nullpointer on the first start of product

I found out, that the exception is thrown in the initialization of a of a
Swing component.

Frame frame = (Frame) SWT_AWT.new_Frame(comp);

why it makes no problems on linux and windows, but on MAC?

There is a easy fix for this. Look at the method new_Frame and you will see it yourself :)


Within SWT_AWT (org.eclipse.swt.carbon.macosx.ppc_3.1.0.jar)

public static Frame new_Frame (final Composite parent) {
	if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
	if ((parent.getStyle () & SWT.EMBEDDED) == 0) {
		SWT.error (SWT.ERROR_INVALID_ARGUMENT);
	}
	SWT.error (SWT.ERROR_NOT_IMPLEMENTED);
	return null;
}

I read this as a no-go for the use of the SWT_AWT bridge on the Mac. There is a open bug for this (https://bugs.eclipse.org/bugs/show_bug.cgi?id=67384). Maybe there is a solution but I simply do not understand what they are talking about.


Ricky