[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Problems with eclipse 3.2.2 RCP app on Mac leopard

We have an eclipse 3.2.2 based RCP application, that we run successfully
on Win32 and on linux/x86.  We have also tried building it for Mac
OSX/x86.  The Mac OSX/x86 alternative doesn't exist in PDEBuild for
3.2.2, but I've patched the 
 plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/productBuild/allElements.xml
file, and added the <target>
 assemble.org.eclipse.pde.build.container.feature.macosx.carbon.x86 

And that seemed to work at first, but the resulting RCP application gets
NPE on MacOSX Leopard.

Will the SWT for macosx.x86 on eclipse 3.2.2 work on Leopard at all?
Will 3.3 work on Leopard?  Will 3.4?

Thanx!



- Steinar

FYI the errors I get are like these:

java.lang.NullPointerException
at org.eclipse.ui.carbon.CarbonUIEnhancer.runAction(CarbonUIEnhancer.java:305)
at org.eclipse.ui.carbon.CarbonUIEnhancer.access$1(CarbonUIEnhancer.java:296)
at org.eclipse.ui.carbon.CarbonUIEnhancer$4.commandProc(CarbonUIEnhancer.java:2
38)
at org.eclipse.swt.internal.carbon.OS.MenuSelect(Native Method)
at org.eclipse.swt.widgets.Display.mouseProc(Display.java:2736)
at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2910)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
...

According to
 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.ui.carbon/src/org/eclipse/ui/carbon/CarbonUIEnhancer.java?view=annotate&pathrev=R3_2_2
the line in question (CarbonUIEnhancer.java:305), looks like this:
                    for (int j = 0; j < m.getItemCount(); j++) {

The only thing that can NPE in that line is the call to
Menu.getItemCount(), so this looks pretty basic.

So my guess is that the combination eclipse 3.2.2 and Leopard is
hopeless, but it would be good to get it confirmed.