Revision 44630
trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/java/org/gvsig/expressionevaluator/swing/impl/DefaultExpressionPickerController.java | ||
---|---|---|
147 | 147 |
Expression theValue = this.get(); |
148 | 148 |
|
149 | 149 |
DefaultJExpressionBuilder panel = new DefaultJExpressionBuilder(this.manager, this.config); |
150 |
panel.setPreviewSymbolTable(this.getPreviewSymbolTable()); |
|
150 | 151 |
panel.setExpression(theValue); |
151 | 152 |
|
152 | 153 |
WindowManager_v2 windowManager = (WindowManager_v2) ToolsSwingLocator.getWindowManager(); |
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/expressionevaluator/DefaultFeatureStoreElement2.java | ||
---|---|---|
243 | 243 |
if( StringUtils.equalsIgnoreCase(DEFAULT_ELEMENT_NAME, this.store.getName()) ) { |
244 | 244 |
this.setName(this.store.getName()); |
245 | 245 |
} |
246 |
if (this.getConfig().getPreviewSymbolTable()==null) { |
|
246 | 247 |
Feature sampleFeature = this.store.getSampleFeature(); |
247 |
if( sampleFeature!=null ) { |
|
248 |
FeatureSymbolTable featureSymbolTable = DALLocator.getDataManager().createFeatureSymbolTable(); |
|
249 |
featureSymbolTable.setFeature(sampleFeature); |
|
250 |
this.getConfig().setPreviewSymbolTable(featureSymbolTable.createParent()); |
|
251 |
} |
|
248 |
if( sampleFeature!=null ) { |
|
249 |
FeatureSymbolTable featureSymbolTable = DALLocator.getDataManager().createFeatureSymbolTable(); |
|
250 |
featureSymbolTable.setFeature(sampleFeature); |
|
251 |
this.getConfig().setPreviewSymbolTable(featureSymbolTable.createParent()); |
|
252 |
} |
|
253 |
} |
|
252 | 254 |
this.treemodel = new AdvancedAttributeSelectionTreeModel(this.store, Search.ALL_FILTER); |
253 | 255 |
} |
254 | 256 |
} |
Also available in: Unified diff