1 19 20 package org.netbeans.modules.pdf; 21 22 import java.io.File ; 23 24 import org.openide.filesystems.FileObject; 25 import org.openide.filesystems.FileUtil; 26 import org.openide.loaders.*; 27 import org.openide.nodes.CookieSet; 28 import org.openide.nodes.Node; 29 import org.openide.util.HelpCtx; 30 31 36 public class PDFDataObject extends MultiDataObject { 37 38 private static final long serialVersionUID = -1073885636989804140L; 39 40 public PDFDataObject (FileObject pf, MultiFileLoader loader) throws DataObjectExistsException { 41 super (pf, loader); 42 CookieSet cookies = getCookieSet (); 43 File f = FileUtil.toFile (pf); 45 if (f != null) 46 cookies.add (new PDFOpenSupport (f)); 47 } 48 49 public HelpCtx getHelpCtx () { 50 return new HelpCtx (PDFDataObject.class); 51 } 52 53 protected Node createNodeDelegate () { 54 return new PDFDataNode (this); 55 } 56 57 } 58 | Popular Tags |