Revision 45527 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.swing/org.gvsig.symbology.swing.api/src/main/java/org/gvsig/app/gui/styling/AbstractTypeSymbolEditor.java
AbstractTypeSymbolEditor.java | ||
---|---|---|
99 | 99 |
package org.gvsig.app.gui.styling; |
100 | 100 |
|
101 | 101 |
import javax.swing.JPanel; |
102 |
import org.gvsig.fmap.dal.feature.Feature; |
|
102 | 103 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
103 | 104 |
|
104 | 105 |
import org.gvsig.fmap.mapcontext.rendering.symbols.CartographicSupport; |
... | ... | |
133 | 134 |
public abstract class AbstractTypeSymbolEditor implements TypeSymbolEditor { |
134 | 135 |
protected SymbolEditor owner; |
135 | 136 |
private boolean applying = false; |
136 |
protected FeatureStore featureStore; |
|
137 |
protected transient FeatureStore featureStore; |
|
138 |
private transient Feature sampleFeature; |
|
137 | 139 |
|
138 | 140 |
/** |
139 | 141 |
* Creates a new instance of this type symbol editor panel associated to |
... | ... | |
175 | 177 |
this.featureStore = store; |
176 | 178 |
} |
177 | 179 |
|
180 |
public Feature getSampleFeature() { |
|
181 |
if( this.sampleFeature == null ) { |
|
182 |
if( this.featureStore!=null ) { |
|
183 |
this.sampleFeature = this.featureStore.getSampleFeature(); |
|
184 |
} |
|
185 |
} |
|
186 |
return this.sampleFeature; |
|
187 |
} |
|
178 | 188 |
} |
179 | 189 |
|
Also available in: Unified diff