#include <org.blueberry.osgi/src/application/berryStarter.h>
#include <Poco/Util/MapConfiguration.h>
#include <mitkCoreExtObjectFactory.h>
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 22 of file ExtApp.cpp.
References berry::Platform::ARG_APPLICATION, berry::Platform::ARG_PLUGIN_DIRS, RegisterCoreExtObjectFactory(), and berry::Starter::Run().
{ RegisterCoreExtObjectFactory(); // These paths replace the .ini file and are tailored for installation // packages created with CPack. If a .ini file is presented, it will // overwrite the settings in MapConfiguration Poco::Path basePath(argv[0]); basePath.setFileName(""); Poco::Path BlueBerryPath(basePath); BlueBerryPath.pushDirectory("BlueBerry"); Poco::Path corePath(basePath); corePath.pushDirectory("CoreBundles"); Poco::Path extPath(basePath); extPath.pushDirectory("ExtBundles"); std::string pluginDirs = BlueBerryPath.toString() + ";" + corePath.toString() + ";" + extPath.toString(); Poco::Util::MapConfiguration* extConfig(new Poco::Util::MapConfiguration()); extConfig->setString(berry::Platform::ARG_PLUGIN_DIRS, pluginDirs); extConfig->setString(berry::Platform::ARG_APPLICATION, "org.mitk.qt.extapplication"); return berry::Starter::Run(argc, argv, extConfig); }