1 19 20 package org.netbeans.modules.editor.completion; 21 22 import org.netbeans.spi.editor.completion.CompletionResultSet; 23 24 30 31 public abstract class CompletionSpiPackageAccessor { 32 33 private static CompletionSpiPackageAccessor INSTANCE; 34 35 public static CompletionSpiPackageAccessor get() { 36 return INSTANCE; 37 } 38 39 45 public static void register(CompletionSpiPackageAccessor accessor) { 46 if (INSTANCE != null) { 47 throw new IllegalStateException ("Already registered"); } 49 INSTANCE = accessor; 50 } 51 52 public abstract CompletionResultSet createCompletionResultSet( 53 CompletionResultSetImpl impl); 54 55 } 56 | Popular Tags |