Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <org.blueberry.osgi/src/application/berryStarter.h>
00019 #include <Poco/Util/MapConfiguration.h>
00020 #include <mitkCoreExtObjectFactory.h>
00021
00022 int main(int argc, char** argv)
00023 {
00024
00025 RegisterCoreExtObjectFactory();
00026
00027
00028
00029 Poco::Path basePath(argv[0]);
00030 basePath.setFileName("");
00031
00032 Poco::Path BlueBerryPath(basePath);
00033 BlueBerryPath.pushDirectory("BlueBerry");
00034
00035 Poco::Path corePath(basePath);
00036 corePath.pushDirectory("CoreBundles");
00037
00038 Poco::Path extPath(basePath);
00039 extPath.pushDirectory("ExtBundles");
00040
00041 std::string pluginDirs = BlueBerryPath.toString() + ";" + corePath.toString() + ";" + extPath.toString();
00042
00043 Poco::Util::MapConfiguration* extConfig(new Poco::Util::MapConfiguration());
00044 extConfig->setString(berry::Platform::ARG_PLUGIN_DIRS, pluginDirs);
00045 extConfig->setString(berry::Platform::ARG_APPLICATION, "org.mitk.qt.extapplication");
00046 return berry::Starter::Run(argc, argv, extConfig);
00047 }