1 19 package org.netbeans.modules.xml.schema.completion.util; 20 21 import org.netbeans.modules.xml.schema.completion.util.CatalogModelProvider; 22 import org.netbeans.modules.xml.xam.ModelSource; 23 import org.netbeans.modules.xml.xam.locator.CatalogModel; 24 import org.netbeans.modules.xml.xam.locator.CatalogModelException; 25 import org.openide.filesystems.FileObject; 26 27 32 public class TestCatalogModelProvider extends CatalogModelProvider { 33 34 private TestCatalogModel catalogModel; 35 36 public TestCatalogModelProvider() { 37 catalogModel = TestCatalogModel.getDefault(); 38 } 39 40 CatalogModel getCatalogModel() { 41 return catalogModel; 42 } 43 44 ModelSource getModelSource(FileObject fo, boolean editable) throws CatalogModelException { 45 return catalogModel.createModelSource(fo, editable); 46 } 47 48 } 49 | Popular Tags |