Merge pull request #6414 from OPM/stimplan-feature-switch-6412

#6412 Hide experimental Stimplan features behind RESINSIGHT_DEVEL env…
This commit is contained in:
Kristian Bendiksen 2020-09-02 15:09:28 +02:00 committed by GitHub
commit 32167268ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 9 deletions

View File

@ -398,7 +398,10 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
menuBuilder << "RicNewPerforationIntervalFeature";
menuBuilder << "RicNewFishbonesSubsFeature";
menuBuilder << "RicNewWellPathFractureFeature";
menuBuilder << "RicNewFractureModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewFractureModelFeature";
}
menuBuilder.subMenuEnd();
menuBuilder << "RicCreateTemporaryLgrFeature";
menuBuilder.addSeparator();
@ -433,18 +436,27 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
}
else if ( dynamic_cast<RimFractureModel*>( firstUiItem ) )
{
menuBuilder << "RicNewFractureModelFeature";
menuBuilder << "RicNewFractureModelPlotFeature";
menuBuilder << "RicImportFaciesFeature";
menuBuilder << "RicImportElasticPropertiesFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewFractureModelFeature";
menuBuilder << "RicNewFractureModelPlotFeature";
menuBuilder << "RicImportFaciesFeature";
menuBuilder << "RicImportElasticPropertiesFeature";
}
}
else if ( dynamic_cast<RimFractureModelCollection*>( firstUiItem ) )
{
menuBuilder << "RicNewFractureModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicNewFractureModelFeature";
}
}
else if ( dynamic_cast<RimFractureModelPlot*>( firstUiItem ) )
{
menuBuilder << "RicExportFractureModelPlotToFileFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
menuBuilder << "RicExportFractureModelPlotToFileFeature";
}
}
else if ( dynamic_cast<Rim3dWellLogCurveCollection*>( firstUiItem ) ||
dynamic_cast<Rim3dWellLogExtractionCurve*>( firstUiItem ) ||
@ -1287,7 +1299,10 @@ int RimContextCommandBuilder::appendCreateCompletions( caf::CmdFeatureMenuBuilde
candidates << "RicNewValveFeature";
candidates << "RicNewFishbonesSubsFeature";
candidates << "RicNewWellPathFractureFeature";
candidates << "RicNewFractureModelFeature";
if ( RiaApplication::enableDevelopmentFeatures() )
{
candidates << "RicNewFractureModelFeature";
}
candidates << "Separator";
candidates << "RicCreateMultipleFracturesFeature";
candidates << "RicNewWellPathAttributeFeature";

View File

@ -1442,7 +1442,10 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
if ( mainPlotCollection->fractureModelPlotCollection() )
{
itemCollection->add( mainPlotCollection->fractureModelPlotCollection() );
if ( RiaApplication::enableDevelopmentFeatures() )
{
itemCollection->add( mainPlotCollection->fractureModelPlotCollection() );
}
}
}