currentTile = tile; if (ShapeBrush.class.isInstance(currentBrush)) { ((ShapeBrush)currentBrush).setTile(tile);
if (currentTile != tile) { currentTile = tile; if (ShapeBrush.class.isInstance(currentBrush)) { ((ShapeBrush)currentBrush).setTile(tile); } tilePaletteButton.setTile(currentTile);
    public void setCurrentTile(Tile tile) {        currentTile = tile;        if (ShapeBrush.class.isInstance(currentBrush)) {        	((ShapeBrush)currentBrush).setTile(tile);        }        tilePaletteButton.setTile(currentTile);    }