#ifdef WIN32
HINSTANCE aModLib = ::LoadLibrary(aFileName.c_str());
- if (!aModLib) {
+ if (!aModLib && theLibName != "DFBrowser") { // don't shor error for internal debugging tool
std::string errorMsg = "Failed to load " + aFileName;
std::cerr << errorMsg << std::endl;
Events_Error::send(errorMsg);
}
#else
void* aModLib = dlopen( aFileName.c_str(), RTLD_LAZY | RTLD_GLOBAL );
- if ( !aModLib ) {
+ if ( !aModLib && theLibName != "DFBrowser") { // don't shor error for internal debugging tool
std::cerr << "Failed to load " << aFileName.c_str() << std::endl;
}
#endif
<plugin library="SketchPlugin" configuration="plugin-Sketch.xml"/>
<plugin library="ConstructionPlugin" configuration="plugin-Construction.xml"/>
<plugin library="SketchSolver"/>
+ <plugin library="DFBrowser"/>
</plugins>
friend class Model_Application;
friend class Model_PluginManager;
+ friend class DFBrowser;
private:
std::string myID; ///< identifier of the document in the application
void Model_PluginManager::setCurrentDocument(boost::shared_ptr<ModelAPI_Document> theDoc)
{
myCurrentDoc = theDoc;
+ static Events_Message aMsg(Events_Loop::eventByName("CurrentDocumentChanged"));
+ Events_Loop::loop()->send(aMsg);
}
boost::shared_ptr<ModelAPI_Document> Model_PluginManager::copy(