1 2 3 package org.netbeans.modules.piaget.user; 4 5 import org.openide.loaders.MultiDataObject; 6 import org.openide.filesystems.FileObject; 7 import org.openide.loaders.MultiFileLoader; 8 import org.openide.loaders.DataObjectExistsException; 9 import org.openide.nodes.Node; 10 import org.netbeans.modules.piaget.unzip.Unzipper; 11 12 public class UserDataObject extends MultiDataObject { 13 14 UserDataNode node; 15 16 public UserDataObject(FileObject file, MultiFileLoader ldr) throws DataObjectExistsException { 17 super(file, ldr); 18 } 19 20 public Node createNodeDelegate() { 21 node = new UserDataNode(this); 22 return (UserDataNode)node; 23 } 24 25 public void unzip(){ 26 String path=node.getPath(); 27 Unzipper.unzipUserFile(path); 28 } 29 } 30 31 | Popular Tags |