Tile tile = event.getTile(); if (tile != null) { editor.setCurrentTile(tile); }
editor.setCurrentTile(event.getTile());
    public void tileSelected(TileSelectionEvent event) {        Tile tile = event.getTile();        if (tile != null) {            editor.setCurrentTile(tile);        }    }