Did this help for you, Matt?

This code has to be put in a plugin as well, but into which? I tried
to add a code like this to the workbench initialization, but it
crashed when I referred to the active editor. (Since no editor was
active that time.)

Actually, I would prefer to replace the logo, not to disable it. I
found that there is a preference called "DepartmentLogo". This can
work for you if you specify an empty transparent image. I use the
following code to set it:

  berry::IPreferencesService::Pointer prefService =
berry::Platform::GetServiceRegistry()
    .GetServiceById<berry::IPreferencesService>(berry::IPreferencesService::ID);

  Poco::Path logoPath(berry::Platform::GetInstancePath(), "logo.png");
  berry::IPreferences::Pointer logoPref =
prefService->GetSystemPreferences()->Node("DepartmentLogo");
  logoPref->Put("DepartmentLogo", logoPath.toString().c_str());

The logo must be in the same directory where the executable is. I
added a few lines to the CMake files to copy the file to the right
places.

Best,
Miklos

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to