use of org.eclipse.xsd.XSDProcessContents in project webtools.sourceediting by eclipse.
the class XSDAnyElementContentsSection method refresh.
/*
* @see org.eclipse.wst.common.ui.properties.internal.provisional.view.ITabbedPropertySection#refresh()
*/
public void refresh() {
setListenerEnabled(false);
// $NON-NLS-1$
namespaceCombo.setText("");
// $NON-NLS-1$
processContentsCombo.setText("");
if (input != null) {
if (input instanceof XSDWildcard) {
XSDWildcard wildcard = (XSDWildcard) input;
if (wildcard.isSetLexicalNamespaceConstraint()) {
namespaceCombo.setText(wildcard.getStringLexicalNamespaceConstraint());
} else {
namespaceCombo.setText("");
}
if (wildcard.isSetProcessContents()) {
XSDProcessContents pc = wildcard.getProcessContents();
processContentsCombo.setText(pc.getName());
}
if (wildcard.eContainer() instanceof XSDParticle) {
minCombo.setEnabled(!isReadOnly);
maxCombo.setEnabled(!isReadOnly);
} else {
minCombo.setEnabled(false);
maxCombo.setEnabled(false);
}
}
}
refreshMinMax();
setListenerEnabled(true);
}
Aggregations