1 19 20 package org.netbeans.modules.languages.dataobject; 21 22 import org.openide.filesystems.FileObject; 23 import org.openide.loaders.DataObjectExistsException; 24 import org.openide.loaders.MultiDataObject; 25 import org.openide.nodes.CookieSet; 26 import org.openide.nodes.Node; 27 import org.openide.text.DataEditorSupport; 28 29 import java.io.IOException ; 30 31 public class LanguagesDataObject extends MultiDataObject { 32 33 public LanguagesDataObject(FileObject pf, LanguagesDataLoader loader) throws DataObjectExistsException, IOException { 34 super(pf, loader); 35 CookieSet cookies = getCookieSet(); 36 cookies.add((Node.Cookie) DataEditorSupport.create(this, getPrimaryEntry(), cookies)); 37 } 38 39 protected Node createNodeDelegate() { 40 return new LanguagesDataNode(this); 41 } 42 43 } 44 | Popular Tags |