package org.eclipse.scanning.points;

import java.util.Iterator;

import org.eclipse.scanning.api.points.AbstractGenerator;
import org.eclipse.scanning.api.points.Point;
import org.eclipse.scanning.api.points.models.GridModel;

class GridGenerator extends AbstractGenerator<GridModel,Point> {
	
	GridGenerator() {
		setLabel("Grid");
		setDescription("Creates a grid scan (a scan of x and y).\nThe scan supports bidirectional or 'snake' mode.");
		setIconPath("icons/scanner--grid.png"); // This icon exists in the rendering bundle 
	}

	@Override
	public Iterator<Point> iterator() {
		return new GridIterator(this);
	}

}

@@ -530,16 +530,138 @@
 le %0A%09%7D%0A%0A
+%09@Override%0A%09protected boolean isValidModel(GridModel model) %7B%0A%09%09return 0 %3C model.getRows() && 0 %3C model.getColumns();%0A%09%7D%0A%0A
 %09@Overri

Implement isValidModel() for GridGenerator