use of org.jkiss.dbeaver.ui.gis.registry.LeafletTilesDescriptor in project dbeaver by serge-rider.
the class SelectTilesAction method getMenuCreator.
@Override
public IMenuCreator getMenuCreator() {
return new MenuCreator(control -> {
MenuManager menuManager = new MenuManager();
menuManager.setRemoveAllWhenShown(true);
menuManager.addMenuListener(manager -> {
if (valueEditor.getValueSRID() != 0) {
for (LeafletTilesDescriptor ld : GeometryViewerRegistry.getInstance().getLeafletTiles()) {
menuManager.add(new SetTilesAction(valueEditor, ld));
}
}
});
return menuManager;
});
}
Aggregations