1 19 20 package org.netbeans.modules.tasklist.bugs.issues; 21 22 import org.openide.cookies.OpenCookie; 23 import org.openide.filesystems.FileObject; 24 import org.openide.loaders.DataObjectExistsException; 25 import org.openide.loaders.MultiDataObject; 26 import org.openide.nodes.CookieSet; 27 import org.openide.nodes.Node; 28 29 30 36 public class IssuesDataObject extends MultiDataObject implements OpenCookie { 37 38 private static final long serialVersionUID = 1; 39 40 public IssuesDataObject(FileObject pf, IssuesLoader loader) throws DataObjectExistsException { 41 super(pf, loader); 42 CookieSet cookies = getCookieSet(); 43 cookies.add(this); } 45 46 protected Node createNodeDelegate() { 47 return new IssuesDataNode(this); 48 } 49 50 52 53 public void open() { 54 IssuesView view = new IssuesView(getPrimaryEntry().getFile()); 55 view.open(); 56 } 57 } 58 | Popular Tags |