src/main/java/chalmers/pimp/controller/components/PalettePane.java
void updateEnabledTools(IReadOnlyLayer activeLayer) {
    boolean isRasterToolsAvailable = (activeLayer != null)
        && (activeLayer.getLayerType() == LayerType.RASTER);
    enableRasterTools(isRasterToolsAvailable);

    if (!isRasterToolsAvailable && rasterToolIsSelected()) {
      doodleButton.fire();
    }
  }
/**
   * Disables raster layer tools if selected layer is not a raster, enables them if it is. Will also
   * fire the doodle button if an invalid button was active.
   *
   * @param activeLayer the currently selected Layer.
   */
Disables raster layer tools if selected layer is not a raster, enables them if it is. Will also
fire the doodle button if an invalid button was active.

@param activeLayer the currently selected Layer.
Disables raster layer tools if selected layer is not a raster enables them if it is . Will also fire the doodle button if an invalid button was active . @param activeLayer the currently selected Layer .
void updateEnabledTools(IReadOnlyLayer activeLayer) {
    boolean isRasterToolsAvailable = (activeLayer != null)
        && (activeLayer.getLayerType() == LayerType.RASTER);
    enableRasterTools(isRasterToolsAvailable);
    if (!isRasterToolsAvailable && rasterToolIsSelected()) {
      doodleButton.fire();
    }
  }
void updateEnabledTools ( IReadOnlyLayer activeLayer ) { boolean isRasterToolsAvailable = ( activeLayer != null ) && ( activeLayer . getLayerType ( ) == LayerType . RASTER ) ; enableRasterTools ( isRasterToolsAvailable ) ; if ( ! isRasterToolsAvailable && rasterToolIsSelected ( ) ) { doodleButton . fire ( ) ; } }
Disables raster layer tools if selected layer is not a raster, enables them if it is.
Disables raster layer tools if selected layer is not a raster enables them if it is .