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
00021 int main(int argc, char** argv)
00022 {
00023
00024
00025
00026 Poco::Path basePath(argv[0]);
00027 basePath.setFileName("");
00028
00029 Poco::Path BlueBerryPath(basePath);
00030 BlueBerryPath.pushDirectory("BlueBerry");
00031
00032 Poco::Path corePath(basePath);
00033 corePath.pushDirectory("CoreBundles");
00034
00035 std::string pluginDirs = BlueBerryPath.toString() + ";" + corePath.toString();
00036
00037 Poco::Util::MapConfiguration* coreConfig(new Poco::Util::MapConfiguration());
00038 coreConfig->setString(berry::Platform::ARG_PLUGIN_DIRS, pluginDirs);
00039 coreConfig->setString(berry::Platform::ARG_APPLICATION, "org.mitk.qt.application");
00040 return berry::Starter::Run(argc, argv, coreConfig);
00041 }