1 19 20 package org.netbeans.modules.mdrxml.util; 21 22 26 import javax.jmi.reflect.RefBaseObject; 27 import org.netbeans.api.looks.*; 28 import org.netbeans.spi.looks.*; 29 30 public class NodeEventTranslator extends EventTranslator { 31 32 private XMLModelEventTranslator translator; 33 private RefBaseObject key; 34 35 36 public NodeEventTranslator (XMLModelEventTranslator translator, RefBaseObject key, Look.NodeSubstitute substitute) { 37 super (substitute); 38 this.translator = translator; 39 this.key = key; 40 this.translator.addNodeSubstitute (key,this); 41 } 42 43 47 protected void unregister() { 48 this.translator.removeNodeSubstitute (this.key,this); 49 } 50 51 52 } 53 | Popular Tags |