1 19 package org.netbeans.modules.xml.tax.cookies; 20 21 import java.io.IOException ; 22 import org.xml.sax.*; 23 24 import org.openide.*; 25 26 import org.netbeans.tax.*; 27 import org.netbeans.modules.xml.core.sync.*; 28 import org.netbeans.modules.xml.tax.cookies.TreeEditorCookieImpl; 29 import org.netbeans.modules.xml.tax.cookies.TreeRepresentation; 30 31 37 public class XMLTreeRepresentation extends TreeRepresentation { 38 39 40 public XMLTreeRepresentation(TreeEditorCookieImpl editor, Synchronizator sync) { 41 super(editor, sync); 42 } 43 44 47 public void update(Object change) { 48 49 if (change instanceof InputSource) { 50 InputSource update = (InputSource) change; 51 editor.updateTree(update); 52 } else { 53 throw new RuntimeException ("TreeRepresentation does not support: " + change.getClass()); } 55 } 56 57 58 61 public boolean isModified() { 62 return false; 63 } 64 65 } 66 | Popular Tags |