Search in sources :

Example 1 with XSDRedefineImpl

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);
}
Also used : XSDRedefine(org.eclipse.xsd.XSDRedefine) XSDRedefineImpl(org.eclipse.xsd.impl.XSDRedefineImpl) Element(org.w3c.dom.Element) XSDInclude(org.eclipse.xsd.XSDInclude)

Aggregations

XSDInclude (org.eclipse.xsd.XSDInclude)1 XSDRedefine (org.eclipse.xsd.XSDRedefine)1 XSDRedefineImpl (org.eclipse.xsd.impl.XSDRedefineImpl)1 Element (org.w3c.dom.Element)1