Java Doc for GlobalModel.java in  » IDE » DrJava » edu » rice » cs » drjava » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » IDE » DrJava » edu.rice.cs.drjava.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


edu.rice.cs.drjava.model.GlobalModel

All known Subclasses:   edu.rice.cs.drjava.model.DummyGlobalModel,
GlobalModel
public interface GlobalModel extends ILoadDocuments(Code)
Handles the bulk of DrJava's program logic. The UI components interface with the GlobalModel through its public methods, and GlobalModel responds via the GlobalModelListener interface. This removes the dependency on the UI for the logical flow of the program's features. With the current implementation, we can finally test the compile an unit testing functionality of DrJava, along with many other things. An ongoing refactoring effort will be moving many GlobalModel functions into more specific sub-interfaces for particular behaviors:
See Also:   DefaultGlobalModel
See Also:   ILoadDocuments
See Also:   CompilerModel
See Also:   JUnitModel
See Also:   JavadocModel
version:
   $Id: GlobalModel.java 4255 2007-08-28 19:17:37Z mgricken $


Field Summary
final public static  Iterable<File>RUNTIME_CLASS_PATH
    


Method Summary
public  voidaddAuxiliaryFile(OpenDefinitionsDocument doc)
     Adds a document to the list of auxiliary files.
public  voidaddListener(GlobalModelListener listener)
     Add a listener to this global model.
public  voidaddToBrowserHistory()
     Add the current location to the browser history.
public  voidcleanBuildDirectory()
     Cleans the build directory.
public  voidclearHistory()
     Clears the interactions history.
public  booleancloseAllFiles()
     Attempts to close all open documents.
public  booleancloseFile(OpenDefinitionsDocument doc)
     Closes an open definitions document, prompting to save if the document has been changed.
public  booleancloseFileWithoutPrompt(OpenDefinitionsDocument doc)
     Closes an open definitions document, without prompting to save if the document has been changed.
public  voidcloseProject(boolean qutting)
     Performs any needed operations on the model before closing the project and its files.
public  voidconfigNewProject()
     Configures a new project (created by createNewProject) and saves it to disk.
public  RegionManager<MovingDocumentRegion>createFindResultsManager()
     new manager for find result regions.
public  voidcreateNewProject(File projFile)
     Creates a new project with specified project file and default values for other properties.
public  voiddisposeFindResultsManager(RegionManager<MovingDocumentRegion> rm)
     Dispose a manager for find result regions.
public  FilefindFileInPaths(String fileName, Iterable<File> paths)
     Searches for a file with the given name on the provided paths.
public  StringfixPathForNavigator(String path)
     Formats a string pathname for use in the document navigator.
public  voidforceQuit()
     Halts the program immediately.
public  StringgetAuxiliaryBinTitle()
    
public  RegionManager<DocumentRegion>getBookmarkManager()
     manager for bookmark regions.
public  RegionManager<Breakpoint>getBreakpointManager()
     manager for breakpoint regions.
public  RegionManager<DocumentRegion>getBrowserHistoryManager()
     manager for browser history regions.
public  FilegetBuildDirectory()
     the directory that the class files should be stored after compilation.
public  List<File>getClassFiles()
     a list of class files.
public  Iterable<File>getClassPath()
     Get the class path to be used in all class-related operations.
public  CompilerModelgetCompilerModel()
     Gets the CompilerModel, which provides all methods relating to compilers.
public  ConsoleDocumentgetConsoleDocument()
     Gets the console document.
public  FilegetCreateJarFile()
     Return the create jar file for the project.
public  intgetCreateJarFlags()
     Return the create jar file for the project.
public  intgetDebugPort()
     Returns an available port number to use for debugging the interactions JVM.
public  DebuggergetDebugger()
     Gets the Debugger, which interfaces with the integrated debugger.
public  intgetDocumentCount()
    
public  OpenDefinitionsDocumentgetDocumentForFile(File file)
     Returns the OpenDefinitionsDocument for the specified File, opening a new copy if one is not already open.
public  DocumentIteratorgetDocumentIterator()
     Gets a DocumentIterator to allow navigating through open swing Documents.
public  IDocumentNavigator<OpenDefinitionsDocument>getDocumentNavigator()
     Gets the DocumentNavigator, which controls the document view.
public  DefinitionsEditorKitgetEditorKit()
     Fetches the javax.swing.text.EditorKit implementation for use in the definitions pane.
public  StringgetExternalBinTitle()
    
public  Iterable<File>getExtraClassPath()
     Returns only the project's extra classpaths.
public  List<RegionManager<MovingDocumentRegion>>getFindResultsManagers()
     managers for find result regions.
public  StringgetHistoryAsString()
     Returns the entire history as a String.
public  StringgetHistoryAsStringWithSemicolons()
     Returns the entire history as a String with semicolons as needed.
public  Iterable<File>getInteractionsClassPath()
     Returns the current classpath in use by the Interpreter JVM.
public  InteractionsDocumentgetInteractionsDocument()
     Gets the (toolkit-independent) interactions document.
public  DefaultInteractionsModelgetInteractionsModel()
     Returns the interactions model.
public  JUnitModelgetJUnitModel()
     Gets the JUnitModel, which provides all methods relating to JUnit testing.
public  JavadocModelgetJavadocModel()
     Gets the JavadocModel, which provides all methods relating to Javadoc.
public  FilegetMainClass()
     Return the main file for the project If not in project mode, returns null.
public  FilegetMasterWorkingDirectory()
     the working directory for the Master JVM.
public  List<OpenDefinitionsDocument>getNonProjectDocuments()
     Returns a list of OpenDefinitionsDocuments that do not belong to the currently active project.
If no project is active, all documents are returned.
public  intgetNumCompErrors()
     Returns the number of compiler errors produced by the last compilation.
public  OpenDefinitionsDocumentgetODDForDocument(AbstractDocumentInterface doc)
    
public  List<OpenDefinitionsDocument>getOpenDefinitionsDocuments()
     Returns a collection of all documents currently open for editing.
public  PageFormatgetPageFormat()
    
public  List<OpenDefinitionsDocument>getProjectDocuments()
     Teturns a list of OpenDefinitionsDocuments that do belong to the currently active project.
If no project is active, no documents are returned.
public  FilegetProjectFile()
     the file that points to the current project file.
public  File[]getProjectFiles()
     the directory that the class files should be stored after compilation.
public  FilegetProjectRoot()
     the source root for the project.
public  StringgetSourceBinTitle()
    
public  FilegetSourceFile(String fileName)
     Searches for a file with the given name on the current source roots and the augmented classpath.
public  Iterable<File>getSourceRootSet()
     Gets a list of all sourceRoots for the open definitions documents, without duplicates.
public  InteractionsDJDocumentgetSwingConsoleDocument()
     TODO: remove this swing dependency.
public  InteractionsDJDocumentgetSwingInteractionsDocument()
     TODO: remove this swing dependency.
public  FilegetWorkingDirectory()
     the working directory for the Slave JVM (only applied to project mode).
public  booleanhasModifiedDocuments()
     Checks if any open definitions documents have been modified since last being saved.
public  booleanhasModifiedDocuments(List<OpenDefinitionsDocument> lod)
     Checks if any of the given documents have been modified since last being saved.
public  booleanhasOutOfSyncDocuments()
     true iff no open document is out of sync with its primary class file.
public  booleanhasOutOfSyncDocuments(List<OpenDefinitionsDocument> lod)
     true iff no document in given list is out of sync with its primary class file.
public  booleanhasUntitledDocuments()
     Checks if any open definitions documents are untitled.
public  booleaninProject(File f)
     Returns true the given file is in the current project file.
public  booleaninProjectPath(OpenDefinitionsDocument doc)
     A file is in the project if the source root is the same as the project root.
public  voidinterpretCurrentInteraction()
     Interprets the current given text at the prompt in the interactions pane.
public  booleanisProjectActive()
     true if the model has a project open, false otherwise.
public  booleanisProjectChanged()
    
public  voidloadHistory(FileOpenSelector selector)
     Interprets file selected in the FileOpenSelector.
public  InteractionsScriptModelloadHistoryAsScript(FileOpenSelector selector)
     Loads the history/histories from the given selector.
public  OpenDefinitionsDocumentnewFile()
     Creates a new document in the definitions pane and adds it to the list of open documents.
public  OpenDefinitionsDocumentnewTestCase(String name, boolean makeSetUp, boolean makeTearDown)
     Creates a new junit test case.
public  voidopenFolder(File dir, boolean rec)
    
public  voidopenProject(File file)
     Parses out the given project file, sets up the state and other configurations such as the Navigator and the classpath, and returns an array of files to open.
public  voidprintDebugMessage(String s)
     Called when the debugger wants to print a message.
public  voidquit()
     Exits the program.
public  voidrefreshActiveDocument()
     Re-runs the global listeners on the active document.
public  voidreloadProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info)
     Reloads a project without writing to disk.
public  voidremoveAuxiliaryFile(OpenDefinitionsDocument doc)
     Removes a document from the list of auxiliary files.
public  voidremoveListener(GlobalModelListener listener)
     Remove a listener from this global model.
public  voidresetConsole()
     Resets the console.
public  voidresetInteractions(File wd)
     Clears and resets the interactions pane in the specified working directory, provided that the operation has some effect.
public  voidresetInteractions(File wd, boolean forceReset)
     Clears and resets the interactions pane in the specified working directory.
public  voidsaveAllFiles(FileSaveSelector com)
     Saves all open documents, prompting when necessary.
public  voidsaveHistory(FileSaveSelector selector)
    
public  voidsaveHistory(FileSaveSelector selector, String editedVersion)
     Saves the edited version of the current history to a file
Parameters:
  selector - File to save to
Parameters:
  editedVersion - Edited verison of the history which will be saved to file instead of the lines saved in the history.
public  voidsaveProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info)
    
public  voidsetBuildDirectory(File f)
     Sets the current build directory.
public  voidsetCreateJarFile(File f)
     Sets the create jar file of the project.
public  voidsetCreateJarFlags(int f)
     Sets the create jar flags of the project.
public  voidsetDocumentNavigator(IDocumentNavigator<OpenDefinitionsDocument> newnav)
    
public  voidsetExtraClassPath(Iterable<File> cp)
     Sets the set of classpath entries to use as the projects set of classpath entries.
public  voidsetMainClass(File f)
     Sets the main file of the project.
public  voidsetNumCompErrors(int num)
     Sets the number of compiler errors produced by the last compilation.
public  voidsetPageFormat(PageFormat format)
    
public  voidsetProjectChanged(boolean changed)
     Notifies the project state that the project has been changed.
public  voidsetProjectFile(File f)
     Sets project file to specifed value; used in "Save Project As ..." command in MainFrame.
public  voidsetProjectRoot(File f)
     Sets the source root for the project.
public  voidsetWorkingDirectory(File f)
     Sets the working directory for the Slave JVM (only applies to project mode).
public  voidsystemErrPrint(String s)
     Prints System.err to the DrJava console.
public  voidsystemInEcho(String s)
    
public  voidsystemOutPrint(String s)
     Prints System.out to the DrJava console.
public  voidwaitForInterpreter()
     Blocks until the interpreter has registered.

Field Detail
RUNTIME_CLASS_PATH
final public static Iterable<File> RUNTIME_CLASS_PATH(Code)





Method Detail
addAuxiliaryFile
public void addAuxiliaryFile(OpenDefinitionsDocument doc)(Code)
Adds a document to the list of auxiliary files.



addListener
public void addListener(GlobalModelListener listener)(Code)
Add a listener to this global model.
Parameters:
  listener - a listener that reacts on events generated by the GlobalModel



addToBrowserHistory
public void addToBrowserHistory()(Code)
Add the current location to the browser history.



cleanBuildDirectory
public void cleanBuildDirectory()(Code)
Cleans the build directory.



clearHistory
public void clearHistory()(Code)
Clears the interactions history.



closeAllFiles
public boolean closeAllFiles()(Code)
Attempts to close all open documents. true if all documents were closed



closeFile
public boolean closeFile(OpenDefinitionsDocument doc)(Code)
Closes an open definitions document, prompting to save if the document has been changed. Returns whether the file was successfully closed. true if the document was closed



closeFileWithoutPrompt
public boolean closeFileWithoutPrompt(OpenDefinitionsDocument doc)(Code)
Closes an open definitions document, without prompting to save if the document has been changed. Returns whether the file was successfully closed. true if the document was closed



closeProject
public void closeProject(boolean qutting)(Code)
Performs any needed operations on the model before closing the project and its files. This is not responsible for actually closing the files since that is handled in MainFrame._closeProject()



configNewProject
public void configNewProject() throws IOException(Code)
Configures a new project (created by createNewProject) and saves it to disk.



createFindResultsManager
public RegionManager<MovingDocumentRegion> createFindResultsManager()(Code)
new manager for find result regions.



createNewProject
public void createNewProject(File projFile)(Code)
Creates a new project with specified project file and default values for other properties.
Parameters:
  projFile - the new project file (which does not yet exist in the file system).



disposeFindResultsManager
public void disposeFindResultsManager(RegionManager<MovingDocumentRegion> rm)(Code)
Dispose a manager for find result regions.



findFileInPaths
public File findFileInPaths(String fileName, Iterable<File> paths)(Code)
Searches for a file with the given name on the provided paths. Returns null if the file is not found.
Parameters:
  fileName - Name of the source file to look for
Parameters:
  paths - An array of directories to search



fixPathForNavigator
public String fixPathForNavigator(String path) throws IOException(Code)
Formats a string pathname for use in the document navigator.



forceQuit
public void forceQuit()(Code)
Halts the program immediately.



getAuxiliaryBinTitle
public String getAuxiliaryBinTitle()(Code)
Gives the title of the aux files bin for the navigator The text used for the aux files bin in the tree navigator



getBookmarkManager
public RegionManager<DocumentRegion> getBookmarkManager()(Code)
manager for bookmark regions.



getBreakpointManager
public RegionManager<Breakpoint> getBreakpointManager()(Code)
manager for breakpoint regions.



getBrowserHistoryManager
public RegionManager<DocumentRegion> getBrowserHistoryManager()(Code)
manager for browser history regions.



getBuildDirectory
public File getBuildDirectory()(Code)
the directory that the class files should be stored after compilation.



getClassFiles
public List<File> getClassFiles()(Code)
a list of class files.



getClassPath
public Iterable<File> getClassPath()(Code)
Get the class path to be used in all class-related operations. TODO: Insure that this is used wherever appropriate.



getCompilerModel
public CompilerModel getCompilerModel()(Code)
Gets the CompilerModel, which provides all methods relating to compilers.



getConsoleDocument
public ConsoleDocument getConsoleDocument()(Code)
Gets the console document.



getCreateJarFile
public File getCreateJarFile()(Code)
Return the create jar file for the project. If not in project mode, returns null.



getCreateJarFlags
public int getCreateJarFlags()(Code)
Return the create jar file for the project. If not in project mode, returns 0.



getDebugPort
public int getDebugPort() throws IOException(Code)
Returns an available port number to use for debugging the interactions JVM.
throws:
  IOException - if unable to get a valid port number.



getDebugger
public Debugger getDebugger()(Code)
Gets the Debugger, which interfaces with the integrated debugger.



getDocumentCount
public int getDocumentCount()(Code)
Returns the document count



getDocumentForFile
public OpenDefinitionsDocument getDocumentForFile(File file) throws IOException(Code)
Returns the OpenDefinitionsDocument for the specified File, opening a new copy if one is not already open.
Parameters:
  file - File contained by the document to be returned OpenDefinitionsDocument containing file



getDocumentIterator
public DocumentIterator getDocumentIterator()(Code)
Gets a DocumentIterator to allow navigating through open swing Documents. TODO: remove ugly swing dependency.



getDocumentNavigator
public IDocumentNavigator<OpenDefinitionsDocument> getDocumentNavigator()(Code)
Gets the DocumentNavigator, which controls the document view.



getEditorKit
public DefinitionsEditorKit getEditorKit()(Code)
Fetches the javax.swing.text.EditorKit implementation for use in the definitions pane.



getExternalBinTitle
public String getExternalBinTitle()(Code)
Gives the title of the external files bin for the navigator The text used for the external files bin in the tree navigator



getExtraClassPath
public Iterable<File> getExtraClassPath()(Code)
Returns only the project's extra classpaths. The classpath entries loaded along with the project



getFindResultsManagers
public List<RegionManager<MovingDocumentRegion>> getFindResultsManagers()(Code)
managers for find result regions.



getHistoryAsString
public String getHistoryAsString()(Code)
Returns the entire history as a String.



getHistoryAsStringWithSemicolons
public String getHistoryAsStringWithSemicolons()(Code)
Returns the entire history as a String with semicolons as needed.



getInteractionsClassPath
public Iterable<File> getInteractionsClassPath()(Code)
Returns the current classpath in use by the Interpreter JVM. This includes the original jvm classpath, the global drjava extra classpaths, and the project extra classpaths.



getInteractionsDocument
public InteractionsDocument getInteractionsDocument()(Code)
Gets the (toolkit-independent) interactions document.



getInteractionsModel
public DefaultInteractionsModel getInteractionsModel()(Code)
Returns the interactions model.



getJUnitModel
public JUnitModel getJUnitModel()(Code)
Gets the JUnitModel, which provides all methods relating to JUnit testing.



getJavadocModel
public JavadocModel getJavadocModel()(Code)
Gets the JavadocModel, which provides all methods relating to Javadoc.



getMainClass
public File getMainClass()(Code)
Return the main file for the project If not in project mode, returns null.



getMasterWorkingDirectory
public File getMasterWorkingDirectory()(Code)
the working directory for the Master JVM.



getNonProjectDocuments
public List<OpenDefinitionsDocument> getNonProjectDocuments()(Code)
Returns a list of OpenDefinitionsDocuments that do not belong to the currently active project.
If no project is active, all documents are returned.



getNumCompErrors
public int getNumCompErrors()(Code)
Returns the number of compiler errors produced by the last compilation.



getODDForDocument
public OpenDefinitionsDocument getODDForDocument(AbstractDocumentInterface doc)(Code)
CHECK IF NEEDED!



getOpenDefinitionsDocuments
public List<OpenDefinitionsDocument> getOpenDefinitionsDocuments()(Code)
Returns a collection of all documents currently open for editing. This is equivalent to the results of getDocumentForFile for the set of all files for which isAlreadyOpen returns true. The order of documents is the same as in the display of documents in the view. a List of the open definitions documents.



getPageFormat
public PageFormat getPageFormat()(Code)



getProjectDocuments
public List<OpenDefinitionsDocument> getProjectDocuments()(Code)
Teturns a list of OpenDefinitionsDocuments that do belong to the currently active project.
If no project is active, no documents are returned.



getProjectFile
public File getProjectFile()(Code)
the file that points to the current project file. Null if not currently in project view



getProjectFiles
public File[] getProjectFiles()(Code)
the directory that the class files should be stored after compilation.



getProjectRoot
public File getProjectRoot()(Code)
the source root for the project.



getSourceBinTitle
public String getSourceBinTitle()(Code)
Gives the title of the source bin for the navigator The text used for the source bin in the tree navigator



getSourceFile
public File getSourceFile(String fileName)(Code)
Searches for a file with the given name on the current source roots and the augmented classpath.
Parameters:
  fileName - Name of the source file to look for the file corresponding to the given name, or null if it cannot be found



getSourceRootSet
public Iterable<File> getSourceRootSet()(Code)
Gets a list of all sourceRoots for the open definitions documents, without duplicates.



getSwingConsoleDocument
public InteractionsDJDocument getSwingConsoleDocument()(Code)
TODO: remove this swing dependency. InteractionsDJDocument in use by the ConsoleDocument.



getSwingInteractionsDocument
public InteractionsDJDocument getSwingInteractionsDocument()(Code)
TODO: remove this swing dependency. InteractionsDJDocument in use by the InteractionsDocument.



getWorkingDirectory
public File getWorkingDirectory()(Code)
the working directory for the Slave JVM (only applied to project mode).



hasModifiedDocuments
public boolean hasModifiedDocuments()(Code)
Checks if any open definitions documents have been modified since last being saved. whether any documents have been modified



hasModifiedDocuments
public boolean hasModifiedDocuments(List<OpenDefinitionsDocument> lod)(Code)
Checks if any of the given documents have been modified since last being saved. whether any documents have been modified



hasOutOfSyncDocuments
public boolean hasOutOfSyncDocuments()(Code)
true iff no open document is out of sync with its primary class file.



hasOutOfSyncDocuments
public boolean hasOutOfSyncDocuments(List<OpenDefinitionsDocument> lod)(Code)
true iff no document in given list is out of sync with its primary class file.



hasUntitledDocuments
public boolean hasUntitledDocuments()(Code)
Checks if any open definitions documents are untitled. whether any documents are untitled



inProject
public boolean inProject(File f)(Code)
Returns true the given file is in the current project file.



inProjectPath
public boolean inProjectPath(OpenDefinitionsDocument doc)(Code)
A file is in the project if the source root is the same as the project root. This means that project files must be saved in the source root. (we query the model through the model's state)



interpretCurrentInteraction
public void interpretCurrentInteraction()(Code)
Interprets the current given text at the prompt in the interactions pane.



isProjectActive
public boolean isProjectActive()(Code)
true if the model has a project open, false otherwise.



isProjectChanged
public boolean isProjectChanged()(Code)
Returns true if the project state has been changed



loadHistory
public void loadHistory(FileOpenSelector selector) throws IOException(Code)
Interprets file selected in the FileOpenSelector. Assumes all strings have no trailing whitespace. Interprets the list of interactions as a single transaction so the first error aborts all processing.



loadHistoryAsScript
public InteractionsScriptModel loadHistoryAsScript(FileOpenSelector selector) throws IOException, OperationCanceledException(Code)
Loads the history/histories from the given selector.



newFile
public OpenDefinitionsDocument newFile()(Code)
Creates a new document in the definitions pane and adds it to the list of open documents. The new open document



newTestCase
public OpenDefinitionsDocument newTestCase(String name, boolean makeSetUp, boolean makeTearDown)(Code)
Creates a new junit test case. TODO: Move to JUnitModel?
Parameters:
  name - the name of the new test case
Parameters:
  makeSetUp - true iff an empty setUp() method should be included
Parameters:
  makeTearDown - true iff an empty tearDown() method should be included the new open test case



openFolder
public void openFolder(File dir, boolean rec) throws IOException, OperationCanceledException, AlreadyOpenException(Code)



openProject
public void openProject(File file) throws IOException, MalformedProjectFileException(Code)
Parses out the given project file, sets up the state and other configurations such as the Navigator and the classpath, and returns an array of files to open.
Parameters:
  file - The project file to parse



printDebugMessage
public void printDebugMessage(String s)(Code)
Called when the debugger wants to print a message.



quit
public void quit()(Code)
Exits the program. Only quits if all documents are successfully closed.



refreshActiveDocument
public void refreshActiveDocument()(Code)
Re-runs the global listeners on the active document.



reloadProject
public void reloadProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info) throws IOException(Code)
Reloads a project without writing to disk.
Parameters:
  f - project file; does not actually get touched



removeAuxiliaryFile
public void removeAuxiliaryFile(OpenDefinitionsDocument doc)(Code)
Removes a document from the list of auxiliary files.



removeListener
public void removeListener(GlobalModelListener listener)(Code)
Remove a listener from this global model.
Parameters:
  listener - a listener that reacts on events generated by the GlobalModel



resetConsole
public void resetConsole()(Code)
Resets the console. Fires consoleReset() event.



resetInteractions
public void resetInteractions(File wd)(Code)
Clears and resets the interactions pane in the specified working directory, provided that the operation has some effect.



resetInteractions
public void resetInteractions(File wd, boolean forceReset)(Code)
Clears and resets the interactions pane in the specified working directory.



saveAllFiles
public void saveAllFiles(FileSaveSelector com) throws IOException(Code)
Saves all open documents, prompting when necessary.



saveHistory
public void saveHistory(FileSaveSelector selector) throws IOException(Code)
Saves the unedited version of the current history to a file
Parameters:
  selector - File to save to



saveHistory
public void saveHistory(FileSaveSelector selector, String editedVersion) throws IOException(Code)
Saves the edited version of the current history to a file
Parameters:
  selector - File to save to
Parameters:
  editedVersion - Edited verison of the history which will be saved to file instead of the lines saved in the history. The saved file will still include any tags needed to recognize it as a saved interactions file.



saveProject
public void saveProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info) throws IOException(Code)
Writes the project file to disk
Parameters:
  f - where to save the project
Parameters:
  info - Extra view-related information that should be included in the project file



setBuildDirectory
public void setBuildDirectory(File f)(Code)
Sets the current build directory.



setCreateJarFile
public void setCreateJarFile(File f)(Code)
Sets the create jar file of the project.



setCreateJarFlags
public void setCreateJarFlags(int f)(Code)
Sets the create jar flags of the project.



setDocumentNavigator
public void setDocumentNavigator(IDocumentNavigator<OpenDefinitionsDocument> newnav)(Code)



setExtraClassPath
public void setExtraClassPath(Iterable<File> cp)(Code)
Sets the set of classpath entries to use as the projects set of classpath entries. This is normally used by the project preferences.



setMainClass
public void setMainClass(File f)(Code)
Sets the main file of the project.



setNumCompErrors
public void setNumCompErrors(int num)(Code)
Sets the number of compiler errors produced by the last compilation.



setPageFormat
public void setPageFormat(PageFormat format)(Code)



setProjectChanged
public void setProjectChanged(boolean changed)(Code)
Notifies the project state that the project has been changed.



setProjectFile
public void setProjectFile(File f)(Code)
Sets project file to specifed value; used in "Save Project As ..." command in MainFrame.



setProjectRoot
public void setProjectRoot(File f)(Code)
Sets the source root for the project.



setWorkingDirectory
public void setWorkingDirectory(File f)(Code)
Sets the working directory for the Slave JVM (only applies to project mode).



systemErrPrint
public void systemErrPrint(String s)(Code)
Prints System.err to the DrJava console.



systemInEcho
public void systemInEcho(String s)(Code)
Prints the given string to the DrJava console as an echo of System.in



systemOutPrint
public void systemOutPrint(String s)(Code)
Prints System.out to the DrJava console.



waitForInterpreter
public void waitForInterpreter()(Code)
Blocks until the interpreter has registered.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.