X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.h;fp=src%2FExchangePlugin%2FExchangePlugin_ExportFeature.h;h=f0866181c1e63d5c22a2b05ae1f5965a91a4419f;hb=82beaf3018c2932ab40753f2ef7f0834b4ab43b5;hp=754198869b2ad4dec31224c4b724968bd8bb7315;hpb=cd1812d13034bc06506bf9104a286324830e78f2;p=modules%2Fshaper.git diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h index 754198869..f0866181c 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.h +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.h @@ -105,12 +105,17 @@ public: /// Computes or recomputes the results EXCHANGEPLUGIN_EXPORT virtual void execute(); - /// Reimplemented from ModelAPI_Feature::isMacro(). Returns true. - EXCHANGEPLUGIN_EXPORT virtual bool isMacro() const { return true; } + /// Reimplemented from ModelAPI_Feature::isMacro(). Returns false. + // Not a macro. Otherwise, the feature will be deleted after being executed + EXCHANGEPLUGIN_EXPORT virtual bool isMacro() const { return false; } /// Reimplemented from ModelAPI_Feature::isPreviewNeeded(). Returns false. EXCHANGEPLUGIN_EXPORT virtual bool isPreviewNeeded() const { return false; } + /// Do not put in history. + /// Since it is not a macro, it is not deleted, but we don't want to see it. + bool isInHistory() { return false; } + protected: /// Performs export of the file EXCHANGEPLUGIN_EXPORT void exportFile(const std::string& theFileName,