1 19 20 package org.netbeans.modules.editor.errorstripe; 21 22 import javax.swing.JComponent ; 23 import javax.swing.text.JTextComponent ; 24 import org.netbeans.editor.SideBarFactory; 25 import org.openide.ErrorManager; 26 27 28 29 33 public class AnnotationViewFactory implements SideBarFactory { 34 35 36 public AnnotationViewFactory() { 37 } 38 39 public JComponent createSideBar(JTextComponent target) { 40 long start = System.currentTimeMillis(); 41 42 AnnotationView view = new AnnotationView(target); 43 44 long end = System.currentTimeMillis(); 45 46 if (AnnotationView.TIMING_ERR.isLoggable(ErrorManager.INFORMATIONAL)) { 47 AnnotationView.TIMING_ERR.log(ErrorManager.INFORMATIONAL, "creating AnnotationView component took: " + (end - start)); 48 } 49 50 return view; 51 } 52 53 } 54 | Popular Tags |