public void removeTileset(TileSet s) throws LayerLockedException {
public void removeTileset(TileSet tileset) throws LayerLockedException {
    public void removeTileset(TileSet s) throws LayerLockedException {        // Sanity check        if (tilesets.indexOf(s) == -1)            return;        // Go through the map and remove any instances of the tiles in the set        Iterator tileIterator = s.iterator();        while (tileIterator.hasNext()) {            Tile tile = (Tile)tileIterator.next();            Iterator layerIterator = getLayers();            while (layerIterator.hasNext()) {                MapLayer ml = (MapLayer)layerIterator.next();                if (ml instanceof TileLayer) {                    ((TileLayer)ml).removeTile(tile);                }            }        }        tilesets.remove(s);        fireMapChanged();    }