X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_Plugin.cpp;h=e731309c3896018630dde2abe962449582cdc9e5;hb=eef14b29d313b9dd16453d12f20aa02383ee139c;hp=e2b1ee20f7f69c890a3d86d1e05f007ae3fa6f6a;hpb=31e91a8d11e03ddce87e8c2aa04695961a266a97;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp index e2b1ee20f..e731309c3 100644 --- a/src/ExchangePlugin/ExchangePlugin_Plugin.cpp +++ b/src/ExchangePlugin/ExchangePlugin_Plugin.cpp @@ -1,11 +1,12 @@ // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -/* - * - */ +// File: ExchangePlugin_Plugin.cpp +// Created: Aug 28, 2014 +// Author: Sergey BELASH #include #include +#include #include #include @@ -28,20 +29,17 @@ ExchangePlugin_Plugin::ExchangePlugin_Plugin() 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, IMPORTED_FEATURE_COLOR); - - // register random result color properties - Config_PropManager::registerProp("Visualization", "random_result_color", "Use random color for results", - Config_Prop::Bool, "true"); + aFactory->registerValidator("ExchangePlugin_ExportFormat", + new ExchangePlugin_ExportFormatValidator); } FeaturePtr ExchangePlugin_Plugin::createFeature(string theFeatureID) { if (theFeatureID == ExchangePlugin_ImportFeature::ID()) { return FeaturePtr(new ExchangePlugin_ImportFeature); + } else + if (theFeatureID == ExchangePlugin_ExportFeature::ID()) { + return FeaturePtr(new ExchangePlugin_ExportFeature); } // feature of such kind is not found return FeaturePtr();