Skip to content

Commit

Permalink
#5106 - Type of lookup feature is display wrong after creation
Browse files Browse the repository at this point in the history
- Fix display of feature type
  • Loading branch information
reckart committed Oct 29, 2024
1 parent 3a4ab9b commit 3e59c3e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static java.util.Arrays.asList;
import static org.apache.commons.lang3.StringUtils.isNotBlank;

import java.lang.invoke.MethodHandles;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
Expand Down Expand Up @@ -61,7 +62,7 @@ public class LookupFeatureSupport
public static final String STRING = "string";
public static final String TYPE_STRING_LOOKUP = PREFIX + STRING;

private static final Logger LOG = LoggerFactory.getLogger(LookupFeatureSupport.class);
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

private final LookupCache labelCache;
private final LookupServiceProperties properties;
Expand Down Expand Up @@ -94,13 +95,15 @@ public Optional<FeatureType> getFeatureType(AnnotationFeature aFeature)
}

return Optional.of(new FeatureType(aFeature.getType(),
aFeature.getType().substring(PREFIX.length()), featureSupportId));
"Lookup (" + aFeature.getType().substring(PREFIX.length()) + ")",
featureSupportId));
}

@Override
public List<FeatureType> getSupportedFeatureTypes(AnnotationLayer aAnnotationLayer)
{
return asList(new FeatureType(TYPE_STRING_LOOKUP, "Lookup", featureSupportId));
return asList(
new FeatureType(TYPE_STRING_LOOKUP, "Lookup (" + STRING + ")", featureSupportId));
}

@Override
Expand Down

0 comments on commit 3e59c3e

Please sign in to comment.