package com.vzome.core.editor;

import com.vzome.core.math.symmetry.IcosahedralSymmetry;

public class IcosahedralToolFactory extends AbstractToolFactory implements ToolFactory
{
	private final IcosahedralSymmetry symmetry;

	public IcosahedralToolFactory( EditorModel model, UndoableEdit.Context context, IcosahedralSymmetry symmetry )
	{
		super( model, context );
		this .symmetry = symmetry;
	}

	@Override
	protected boolean countsAreValid( int total, int balls, int struts, int panels )
	{
		return ( total == 1 && balls == 1 );
	}

	@Override
	public Tool createToolInternal( int index )
	{
		return new SymmetryTool( "icosahedral." + index, symmetry, getSelection(), getModel(), null );
	}

	@Override
	protected boolean bindParameters(Selection selection, SymmetrySystem symmetry) {
		// TODO Auto-generated method stub
		return false;
	}
}
@@ -81,16 +81,55 @@
 ymmetry;
+%0Aimport com.vzome.core.model.Connector;
 %0A%0Apublic
@@ -828,61 +828,99 @@
 ) %7B%0A
-%09%09// TODO Auto-generated method stub%0A%09%09return false
+        return selection.size() == 1 && selection.iterator().next() instanceof Connector
 ;%0A%09%7D%0A%7D
+%0A

Fix IcosahedralToolFactory not being enabled.