1 19 20 package org.netbeans.api.languages; 21 22 import java.util.Collection ; 23 import java.util.List ; 24 import org.netbeans.modules.languages.features.DatabaseManagerImpl; 25 import org.openide.text.Line; 26 27 28 33 public abstract class DatabaseManager { 34 35 public static String FOLDER = "Folder"; 36 public static String PROJECT = "Project"; 37 38 private static DatabaseManager manager; 39 40 public static DatabaseManager getDefault () { 41 if (manager == null) 42 manager = new DatabaseManagerImpl (); 43 return manager; 44 } 45 46 public abstract List <Line.Part> get (ASTPath path, String id, boolean recursive); 47 48 public abstract List <Line.Part> get (Object context, String id); 49 50 public abstract Collection <String > getIds (ASTPath path, boolean recursive); 51 52 public abstract Collection <String > getIds (Object context); 53 } 54 55 | Popular Tags |