KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > piaget > user > UserDataLoader


1 package org.netbeans.modules.piaget.user;
2
3
4 import org.openide.filesystems.FileObject;
5 import org.openide.loaders.DataObjectExistsException;
6 import org.openide.loaders.ExtensionList;
7 import org.openide.loaders.MultiDataObject;
8 import org.openide.loaders.UniFileLoader;
9 import org.openide.util.NbBundle;
10
11
12
13 public class UserDataLoader extends UniFileLoader {
14     
15     public final static String JavaDoc EXTENSION = "user";
16     
17     public UserDataLoader() {
18         super("org.netbeans.modules.piaget.UserDataObject");
19         ExtensionList list = new ExtensionList();
20         list.addExtension(EXTENSION);
21         setExtensions(list);
22         //setDisplayName(NbBundle.getMessage(PovDataLoader.class, "TYPE_Povray"));
23
setDisplayName("user file, freshly received");
24     }
25     
26     protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, java.io.IOException JavaDoc {
27         return new UserDataObject(primaryFile, this);
28     }
29 }
30
31
Popular Tags