X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=58b214b47c96522dcfcf5df123e5f27b7e1251fe;hb=ecdaaaad4b49203ba113f2d5f1085879af6ad56d;hp=b3256862a1c9e1c726bae79e19fec8e41d6477fc;hpb=daeab27f92af64bc3d0fd5328ce61d1d525c4802;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index b3256862a..58b214b47 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -1,23 +1,37 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + /* * */ #include #include +#include + +#include #include +#include -#include +#include using namespace std; // the only created instance of this plugin -static ExchangePlugin_Plugin* MY_INSTANCE = new ExchangePlugin_Plugin(); +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); + + // register construction properties + //Config_PropManager::registerProp("Visualization", "import_feature_color", "Imported feature color", + // Config_Prop::Color, ExchangePlugin_ImportFeature::DEFAULT_COLOR()); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID)