01: package testRename;
02:
03: import java.io.IOException;
04: import org.openide.filesystems.FileObject;
05: import org.openide.loaders.DataObjectExistsException;
06: import org.openide.loaders.MultiDataObject;
07: import org.openide.nodes.CookieSet;
08: import org.openide.nodes.Node;
09: import org.openide.text.DataEditorSupport;
10:
11: public class WhereUsedDataObject extends MultiDataObject {
12:
13: public WhereUsedDataObject(FileObject pf, WhereUsedDataLoader loader)
14: throws DataObjectExistsException, IOException {
15: super (pf, loader);
16: CookieSet cookies = getCookieSet();
17: cookies.add((Node.Cookie) DataEditorSupport.create(this ,
18: getPrimaryEntry(), cookies));
19: }
20:
21: protected Node createNodeDelegate() {
22: return new WhereUsedDataNode(this);
23: }
24:
25: }
|