Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » migrating presentation factory extension from 3.1 to 3.2.
migrating presentation factory extension from 3.1 to 3.2. [message #463433] Mon, 12 February 2007 06:33 Go to next message
Eclipse UserFriend
I am migrating an RCP app that was developed against version 3.1.2 of
the platform to 3.2.1. Running the application from the IDE as a
product works fine. If I change the launch configuration to run the app
as a product, I get a NPE at app start-up. I get the same exception when
I run the application from the command line specifying either the
-product, -application, or both options. Buried in the stack trace I
find this,

!MESSAGE Error creating presentation factory:
com.chessys.eclipse.presentation.PresentationFactory -- class is not an
AbstractPresentationFactory

PresentationFactory is my factory class used in my
org.eclipse.ui.presentationFactories extension point, and it does in
fact extend AbstractPresentationFactory. PresentationFactory uses
several classes from the org.eclipse.ui.internal.presentations.package,
which I notice is marked as x-internal in the bundle manifest for the
org.eclipse.ui plug-in. Everything I have read about the x-internal
header only says that access is discouraged; so, I am not inclined to
think that this is the issue.

I don't have any problems running my app against version 3.1.2 of the
platform or against 3.2.1 from the IDE when my app is run as a product.
I am at a loss about this exception. Any suggestions are greatly
appreciated.

- John
Re: migrating presentation factory extension from 3.1 to 3.2. [message #463889 is a reply to message #463433] Mon, 19 February 2007 11:36 Go to previous message
Eclipse UserFriend
Can you please file a bug for this? Thanks.

"John Sanda" <john.sanda@gmail.com> wrote in message
news:eqpj9v$7bg$1@utils.eclipse.org...
>I am migrating an RCP app that was developed against version 3.1.2 of the
>platform to 3.2.1. Running the application from the IDE as a product works
>fine. If I change the launch configuration to run the app as a product, I
>get a NPE at app start-up. I get the same exception when I run the
>application from the command line specifying either
>the -product, -application, or both options. Buried in the stack trace I
>find this,
>
> !MESSAGE Error creating presentation factory:
> com.chessys.eclipse.presentation.PresentationFactory -- class is not an
> AbstractPresentationFactory
>
> PresentationFactory is my factory class used in my
> org.eclipse.ui.presentationFactories extension point, and it does in fact
> extend AbstractPresentationFactory. PresentationFactory uses several
> classes from the org.eclipse.ui.internal.presentations.package, which I
> notice is marked as x-internal in the bundle manifest for the
> org.eclipse.ui plug-in. Everything I have read about the x-internal header
> only says that access is discouraged; so, I am not inclined to think that
> this is the issue.
>
> I don't have any problems running my app against version 3.1.2 of the
> platform or against 3.2.1 from the IDE when my app is run as a product. I
> am at a loss about this exception. Any suggestions are greatly
> appreciated.
>
> - John
Previous Topic:Adding a new context menu with plugin.xml (not items to an existing)
Next Topic:Difference between Actionfactory.QUIT and normal Close
Goto Forum:
  


Current Time: Wed Mar 26 01:55:53 EDT 2025

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

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

Back to the top