1 19 package org.netbeans.modules.xml.tax.cookies; 20 21 import java.io.IOException ; 22 import java.beans.PropertyChangeListener ; 23 24 import org.openide.nodes.Node; 25 import org.openide.util.Task; 26 import org.openide.loaders.XMLDataObject; 27 28 import org.netbeans.tax.TreeDocumentRoot; 29 import org.netbeans.tax.TreeException; 30 31 36 public interface TreeEditorCookie extends Node.Cookie { 37 38 39 public static final String PROP_DOCUMENT_ROOT = "documentRoot"; 41 42 public static final String PROP_STATUS = "status"; 44 45 48 public static final int STATUS_NOT = XMLDataObject.STATUS_NOT; 49 50 53 public static final int STATUS_OK = XMLDataObject.STATUS_OK; 54 55 58 public static final int STATUS_WARNING = XMLDataObject.STATUS_WARNING; 59 60 63 public static final int STATUS_ERROR = XMLDataObject.STATUS_ERROR; 64 65 66 69 public TreeDocumentRoot openDocumentRoot () throws IOException , TreeException; 70 71 74 public Task prepareDocumentRoot (); 75 76 79 public TreeDocumentRoot getDocumentRoot (); 80 81 82 84 public int getStatus(); 85 86 87 89 public void addPropertyChangeListener (PropertyChangeListener listener); 90 91 93 public void removePropertyChangeListener (PropertyChangeListener listener); 94 95 } 96 | Popular Tags |