KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > ruby > rhtml > RhtmlDataLoader


1 package org.netbeans.modules.ruby.rhtml;
2
3 import java.io.IOException JavaDoc;
4 import org.openide.filesystems.FileObject;
5 import org.openide.loaders.DataObjectExistsException;
6 import org.openide.loaders.MultiDataObject;
7 import org.openide.loaders.UniFileLoader;
8 import org.openide.util.NbBundle;
9
10 public class RhtmlDataLoader extends UniFileLoader {
11     
12     private static final long serialVersionUID = 1L;
13     
14     public RhtmlDataLoader() {
15         super("org.netbeans.modules.ruby.rhtml.RhtmlDataObject");
16     }
17     
18     protected String JavaDoc defaultDisplayName() {
19         return NbBundle.getMessage(RhtmlDataLoader.class, "LBL_Rhtml_loader_name");
20     }
21     
22     protected void initialize() {
23         super.initialize();
24         getExtensions().addMimeType(RhtmlKit.RHTML_MIME_TYPE);
25     }
26     
27     protected MultiDataObject createMultiObject(FileObject primaryFile) throws DataObjectExistsException, IOException JavaDoc {
28         return new RhtmlDataObject(primaryFile, this);
29     }
30     
31     protected String JavaDoc actionsContext() {
32         return "Loaders/" + RhtmlKit.RHTML_MIME_TYPE + "/Actions";
33     }
34     
35 }
36
Popular Tags