1 19 20 package org.netbeans.modules.xml.schema.core; 21 22 import java.io.IOException ; 23 import org.netbeans.modules.xml.validation.ValidateXMLCookieImpl; 24 import org.netbeans.modules.xml.xam.Model; 25 import org.openide.ErrorManager; 26 27 32 public class SchemaValidateXMLCookie extends ValidateXMLCookieImpl { 33 private SchemaDataObject dataObject; 34 35 38 public SchemaValidateXMLCookie(SchemaDataObject dobj) { 39 dataObject = dobj; 40 } 41 42 protected Model getModel() { 43 try { 44 return dataObject.getSchemaEditorSupport().getModel(); 45 } catch (IOException ioe) { 46 ErrorManager.getDefault().notify(ioe); 47 } 48 return null; 49 } 50 } 51 | Popular Tags |