Hi,
Your code looks correct. Did you maybe put your code *after* the
CreateAndRunWorkbench(...) call? This would explain why your code has no
effect, since the method enters main GUI event loop and only returns
after the application was closed.
A better place for this kind of code would be in your
QtWorkbenchAdvisor::Initialize(IWorkbenchConfigurer::Pointer) method.
Best,
Sascha
On 09/06/2011 05:24 PM, Miklos Espak wrote:
> Hi,
>
> Recently a new preference has been added to the datamanager view that
> enables showing nodes that do not contain data. I want to turn it on
> in my application.
>
> I added this into the Start function of my application:
>
> berry::IPreferencesService::Pointer prefService =
> berry::Platform::GetServiceRegistry()
>
> .GetServiceById<berry::IPreferencesService>(berry::IPreferencesService::ID);
>
> berry::IPreferences::Pointer prefNodesWithNoData =
> prefService->GetSystemPreferences()->Node("org.mitk.views.datamanager");
> prefNodesWithNoData->PutBool("Show nodes containing no data", true);
>
> But the code has no effect. How to turn this option on?
>
> Thanks,
> Miklos
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users