use of org.eclipse.xsd.impl.XSDRedefineImpl in project webtools.sourceediting by eclipse.
the class SchemaLocationSection method refresh.
/*
* @see org.eclipse.wst.common.ui.properties.internal.provisional.view.ITabbedPropertySection#refresh()
*/
public void refresh() {
setListenerEnabled(false);
Element element = null;
if (input instanceof XSDInclude) {
element = ((XSDIncludeImpl) input).getElement();
} else if (input instanceof XSDRedefine) {
element = ((XSDRedefineImpl) input).getElement();
}
if (element != null) {
// $NON-NLS-1$
String location = "";
// $NON-NLS-1$
location = element.getAttribute("schemaLocation");
if (location == null) {
// $NON-NLS-1$
location = "";
}
schemaLocationText.setText(location);
}
setListenerEnabled(true);
}
Aggregations