Revision 1691 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/VectorialAdapter.java

View differences:

VectorialAdapter.java
59 59
 * Clase padre de los adaptadores de los drivers. De momento mantiene solo el
60 60
 * ?ndice creado sobre la capa
61 61
 */
62
public abstract class VectorialAdapter implements ReadableVectorial, Indexable {
63
	private VectorialDriver driver;
62
public abstract class VectorialAdapter implements ReadableVectorial {
63
	protected VectorialDriver driver;
64 64
	private ShapeInfo shapeInfo;
65 65

  
66 66
	/**
......
159 159
		this.shapeInfo = shapeInfo;
160 160
	}
161 161

  
162
	
162 163
	/**
163 164
	 * Por defecto devuelve null, y se le pone el icono por defecto.
164 165
	 * Si el driver reescribe este m?todo, se usar? este icono en el TOC.
......
172 173
	
173 174
	public DriverAttributes getDriverAttributes()
174 175
	{
175
	    return driver.getDriverAttributes();
176
	    if (driver != null)
177
	        return driver.getDriverAttributes();
178
	    return null;
176 179
	}
177 180
}

Also available in: Unified diff