1 19 package org.netbeans.modules.css; 20 21 import java.lang.ref.Reference ; 22 import java.lang.ref.SoftReference ; 23 import java.io.IOException ; 24 import java.net.URL ; 25 import java.util.*; 26 27 import org.openide.filesystems.*; 28 import org.openide.loaders.*; 29 import org.openide.text.*; 30 import org.openide.cookies.*; 31 import org.openide.util.*; 32 import org.openide.util.actions.*; 33 import org.openide.nodes.*; 34 35 import org.netbeans.modules.css.text.*; 36 37 import org.xml.sax.SAXException ; 38 39 47 public final class CSSObject extends MultiDataObject { 48 private static final long serialVersionUID = -3041598815183192198L; 49 public static final String MIME_TYPE = "text/css"; 51 52 public CSSObject(final FileObject obj,final UniFileLoader loader) throws DataObjectExistsException { 53 super (obj, loader); 54 55 CookieSet set = getCookieSet(); 56 set.add (new CSSEditorSupport(getPrimaryEntry())); 57 58 getPrimaryFile().addFileChangeListener (FileUtil.weakFileChangeListener(new FileListener (), getPrimaryFile())); 59 } 60 61 71 protected Node createNodeDelegate () { 72 return new CSSNode (this); 73 } 74 75 public HelpCtx getHelpCtx() { 76 return new HelpCtx (CSSObject.class); 77 } 78 79 class FileListener extends FileChangeAdapter { 82 83 86 public void fileChanged (FileEvent fe) { 87 88 } 89 90 } 92 } 93 | Popular Tags |