159160161162163164165166167168169
if (properties == null){ return null; } if (properties.containsAll(Arrays.asList(new PolygonShapePropertiesNames().getPropertyNames()))){ return new PolygonPropertiesPanel(Builtin.resources.getString("Polygon")); } else { return super.getPanel(properties); } }