Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to activate my custom presentation?(My presentation isn't activated, even though the org.eclipse.ui/presentationFactoryId is set in the preferences file)
How to activate my custom presentation? [message #490184] Wed, 07 October 2009 13:39 Go to next message
Eclipse UserFriend
Hi,

I created a custom presentation, that I want to use.

I could successfully do it via the deprecated api: IWorkbenchWindowConfigurer.setPresentationFactory()

However I could not do it via setting the org.eclipse.ui/presentationFactoryId.
This is what I did:
- created a file called preferences.ini in the plugin's root directory
- typed in the following: org.eclipse.ui/presentationFactoryId=my.presentation.factory
- modified the plugin.xml:
         <property
               name="preferenceCustomization"
               value="preferences.ini">
         </property>

The default presentation is loaded instead of mine.

Setup:
- My run configuration runs the product
- All required plugins are added to the run configuration
- Target Platform: subset of Ganymede (3.4)

Thanks for any help.

Regards,
Marton
Re: How to activate my custom presentation? [message #490222 is a reply to message #490184] Wed, 07 October 2009 18:05 Go to previous messageGo to next message
Eclipse UserFriend
Marton Sigmond schrieb:
> Hi,
>
> I created a custom presentation, that I want to use.
>
> I could successfully do it via the deprecated api:
> IWorkbenchWindowConfigurer.setPresentationFactory()
>
> However I could not do it via setting the
> org.eclipse.ui/presentationFactoryId.
> This is what I did:
> - created a file called preferences.ini in the plugin's root directory
> - typed in the following:
> org.eclipse.ui/presentationFactoryId=my.presentation.factory
> - modified the plugin.xml:
> <property
> name="preferenceCustomization"
> value="preferences.ini">
> </property>
> The default presentation is loaded instead of mine.
>
> Setup:
> - My run configuration runs the product
> - All required plugins are added to the run configuration
> - Target Platform: subset of Ganymede (3.4)
>
> Thanks for any help.
>
> Regards,
> Marton
>

you could try to set the preferences by hand

i.e. before creating workbench:

PlatformUI.getPreferenceStore().setDefault(
IWorkbenchPreferenceConstants.PRESENTATION_FACTORY_ID,
"your.ID.To.be.loaded");


Christian
Re: How to activate my custom presentation? [message #490658 is a reply to message #490184] Fri, 09 October 2009 11:17 Go to previous messageGo to next message
Eclipse UserFriend
It does look correct.
org.eclipse.ui/presentationFactoryId=your.presentation.facto ry.id

And then
<property name="preferenceCustomization" value="preferences.ini"/>

Make sure that your build.properties includes the new preferences.ini file in its binary output

Is there anything in your <runtime-workspace>/.metadata/.log? Adding -consoleLog to an RCP app will print errors to the console.

PW
Re: How to activate my custom presentation? [message #490731 is a reply to message #490184] Fri, 09 October 2009 17:21 Go to previous message
Eclipse UserFriend
I tried to set the property from the code as Christian suggested, but no luck.

Than I had to update the application and the product from SVN, and the problem has gone.
Since no one else touches the presentation, it is still mysterious what the problem was.

Thank you for your answers, I will post again, if the problem reappears.

Best regards,
Marton
Previous Topic:Problem whit load image
Next Topic:How can i close views?
Goto Forum:
  


Current Time: Wed Jul 23 06:08:52 EDT 2025

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

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

Back to the top