1 19 package org.netbeans.api.timers; 20 21 import org.netbeans.modules.timers.TimesCollectorPeer; 22 import org.openide.filesystems.FileObject; 23 24 28 public class TimesCollector { 29 30 private static final TimesCollector INSTANCE = new TimesCollector(); 31 32 public static TimesCollector getDefault() { 33 return INSTANCE; 34 } 35 36 37 private TimesCollector() { 38 } 39 40 public void reportTime(FileObject fo, String key, String message, long time) { 41 TimesCollectorPeer.getDefault().reportTime(fo, key, message, time); 42 } 43 44 public void reportReference( FileObject fo, String key, String message, Object object ) { 45 TimesCollectorPeer.getDefault().reportReference( fo, key, message, object); 46 } 47 48 public void select(FileObject fo) { 49 TimesCollectorPeer.getDefault().select(fo); 50 } 51 52 } 53 | Popular Tags |