1 19 20 package org.netbeans.modules.subversion.ui.blame; 21 22 import javax.swing.text.JTextComponent ; 23 import org.netbeans.modules.editor.errorstripe.privatespi.MarkProvider; 24 import org.netbeans.modules.editor.errorstripe.privatespi.MarkProviderCreator; 25 26 31 public final class AnnotationMarkInstaller implements MarkProviderCreator { 32 33 private static final Object PROVIDER_KEY = new Object (); 34 35 public MarkProvider createMarkProvider(JTextComponent pane) { 36 AnnotationMarkProvider amp = new AnnotationMarkProvider(); 37 pane.putClientProperty(PROVIDER_KEY, amp); 38 return amp; 39 } 40 41 public static AnnotationMarkProvider getMarkProvider(JTextComponent pane) { 42 return (AnnotationMarkProvider) pane.getClientProperty(PROVIDER_KEY); 43 } 44 } 45 | Popular Tags |