1 19 package org.netbeans.modules.java.codegen; 20 21 import org.openide.src.*; 22 import org.netbeans.modules.java.bridge.ImportElement; 23 import org.netbeans.modules.java.bridge.Binding; 24 25 30 class ImportB extends ElementBinding implements Binding.Import { 31 public ImportB(ImportElement b, SourceText s) { 32 super(b, s); 33 } 34 35 protected Element cloneElement() { 36 return null; 37 } 38 39 public void changeImport(final org.openide.src.Import i) throws SourceException { 40 if (!source.isGeneratorEnabled()) 41 return; 42 source.runAtomic(null, new ExceptionRunnable() { 43 public void run() throws Exception { 44 CodeGenerator.fillTextBounds(wholeBounds, i.toString() + ";"); } 46 }); 47 } 48 49 public void updateFrom(Binding b) { 50 } 51 } 52 | Popular Tags |