In the main() function you will find stg like this:
extConfig->setString(berry::Platform::ARG_PLUGIN_DIRS, pluginDirs);
std::cout << "ARG_PROVISIONING " << provFile.toString() << std::endl;
extConfig->setString(berry::Platform::ARG_PROVISIONING,
provFile.toString());
// extConfig->setString(berry::Platform::ARG_APPLICATION,
"org.mitk.qt.extapplication");
extConfig->setString(berry::Platform::ARG_APPLICATION,
"it.unito.cim.kmaps");
// Preload the org.mitk.gui.qt.ext plug-in (and hence also QmitkExt) to
speed
// up a clean-cache start. This also works around bugs in older gcc and
glibc implementations,
// which have difficulties with multiple dynamic opening and closing of
shared libraries with
// many global static initializers. It also helps if dependent libraries
have weird static
// initialization methods and/or missing de-initialization code.
// extConfig->setString(berry::Platform::ARG_PRELOAD_LIBRARY,
"liborg_mitk_gui_qt_ext");
extConfig->setString(berry::Platform::ARG_PRELOAD_LIBRARY,
"libit_unito_cim_kmaps");
Like in this example, you have to replace the extapp plugin with your one.
Also, the directory where the main() is contains a 'target_libraries.cmake'
file. You must add the plugin that contains your custom application to it.
Here it looks like this:
set(target_libraries
# Enable plug-ins from this project
it_unito_cim_kmaps
# Require external plug-ins
org_blueberry_compat
org_blueberry_ui_qt
org_blueberry_ui_qt_help
org_mitk_gui_qt_extapplication
org_mitk_gui_qt_datamanager
)
On Fri, Sep 21, 2012 at 10:56 PM, Miklos Espak <[email protected]> wrote:
> The code is correct, that worked for me a half year ago. (I have not tried
> since then.)
>
> My suspicion is that the app is started with another workbench window
> advisor, not the one you had modified. It's easy to check by printing out a
> line.
>
> Also, there was an e-mail recently on this list, that the ExtApp had been
> renamed to something else. This might be related.
>
> Regards,
> Miklos
>
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users