Revision 45256 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/searchpanel/SearchConditionFieldController.java
SearchConditionFieldController.java | ||
---|---|---|
544 | 544 |
} |
545 | 545 |
this.ddnRelationalOperators.setEnabled(enabled); |
546 | 546 |
this.lblExtraFields.setEnabled(enabled); |
547 |
this.cboValue.setEnabled(enabled); |
|
547 | 548 |
} |
548 | 549 |
|
549 | 550 |
public String getRelationalOperator() { |
... | ... | |
671 | 672 |
try { |
672 | 673 |
FeatureAttributeDescriptor attrDescriptor = store.getDefaultFeatureType().getAttributeDescriptor(name); |
673 | 674 |
FeatureAttributeDescriptor[] attributePath = new FeatureAttributeDescriptor[]{attrDescriptor}; |
674 |
doAddAndSelect(store, store.getDefaultFeatureType().getAttributeDescriptor(name), attributePath); |
|
675 |
if (attrDescriptor==null) { |
|
676 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
|
677 |
ThreadSafeDialogsManager dialogManager = ToolsSwingLocator.getThreadSafeDialogsManager(); |
|
678 |
dialogManager.messageDialog( |
|
679 |
i18n.getTranslation("_It_is_not_supported_to_search_through_this_field")+":\n "+ name+"\n"+ |
|
680 |
i18n.getTranslation("_Field_not_found_in_this_table"), |
|
681 |
"_Warning", |
|
682 |
JOptionPane.WARNING_MESSAGE |
|
683 |
); |
|
684 |
this.cboValue.setModel(new DefaultComboBoxModel()); |
|
685 |
} else { |
|
686 |
doAddAndSelect(store, store.getDefaultFeatureType().getAttributeDescriptor(name), attributePath); |
|
687 |
} |
|
675 | 688 |
} catch (Exception ex) { |
676 | 689 |
LOGGER.warn("Not able to set single path into controller", ex); |
677 | 690 |
return -1; |
Also available in: Unified diff