1 19 20 package org.netbeans.spi.palette; 21 22 import java.io.IOException ; 23 import org.openide.filesystems.FileObject; 24 import org.openide.loaders.DataObjectExistsException; 25 import org.openide.loaders.ExtensionList; 26 import org.openide.loaders.MultiDataObject; 27 import org.openide.loaders.UniFileLoader; 28 29 33 class DummyItemLoader extends UniFileLoader { 34 35 static final String ITEM_EXT = "junit_palette_item"; 37 DummyItemLoader() { 38 super("org.netbeans.spi.palette.DummyItemDataObject"); 40 ExtensionList ext = new ExtensionList(); 41 ext.addExtension(ITEM_EXT); 42 setExtensions(ext); 43 } 44 45 46 protected MultiDataObject createMultiObject(FileObject primaryFile) 47 throws DataObjectExistsException, IOException 48 { 49 return new DummyItemDataObject( primaryFile, this ); 50 } 51 52 } 53 | Popular Tags |