@Override
  public void doTest() {
    InvalidResourceFix fix = new InvalidResourceFix();
    addHeader("resource.header", fix);

    for (short x = 0; x < data.getWidth(); x++) {
      for (short y = 0; y < data.getHeight(); y++) {
        ELandscapeType landacape = data.getLandscape(x, y);
        EResourceType resource = data.getResourceType(x, y);
        if (data.getResourceAmount(x, y) > 0 && !mayHoldResource(landacape, resource)) {
          String landscapeName = EditorLabels.getLabel("landscape." + landacape.name());
          String resourceName = Labels.getName(resource);
          ShortPoint2D p = new ShortPoint2D(x, y);
          addErrorMessage("resource.text", p, landscapeName, resourceName);
          fix.addInvalidResource(p);
        }
      }
    }
  }
 public PlaceStackTool(EMaterialType type, int count) {
   super(new StackObject(type, count));
   this.translatedName =
       String.format(
           EditorLabels.getLabel("tool.place_n"), count, Labels.getName(type, count != 1));
 }