1 31 32 package org.antlr.xjlib.appkit.app; 33 34 import org.antlr.xjlib.appkit.document.XJDocument; 35 import org.antlr.xjlib.appkit.frame.XJWindow; 36 37 import java.util.List ; 38 39 public interface XJApplicationInterface { 40 41 String getApplicationName(); 42 43 XJPreferences getPreferences(); 44 45 boolean openDocument(); 46 boolean openDocuments(List <String > files); 47 boolean openDocument(String file); 48 boolean openLastUsedDocument(); 49 50 XJDocument newDocumentOfData(Class dataClass); 51 XJDocument newDocument(); 52 void addDocument(XJDocument document); 53 void removeDocument(XJDocument document); 54 55 XJDocument getActiveDocument(); 56 XJDocument getDocumentForPath(String path); 57 List getDocumentExtensions(); 58 List <XJDocument> getDocuments(); 59 60 void addWindow(XJWindow window); 61 void removeWindow(XJWindow window); 62 63 XJWindow getActiveWindow(); 64 List <XJWindow> getWindows(); 65 List <XJWindow> getWindowsInWindowMenu(); 66 67 boolean supportsPersistence(); 68 69 boolean hasPreferencesMenuItem(); 70 boolean useDesktopMode(); 71 72 void addRecentFile(String path); 73 void removeRecentFile(String file); 74 void clearRecentFiles(); 75 List recentFiles(); 76 77 void performQuit(); 78 79 void displayPrefs(); 80 void displayAbout(); 81 void displayHelp(); 82 } 83 | Popular Tags |