Search in sources :

Example 1 with PoiTypeCreatedEvent

use of io.jawg.osmcontributor.ui.events.type.PoiTypeCreatedEvent in project osm-contributor by jawg.

the class TypeManager method onInternalSavePoiTypeEvent.

// ********************************
// ************ Events ************
// ********************************
@Subscribe(threadMode = ThreadMode.ASYNC)
public void onInternalSavePoiTypeEvent(InternalSavePoiTypeEvent event) {
    PoiType poiType = event.getPoiType();
    poiManager.savePoiType(poiType);
    bus.post(new PoiTypeCreatedEvent(poiType));
}
Also used : PoiType(io.jawg.osmcontributor.model.entities.PoiType) PoiTypeCreatedEvent(io.jawg.osmcontributor.ui.events.type.PoiTypeCreatedEvent) Subscribe(org.greenrobot.eventbus.Subscribe)

Aggregations

PoiType (io.jawg.osmcontributor.model.entities.PoiType)1 PoiTypeCreatedEvent (io.jawg.osmcontributor.ui.events.type.PoiTypeCreatedEvent)1 Subscribe (org.greenrobot.eventbus.Subscribe)1