X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plugin.cpp;h=fd5db868fc7443bf50cd3b982f2a15c7b5fa291f;hb=3f90ce401b5018e9258352a93dd3440a83925cbd;hp=d420b21104827a33f6e25cf279d0ba2cb77db4c5;hpb=38f16bcc8fd21226cd50a3d73457c139159ea4ec;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp index d420b2110..fd5db868f 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp @@ -1,8 +1,7 @@ #include "ConstructionPlugin_Plugin.h" #include "ConstructionPlugin_Point.h" -#include "ConstructionPlugin_Extrusion.h" -#include +#include #include using namespace std; @@ -10,18 +9,16 @@ using namespace std; // the only created instance of this plugin static ConstructionPlugin_Plugin* MY_INSTANCE = new ConstructionPlugin_Plugin(); -ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() +ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() { // register this plugin - ModelAPI_PluginManager::get()->registerPlugin(this); + ModelAPI_Session::get()->registerPlugin(this); } FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID) { if (theFeatureID == CONSTRUCTION_POINT_KIND) { return FeaturePtr(new ConstructionPlugin_Point); - } else if (theFeatureID == CONSTRUCTION_EXTRUSION_KIND) { - return FeaturePtr(new ConstructionPlugin_Extrusion); } // feature of such kind is not found return FeaturePtr();