X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=5168e91f77c6916251f7bcd69e07d905014a68e9;hb=6f28e05a6892ea3e1f06a0ddad78c5e4dbbbf83b;hp=3a4abd00bed00e7b23cb2079aaa74e37721acb6f;hpb=50e082b16ea4f2fd6e94ddb6879112036a0610aa;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index 3a4abd00b..5168e91f7 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -4,10 +4,12 @@ #include #include +#include #include +#include -#include +#include using namespace std; @@ -17,7 +19,11 @@ static ExchangePlugin_Plugin* MY_EXCHANGE_INSTANCE = new ExchangePlugin_Plugin() ExchangePlugin_Plugin::ExchangePlugin_Plugin() { // register this plugin - ModelAPI_Session::get()->registerPlugin(this); + SessionPtr aSession = ModelAPI_Session::get(); + aSession->registerPlugin(this); + ModelAPI_ValidatorsFactory* aFactory = aSession->validators(); + aFactory->registerValidator("ExchangePlugin_ImportFormat", + new ExchangePlugin_ImportFormatValidator); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID)