@Override
public long run(Dispatcher<IEvent> dispatcher, String type, IEvent event) {
if (event instanceof MouseEvent && fSideContainer instanceof TilesSideBar) {
GridCoordinate g = fMapViewer.tileAtPoint(new Vector2f(((MouseEvent)event).x(), ((MouseEvent)event).y() - 28));
TilesSideBar side = (TilesSideBar) fSideContainer;
fMapViewer.map().tile(side.tileset(), g.x(), g.y(), side.selected());
}
if (fAniCursor != null) {
if (((MouseEvent) event).button() == 1) setEditingLogic(null);
else ((ObjectSideBar) fSideContainer).placeLogic(new Vector2f(((MouseEvent) event).x() - fMapViewer.offset().x, ((MouseEvent) event).y() - fMapViewer.offset().y - 28));
}