URIResolver resolver = URIResolverPlugin.createResolver();
grammarURI = resolver.resolve(null, id, id);
}
CMDocument document = ContentModelManager.getInstance().createCMDocument(URIHelper.getURIForFilePath(grammarURI), "xsd"); //$NON-NLS-1$
if(document != null) {
List namespaceInfoList = (List) document.getProperty("http://org.eclipse.wst/cm/properties/namespaceInfo"); //$NON-NLS-1$
if(namespaceInfoList != null) {
NamespaceInfo info = (NamespaceInfo) namespaceInfoList.get(0);
if(info != null) {
if ((uriField.getText().trim().length() == 0) && (info.uri != null)) {
uriField.setText(info.uri);