Skip to content
Snippets Groups Projects
Commit a3258c74 authored by tpylak's avatar tpylak
Browse files

minor: do not show material type in the well tooltip

SVN: 18181
parent f5a171d4
No related branches found
No related tags found
No related merge requests found
...@@ -317,7 +317,7 @@ public class PlateLayouter ...@@ -317,7 +317,7 @@ public class PlateLayouter
for (IEntityProperty property : properties) for (IEntityProperty property : properties)
{ {
PropertyType propertyType = property.getPropertyType(); PropertyType propertyType = property.getPropertyType();
tooltip += "<br>" + propertyType.getLabel() + ": " + property.tryGetAsString(); tooltip += "<br>" + propertyType.getLabel() + ": " + getPropertyDisplayText(property);
Material material = property.getMaterial(); Material material = property.getMaterial();
if (material != null if (material != null
&& material.getMaterialType().getCode() && material.getMaterialType().getCode()
...@@ -338,6 +338,18 @@ public class PlateLayouter ...@@ -338,6 +338,18 @@ public class PlateLayouter
} }
private static String getPropertyDisplayText(IEntityProperty property)
{
Material material = property.getMaterial();
if (material != null)
{
return material.getCode();
} else
{
return property.tryGetAsString();
}
}
private static String getWellDescription(WellMetadata metadata) private static String getWellDescription(WellMetadata metadata)
{ {
return "Well: " + metadata.getWellSample().getSubCode(); return "Well: " + metadata.getWellSample().getSubCode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment