Salome HOME
Move representations of filters to separate XML files.
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_OppositeToEdge.cpp
index b2cc86a6c85e17f649f7cec75aa6425ccfc14dbd..6e0e0d8a3ee2e4dd93886964f990dd0123c5de1d 100644 (file)
@@ -143,20 +143,9 @@ bool FiltersPlugin_OppositeToEdge::isOk(const GeomShapePtr& theShape, const Resu
   return myCachedShapes.find(theShape) != myCachedShapes.end();
 }
 
-static std::string XMLRepresentation =
-"<filter id = \"OppositeToEdge\">"
-" <shape_selector id=\"OppositeToEdge__OppositeToEdge\""
-"   label=\"Edge:\""
-"   tooltip=\"Select edge.\""
-"   shape_types=\"edges\">"
-"   <validator id=\"GeomValidators_ShapeType\" parameters=\"line\"/>"
-" </shape_selector>"
-"</filter>";
-
-
 std::string FiltersPlugin_OppositeToEdge::xmlRepresentation() const
 {
-  return XMLRepresentation;
+  return xmlFromFile("filter-OppositeToEdge.xml");
 }
 
 void FiltersPlugin_OppositeToEdge::initAttributes(ModelAPI_FiltersArgs& theArguments)