|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
edu.rice.cs.util.swing.SwingFrame
edu.rice.cs.drjava.ui.MainFrame
public class MainFrame
DrJava's main window.
| Nested Class Summary | |
|---|---|
private class |
MainFrame.BackgroundColorOptionListener
The OptionListener for DEFINITIONS_BACKGROUND_COLOR |
private class |
MainFrame.DJAsyncTaskLauncher
|
private static class |
MainFrame.DJFileDisplayManager
This manager is meant to retrieve the correct icons for the given filename. |
private class |
MainFrame.DoclistFontOptionListener
The OptionListener for FONT_DOCLIST |
private static class |
MainFrame.GlassPane
Blocks access to DrJava while the hourglass cursor is on. |
private class |
MainFrame.LastFocusListener
|
private class |
MainFrame.LineEnumColorOptionListener
The OptionListener for DEFINITIONS_LINE_NUMBER_COLOR and DEFINITIONS_LINE_NUMBER_BACKGROUND_COLOR. |
private class |
MainFrame.LineEnumOptionListener
The OptionListener for LINEENUM_ENABLED. |
private class |
MainFrame.LineNumbersFontOptionListener
The OptionListener for FONT_LINE_NUMBERS |
private class |
MainFrame.MainFontOptionListener
The OptionListener for FONT_MAIN |
(package private) static class |
MainFrame.MenuBar
This allows us to intercept key events when compiling testing and turn them off when the glass pane is up. |
private class |
MainFrame.ModelListener
Inner class to listen to all events in the model. |
private class |
MainFrame.NormalColorOptionListener
The OptionListener for DEFINITIONS_NORMAL_COLOR |
private static class |
MainFrame.OddDisplayManager
This class wraps the file display managers by superimposing any notification icons on top of the base file icon. |
private class |
MainFrame.PositionListener
Inner class to handle updating the current position in a document. |
private class |
MainFrame.QuitPromptOptionListener
The OptionListener for QUIT_PROMPT. |
private class |
MainFrame.RecentFilesOptionListener
The OptionListener for RECENT_FILES_MAX_SIZE. |
private class |
MainFrame.ToolbarFontOptionListener
The OptionListener for FONT_TOOLBAR |
private class |
MainFrame.ToolbarOptionListener
The OptionListener for TOOLBAR options |
private class |
MainFrame.UIDebugListener
Listens to events from the debugger. |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private Action |
_aboutAction
Action that pops up an info dialog. |
private AboutDialog |
_aboutDialog
|
private boolean |
_allowKeyEvents
|
private FileFilter |
_anyFileFilter
Filter for any files (*.*) |
(package private) HashSet<MainFrameStatics.JavaAPIListEntry> |
_autoImportClassSet
List with entries for the auto-import dialog. |
(package private) PredictiveInputFrame<MainFrameStatics.JavaAPIListEntry> |
_autoImportDialog
The "Auto Import" dialog instance. |
(package private) JCheckBox |
_autoImportPackageCheckbox
|
private Action |
_automaticTraceDebugAction
Action that automatically traces through entire program |
private JMenuItem |
_automaticTraceMenuItem
|
private Timer |
_automaticTraceTimer
Timer to step into another line of code. |
private AbstractAction |
_autoRefreshAction
auto-refresh the project and open new files |
private Action |
_beginLineAction
Moves the caret to the "intelligent" beginning of the line. |
private BookmarksPanel |
_bookmarksPanel
|
private Action |
_bookmarksPanelAction
Action that shows the bookmarks tab. |
private BreakpointsPanel |
_breakpointsPanel
|
private Action |
_breakpointsPanelAction
Action that shows the breakpoints tab. |
private Action |
_browseBackAction
Browse back in the browser history. |
private Action |
_browseForwardAction
Browse forward in the browser history. |
private Action |
_checkNewVersionAction
Action that pops up a dialog that checks for a new version. |
private AbstractAction |
_cleanAction
cleans the build directory |
private Action |
_clearAllBreakpointsAction
Clears all breakpoints |
private Action |
_clearConsoleAction
Clears DrJava's output console. |
private Action |
_clearHistoryAction
Clears the commands in the interaction history. |
protected Action |
_clearLineAction
Deletes text from the caret to the end of the current line. |
private ClipboardHistoryFrame |
_clipboardHistoryDialog
The "Clipboard History" dialog. |
private Action |
_closeAction
Closes the current active document, prompting to save if necessary. |
private Action |
_closeAllAction
Closes all open documents, prompting to save if necessary. |
private JButton |
_closeButton
|
private Action |
_closeFolderAction
Closes all open documents, prompting to save if necessary. |
private Action |
_closeProjectAction
|
(package private) Action |
_closeSystemInAction
Close input stream in the interactions pane. |
private Action |
_commentLinesAction
Action for commenting out a block of text using wing comments. |
private Action |
_compileAction
Compiles the document in the definitions pane. |
private AbstractAction |
_compileAllAction
Compiles all open documents. |
private JButton |
_compileButton
|
private AbstractAction |
_compileFolderAction
Compiles all documents in the navigators active group. |
private AbstractAction |
_compileProjectAction
Compiles all the project. |
private CompilerErrorPanel |
_compilerErrorPanel
|
(package private) HashSet<MainFrameStatics.GoToFileListEntry> |
_completeClassSet
List with entries for the complete dialog. |
private AutoCompletePopup |
_completeWordDialog
The "Complete Word" dialog instance. |
private ConfigFrame |
_configFrame
|
private ConsoleController |
_consoleController
|
private InteractionsPane |
_consolePane
|
private JPopupMenu |
_consolePanePopupMenu
|
private JScrollPane |
_consoleScroll
|
private Action |
_copyInteractionToDefinitionsAction
Copies whatever is currently in the interactions pane at the prompt to the definitions pane. |
private DefinitionsDocument |
_currentDefDoc
The currently displayed DefinitionsDocument. |
private DefinitionsPane |
_currentDefPane
The currently displayed DefinitionsPane. |
private HighlightManager.HighlightInfo |
_currentLocationHighlight
The current highlight displaying the current location, used for FindAll and the of the debugger's thread, if there is one. |
private File |
_currentProjFile
|
private JLabel |
_currLocationField
|
protected Action |
_cutLineAction
Cuts from the caret to the end of the current line to the clipboard. |
private DetachedFrame |
_debugFrame
|
private JMenuItem |
_debuggerEnabledMenuItem
|
private JMenu |
_debugMenu
|
private DebugPanel |
_debugPanel
|
private JSplitPane |
_debugSplitPane
|
private Timer |
_debugStepTimer
Timer to display "Stepping..." message if a step takes longer than a certain amount of time. |
private HashMap<OpenDefinitionsDocument,JScrollPane> |
_defScrollPanes
Maps an OpenDefDoc to its JScrollPane. |
private Action |
_detachDebugFrameAction
Action that detaches the debugger pane. |
private JMenuItem |
_detachDebugFrameMenuItem
|
private Action |
_detachTabbedPanesAction
Action that detaches the tabbed panes. |
private JMenuItem |
_detachTabbedPanesMenuItem
|
private static MainFrame.DJFileDisplayManager |
_djFileDisplayManager20
|
private static MainFrame.DJFileDisplayManager |
_djFileDisplayManager30
|
private static Icon |
_djProjectIcon
|
private JSplitPane |
_docSplitPane
|
private IdentityHashMap<OrderedDocumentRegion,HighlightManager.HighlightInfo> |
_documentBookmarkHighlights
Table to map bookmarks to their corresponding highlight objects. |
private IdentityHashMap<Breakpoint,HighlightManager.HighlightInfo> |
_documentBreakpointHighlights
Table to map breakpoints to their corresponding highlight objects. |
private EditExternalDialog |
_editExternalDialog
The edit external dialog. |
private Action |
_editExternalProcessesAction
Action that edits saved processes. |
private JMenu |
_editMenu
|
private Action |
_editPreferencesAction
Action that calls the ConfigFrame to edit preferences. |
private Action |
_errorsAction
Action that pops up the DrJava errors dialog. |
private JButton |
_errorsButton
|
private ExecuteExternalDialog |
_executeExternalDialog
The execute external dialog. |
private Action |
_executeExternalProcessAction
Execute an external process. |
private Action |
_executeHistoryAction
Interprets the commands in a file in the interactions window. |
private Action |
_exportProjectInOldFormatAction
|
private JMenu |
_fileMenu
|
private String |
_fileTitle
The filename currently being displayed. |
private Action |
_findNextAction
Find the next instance of the find word. |
private Action |
_findPrevAction
Does the find next in the opposite direction. |
private FindReplacePanel |
_findReplace
|
private Action |
_findReplaceAction
Action that shows the find/replace tab. |
private LinkedList<Pair<FindResultsPanel,Map<MovingDocumentRegion,HighlightManager.HighlightInfo>>> |
_findResults
|
private OrderedDocumentRegion |
_firstRegion
|
FocusListener |
_focusListenerForRecentDocs
|
private DirectoryChooser |
_folderChooser
Provides a chooser to open a directory |
private Action |
_followFileAction
Follow a file. |
private Action |
_forceQuitAction
Quits DrJava. |
private Action |
_generateCustomDrJavaJarAction
Action that pops up the dialog to generate a custom drjava.jar file. |
private Action |
_gotoClosingBraceAction
Go to the closing brace. |
private Action |
_gotoFileAction
Action implementing "Go to file" command, which asks the user for a file name and goes there. |
(package private) PredictiveInputFrame<MainFrameStatics.GoToFileListEntry> |
_gotoFileDialog
The "Go to File" dialog instance. |
(package private) Action |
_gotoFileUnderCursorAction
Goes to the file specified by the word the cursor is on. |
private Action |
_gotoLineAction
Asks the user for a line number and goes there. |
private Action |
_gotoOpeningBraceAction
Go to the opening brace. |
(package private) DefaultGUIAvailabilityNotifier |
_guiAvailabilityNotifier
GUI component availability notifier. |
private Action |
_helpAction
Action that shows what help documentation is available. |
private HelpFrame |
_helpFrame
|
private JMenu |
_helpMenu
|
KeyListener |
_historyListener
These listeners support the traversal operations that cycle through recent documents. |
private int |
_hourglassNestLevel
|
private Action |
_indentLinesAction
Indents the current selection. |
private JPanel |
_interactionsContainer
|
private InteractionsController |
_interactionsController
|
private JFileChooser |
_interactionsHistoryChooser
|
private FileOpenSelector |
_interactionsHistoryFileSelector
|
private InteractionsPane |
_interactionsPane
|
private JPopupMenu |
_interactionsPanePopupMenu
|
private InteractionsScriptController |
_interactionsScriptController
|
private InteractionsScriptPane |
_interactionsScriptPane
|
private JarOptionsDialog |
_jarOptionsDialog
The jar options dialog. |
private Action |
_jarProjectAction
|
(package private) Set<MainFrameStatics.JavaAPIListEntry> |
_javaAPISet
The list of Java API classes. |
private AbstractAction |
_javadocAllAction
Runs Javadoc on all open documents (and the files in their packages). |
private AbstractAction |
_javadocCurrentAction
Runs Javadoc on the current document. |
private JavadocErrorPanel |
_javadocErrorPanel
|
private JavadocDialog |
_javadocSelector
Provides the view's contribution to the Javadoc interaction. |
private AbstractAction |
_junitAction
Runs JUnit on the document in the definitions pane. |
private AbstractAction |
_junitAllAction
Runs JUnit over all open JUnit tests. |
private JButton |
_junitButton
|
private AbstractAction |
_junitFolderAction
Tests all the files in a folder. |
private JUnitPanel |
_junitPanel
|
private AbstractAction |
_junitProjectAction
Runs JUnit over all open JUnit tests in the project directory. |
private JMenu |
_languageLevelMenu
|
private long |
_lastChangeTime
The timestamp for the last change to any document. |
Component |
_lastFocusOwner
|
private OrderedDocumentRegion |
_lastRegion
|
private Action |
_loadHistoryScriptAction
Action to load an interactions history as a replayable script. |
private static Log |
_log
|
private MainFrame.ModelListener |
_mainListener
The main model listener attached by the main frame to the global model |
(package private) JSplitPane |
_mainSplit
|
private ConfigOptionListeners.MasterJVMXMXListener |
_masterJvmXmxListener
Listener for Main JVM |
private JMenuBar |
_menuBar
|
protected Window |
_modalWindowAdapterOwner
The owner of the modal window listener has already been taken by another window. |
protected HashMap<Window,WindowAdapter> |
_modalWindowAdapters
Window adapter for "pseudo-modal" dialogs, i.e. |
private AbstractGlobalModel |
_model
The model which controls all logic in DrJava. |
private Action |
_moveAllToAuxiliaryAction
|
private Action |
_moveToAuxiliaryAction
|
private DisplayManager<INavigatorItem> |
_navPaneDisplayManager
This is what is given to the JTreeSortNavigator. |
private Action |
_newAction
Creates a new blank document and select it in the definitions pane. |
private Action |
_newClassAction
Creates a new Java class file. |
private Action |
_newDrJavaInstanceAction
Action that starts a new, blank, unconnected DrJava instance. |
Action |
_newFileFolderAction
Creates a new untitled, empty file in the current folder. |
private Action |
_newJUnitTestAction
Sets the document in the definitions pane to a new templated junit test class. |
private Action |
_newProjectAction
|
private Action |
_nextRegionAction
Jump to the next region in the tabbed pane. |
private static MainFrame.OddDisplayManager |
_oddDisplayManager20
|
private static MainFrame.OddDisplayManager |
_oddDisplayManager30
|
private Action |
_openAction
Asks user for file name and and reads that file into the definitions pane. |
private Action |
_openAllFolderAction
Opens all the files in the current folder. |
private FileOpenSelector |
_openAnyFileSelector
Returns the files to open. |
private JFileChooser |
_openChooser
For opening files. |
private Action |
_openFileOrProjectAction
Asks user for file name and and reads that file into the definitions pane. |
private FileOpenSelector |
_openFileOrProjectSelector
Returns the files to open to the model (command pattern). |
private Action |
_openFolderAction
Asks user for directory name and and reads it's files (and subdirectories files, on request) to the definitions pane. |
private Action |
_openJavadocAction
Action that asks the user for a file name and goes there. |
(package private) PredictiveInputFrame<MainFrameStatics.JavaAPIListEntry> |
_openJavadocDialog
The "Open Javadoc" dialog instance. |
(package private) Action |
_openJavadocUnderCursorAction
Open Javadoc page specified by the word the cursor is on. |
private Action |
_openOneFolderAction
Opens a files in the current folder. |
private Action |
_openProjectAction
Asks user for project file name and and reads the associated files into the file navigator (and places the first source file in the editor pane) |
private JFileChooser |
_openProjectChooser
For opening project files. |
private FileOpenSelector |
_openProjectSelector
Returns the project file to open. |
private JCheckBox |
_openRecursiveCheckBox
|
private FileOpenSelector |
_openSelector
Returns the files to open to the model (command pattern). |
private Action |
_pageSetupAction
Opens the page setup window. |
private Action |
_pasteHistoryAction
Asks the user for a file name and goes there. |
private OpenDefinitionsDocument |
_pendingDocument
|
private Runnable |
_pendingUpdate
|
private MainFrame.PositionListener |
_posListener
|
private Action |
_prevRegionAction
Jump to the previous region in the tabbed pane. |
private Action |
_printConsoleAction
Prints the console document. |
private Action |
_printConsolePreviewAction
Opens the print preview window. |
private Action |
_printDefDocAction
Prints the current document. |
private Action |
_printDefDocPreviewAction
Opens the print preview window. |
private Action |
_printInteractionsAction
Prints the interactions document. |
private Action |
_printInteractionsPreviewAction
Opens the print preview window. |
private FileFilter |
_projectFilter
Filter for drjava project files (.drjava and .xml and .pjt) |
private JMenu |
_projectMenu
|
private AbstractAction |
_projectPropertiesAction
|
private boolean |
_promptBeforeQuit
Whether to display a prompt message before quitting. |
private Action |
_quickStartAction
Action that shows the quick start documentation. |
private QuickStartFrame |
_quickStartFrame
|
private Action |
_quitAction
Quits DrJava. |
private RecentDocFrame |
_recentDocFrame
|
private RecentFileManager |
_recentFileManager
Keeps track of the recent files list in the File menu. |
private RecentFileManager |
_recentProjectManager
Keeps track of the recent projects list in the Project menu |
private DelegatingAction |
_redoAction
Redoes the last undo to the active definitions document. |
private JButton |
_redoButton
|
private Action |
_removeAllAuxiliaryAction
|
private Action |
_removeAuxiliaryAction
|
private Action |
_renameAction
Asks the user for a file name and renames and saves the active document (in the definitions pane) to that file. |
private MouseListener |
_resetFindReplaceListener
|
private Action |
_resetInteractionsAction
Resets the Interactions pane. |
private Action |
_resumeDebugAction
Action that resumes debugging. |
private Action |
_revertAction
Reverts the current document. |
private AbstractAction |
_runAction
Finds and runs the main method of the current document, if it exists. |
private AbstractAction |
_runAppletAction
Tries to run the current document as an applet. |
private JButton |
_runButton
|
private AbstractAction |
_runProjectAction
|
private Action |
_saveAction
Saves the current document. |
(package private) Action |
_saveAllAction
Saves all documents, prompting for file names as necessary. |
private Action |
_saveAsAction
Asks the user for a file name and saves the active document (in the definitions pane) to that file. |
private FileSaveSelector |
_saveAsSelector
Returns the file to save to the model (command pattern). |
private JFileChooser |
_saveChooser
For saving files. |
private Action |
_saveConsoleCopyAction
Saves a copy of DrJava's output console to a file. |
private Action |
_saveCopyAction
Asks the user for a file name and saves a copy of the active document (in the definitions pane) to that file. |
private FileSaveSelector |
_saveCopySelector
Returns the file to save to the model (command pattern) without updating the document state. |
private Action |
_saveHistoryAction
Save the commands in the interactions window's history to a file |
private Action |
_saveInteractionsCopyAction
Save the contents of the interactions window to a file. |
private Action |
_saveProjectAction
|
private Action |
_saveProjectAsAction
|
private FileSaveSelector |
_saveSelector
Returns the file to save to the model (command pattern). |
private Action |
_selectAllAction
Selects all text in window. |
private Action |
_selectionBeginLineAction
Selects to the "intelligent" beginning of the line. |
private Action |
_showDebugConsoleAction
Shows the DebugConsole. |
private boolean |
_showDebugger
|
private ConfigOptionListeners.SlaveJVMXMXListener |
_slaveJvmXmxListener
Listener for Interactions JVM |
private JPanel |
_statusBar
Panel to hold both InteractionsPane and its sync message. |
private JLabel |
_statusField
|
private JLabel |
_statusReport
|
private Action |
_stepIntoDebugAction
Action that steps into the next method call. |
private Action |
_stepOutDebugAction
Action that steps out of the next method call. |
private Action |
_stepOverDebugAction
Action that executes the next line, without stepping into methods. |
private Action |
_switchToNextAction
Action that switches to next document. |
private Action |
_switchToNextPaneAction
Switches focus to next pane. |
private Action |
_switchToPrevAction
Switches to previous document. |
private Action |
_switchToPreviousPaneAction
Switches focus to previous pane. |
JTabbedPane |
_tabbedPane
|
private DetachedFrame |
_tabbedPanesFrame
|
LinkedList<TabbedPanel> |
_tabs
|
private boolean |
_tabUpdatePending
|
private ExecutorService |
_threadPool
Thread pool for executing asynchronous tasks. |
private Action |
_toggleBookmarkAction
Toggles a bookmark. |
(package private) Action |
_toggleBreakpointAction
Toggles a breakpoint on the current line |
private Action |
_toggleDebuggerAction
Action that enables the debugger. |
private JToolBar |
_toolBar
|
private JMenu |
_toolsMenu
|
private FileFilter |
_txtFileFilter
Filter for text files (.txt) |
private Action |
_uncommentLinesAction
Action for un-commenting a block of commented text. |
private DelegatingAction |
_undoAction
Undoes the last change to the active definitions document. |
private JButton |
_undoButton
|
FocusListener |
_undoRedoDefinitionsFocusListener
|
private Object |
_updateLock
|
private Action |
_viewInteractionsClassPathAction
Defines actions that displays the interactions classpath. |
private boolean |
_waitAgain
|
private WindowListener |
_windowCloseListener
How DrJava responds to window events. |
(package private) Action |
completeWordUnderCursorAction
Auto-completes word the cursor is on. |
private static int |
CONSOLE_TAB
|
(package private) Action |
copyAction
Default copy action. |
(package private) Action |
cutAction
Default cut action. |
private static int |
DEBUG_STEP_TIMER_VALUE
Number of milliseconds to wait before displaying "Stepping..." message after a step is requested in the debugger. |
private static String |
DEBUGGER_OUT_OF_SYNC
|
(package private) DropTarget |
dropTarget
Drag and drop target. |
static Icon |
FIND_ICON
|
private static String |
ICON_PATH
|
private static int |
INTERACTIONS_TAB
|
(package private) Action |
pasteAction
Default paste action. |
static long |
UPDATE_DELAY
|
static int |
UPDATER_PRIORITY
|
private static DataFlavor |
uriListFlavor
Linux URI drag-and-drop data flavor. |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MainFrame()
Creates the main window, and shows it. |
|
| Method Summary | ||
|---|---|---|
(package private) void |
_addGUIAvailabilityListener(Action a,
GUIAvailabilityListener.ComponentType... components)
|
|
(package private) void |
_addGUIAvailabilityListener(Component a,
GUIAvailabilityListener.ComponentType... components)
|
|
private JMenuItem |
_addMenuItem(JMenu menu,
Action a,
VectorOption<KeyStroke> opt,
boolean updateKeyboardManager)
Adds an Action as a menu item to the given menu, using the specified configurable keystroke. |
|
private JMenuItem |
_addMenuItem(JMenu menu,
Action a,
VectorOption<KeyStroke> opt,
int index,
boolean updateKeyboardManager)
Inserts an Action as a menu item to the given menu, at the specified index, using the specified configurable keystroke. |
|
private boolean |
_checkProjectClose()
|
|
private void |
_clean()
|
|
private void |
_cleanUpDebugger()
|
|
private void |
_close()
Closes the active document. |
|
private void |
_closeAll()
|
|
private void |
_closeFolder()
|
|
private void |
_closeInteractionsScript()
Closes the currently executing interactions script, if there is one. |
|
(package private) boolean |
_closeProject()
|
|
(package private) boolean |
_closeProject(boolean quitting)
Saves the project file; closes all open project files; and calls _model.closeProject(quitting) the clean up the state of the global model. |
|
private void |
_compile()
|
|
private void |
_compileAll()
|
|
private void |
_compileFolder()
|
|
private void |
_compileProject()
|
|
private void |
_completeWordUnderCursor()
Complete the word the cursor is on. |
|
private void |
_configureBrowsing()
|
|
(package private) JScrollPane |
_createDefScrollPane(OpenDefinitionsDocument doc)
Create new DefinitionsPane and JScrollPane for an open definitions document. |
|
(package private) JButton |
_createManualToolbarButton(Action a)
Creates a toolbar button for undo and redo, which behave differently. |
|
private void |
_createTab(TabbedPanel panel)
|
|
JButton |
_createToolbarButton(Action a)
Sets up all buttons for the toolbar except for undo and redo, which use _createManualToolbarButton. |
|
protected void |
_disableInteractionsPane()
Ensures that the interactions pane is not editable during an interaction. |
|
private void |
_disableStepTimer()
Disable any step timer. |
|
(package private) void |
_displayGUIComponentAvailabilityFrame()
|
|
private void |
_doResetInteractions()
|
|
private void |
_editProject()
Edits project frame. |
|
protected void |
_enableInteractionsPane()
Ensures that the interactions pane is editable after an interaction completes. |
|
private void |
_executeExternalProcess()
Execute an external process and monitor its output. |
|
private void |
_fixToolbarHeights()
Ensures that all toolbar buttons have the same height. |
|
private void |
_followFile()
Open a file for following (like using "less" and F). |
|
private void |
_forceQuit()
|
|
static Set<MainFrameStatics.JavaAPIListEntry> |
_generateJavaAPISet(String base,
String stripPrefix,
String suffix)
Generate Java API class list. |
|
static Set<MainFrameStatics.JavaAPIListEntry> |
_generateJavaAPISet(String base,
String stripPrefix,
URL url)
Generate Java API class list. |
|
private int |
_getBeginLinePos()
Returns the "intelligent" beginning of line. |
|
private File |
_getFullFile(File f)
Gets the absolute file, or if necessary, the canonical file. |
|
private ImageIcon |
_getIcon(String name)
Returns the icon with the given name. |
|
(package private) void |
_gotoFileUnderCursor()
Goes to the file specified by the word the cursor is on. |
|
private int |
_gotoLine()
Ask the user what line they'd like to jump to, then go there. |
|
private void |
_hideDebuggerPanel()
|
|
private void |
_initAutoImportDialog()
Initialize dialog if necessary. |
|
private void |
_installNewDocumentListener(OpenDefinitionsDocument d)
Makes sure save and compile buttons and menu items are enabled and disabled appropriately after document modifications. |
|
int |
_jumpToLine(int lineNum)
Jump to the specified line and return the offset. |
|
private void |
_junit()
|
|
private void |
_junitAll()
Tests all open documents. |
|
private void |
_junitFolder()
|
|
private void |
_junitInterrupted(String message)
|
|
private void |
_junitInterrupted(UnexpectedException e)
|
|
private void |
_junitProject()
Tests the documents in the project source tree. |
|
private DocumentInfoGetter |
_makeInfoGetter(OpenDefinitionsDocument doc)
Gets the information to be saved for a project document. |
|
(package private) void |
_moveAllToAuxiliary()
Converts all external files to auxiliary files. |
|
(package private) void |
_moveToAuxiliary()
|
|
private void |
_new()
|
|
void |
_newJavaClass()
|
|
private void |
_newProject()
Closes all files and makes a new project. |
|
private void |
_open()
|
|
private void |
_openFileOrProject()
|
|
private void |
_openFolder()
|
|
private void |
_openFolder(File dir,
boolean rec,
String ext)
Opens all the files in the specified directory; it opens all files in nested folders if rec is true. |
|
private void |
_openJavadocUnderCursor()
Opens the Javadoc specified by the word the cursor is on. |
|
private void |
_openProject()
Asks the user to select the project file to open and starts the process of opening the project. |
|
private void |
_openProjectHelper(File projectFile)
Oversees the opening of the project by delegating to the model to parse and initialize the project while resetting the navigator pane and opening up the files itself. |
|
private void |
_openProjectUpdate()
|
|
private void |
_pageSetup()
|
|
private void |
_printConsole()
|
|
private void |
_printConsolePreview()
|
|
private void |
_printDefDoc()
|
|
private void |
_printDefDocPreview()
Opens a new PrintPreview frame. |
|
private void |
_printInteractions()
|
|
private void |
_printInteractionsPreview()
|
|
private void |
_processDocs(Collection<OpenDefinitionsDocument> docs,
Runnable1<OpenDefinitionsDocument> op)
Performs op on each document in docs and invalidates the various project file collection properties. |
|
private void |
_putTextIntoDefinitions(String text)
Puts the given text into the current definitions pane at the current caret position. |
|
private void |
_reenableScrollBar()
Addresses Mac OS X bug where the scrollbars are disabled in one document after opening another. |
|
private void |
_refreshDefScrollPane()
Refresh the JScrollPane containing the DefinitionsPane for the active document. |
|
private void |
_removeAllAuxiliary()
Converts all auxiliary files to external files. |
|
private void |
_removeAuxiliary()
Removes selected auxiliary files. |
|
private void |
_removeErrorListener(OpenDefinitionsDocument doc)
Removes the ErrorCaretListener corresponding to the given document, after that document has been closed. |
|
private boolean |
_rename()
|
|
private void |
_repaintLineNums()
Repaints the line numbers on the active scroll pane. |
|
private void |
_resetJUnit()
|
|
private void |
_resetNavigatorPane()
Sets the left navigator pane to the correct component as dictated by the model. |
|
private void |
_revert()
|
|
private void |
_revert(OpenDefinitionsDocument doc)
|
|
private void |
_runApplet()
Internal helper method to run the current document as applet in the interactions pane. |
|
private void |
_runMain()
Internal helper method to run the main method of the current document in the interactions pane. |
|
private void |
_runProject()
|
|
private boolean |
_save()
|
|
(package private) void |
_saveAll()
|
|
(package private) void |
_saveAllOld()
|
|
private boolean |
_saveAs()
|
|
void |
_saveConsoleCopy(ConsoleDocument doc)
Saves a copy of either the console or the interactions pane to a file. |
|
private boolean |
_saveCopy()
|
|
void |
_saveDocumentCopy(SwingDocument doc)
Saves a copy of an error pane to a file. |
|
private void |
_saveProject()
|
|
private boolean |
_saveProjectAs()
Pops up the _saveChooser dialog, asks the user for a new project file name, and sets the project file to the specified file. |
|
(package private) void |
_saveProjectHelper(File file)
|
|
private void |
_scanClassFiles()
Scan the build directory for class files and update the auto-completion list. |
|
private void |
_selectAll()
|
|
private void |
_setCurrentDirectory(File file)
Sets the current directory to be that of the given file. |
|
private void |
_setCurrentDirectory(OpenDefinitionsDocument doc)
Sets the current directory to be that of document's file. |
|
private void |
_setDebugMenuItemsEnabled(boolean isEnabled)
Called every time the debug mode checkbox is toggled. |
|
private void |
_setMainFont()
Sets the font of all panes and panels to the main font. |
|
private void |
_setMenuShortcut(JMenuItem item,
Action a,
VectorOption<KeyStroke> opt,
boolean updateKeyboardManager)
Sets the given menu item to have the specified configurable keystroke. |
|
private void |
_setThreadDependentDebugMenuItems(boolean isSuspended)
Enables and disables the appropriate menu items in the debug menu depending upon the state of the current thread. |
|
private void |
_setUpAction(Action a,
String icon,
String shortDesc)
|
|
private void |
_setUpAction(Action a,
String name,
String icon,
String longDesc)
|
|
private void |
_setUpActions()
Initializes all action objects. |
|
private void |
_setUpContextMenus()
Sets up the context menu to show in the document pane. |
|
private JMenu |
_setUpDebugMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a debug menu. |
|
private JMenu |
_setUpEditMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a edit menu. |
|
private JMenu |
_setUpFileMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a file menu. |
|
private void |
_setUpGUIComponentAvailability()
Initialize the availability of GUI components. |
|
private JMenu |
_setUpHelpMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a help menu. |
|
private void |
_setUpKeyBindingMaps()
Builds the Hashtables in KeyBindingManager that record key-bindings and support live updating, conflict resolution, and intelligent error messages (the ActionToNameMap). |
|
private JMenu |
_setUpLanguageLevelMenu(int mask,
boolean updateKeyboardManager)
Creates and returns the language levels menu. |
|
(package private) void |
_setUpMenuBar(JMenuBar menuBar)
Sets up the components of the menu bar and links them to the private fields within MainFrame. |
|
(package private) void |
_setUpMenuBar(JMenuBar menuBar,
JMenu fileMenu,
JMenu editMenu,
JMenu toolsMenu,
JMenu projectMenu,
JMenu debugMenu,
JMenu languageLevelMenu,
JMenu helpMenu)
|
|
private void |
_setUpPanes()
|
|
private void |
_setUpProjectButtons(File projectFile)
|
|
private JMenu |
_setUpProjectMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a project menu |
|
private void |
_setUpStatusBar()
Sets up the status bar with the filename field. |
|
private void |
_setUpTabs()
|
|
private void |
_setUpToolBar()
Sets up the toolbar with several useful buttons. |
|
private JMenu |
_setUpToolsMenu(int mask,
boolean updateKeyboardManager)
Creates and returns a tools menu. |
|
private void |
_showAutoImportDialog(String s)
Imports a class. |
|
(package private) void |
_showClassNotFoundError(ClassNotFoundException cnfe)
|
|
private void |
_showConfigException()
Check if any errors occurred while parsing the config file, and display a message if necessary. |
|
(package private) void |
_showDebugError(DebugException de)
|
|
private void |
_showDebuggerPanel()
|
|
(package private) void |
_showError(Throwable e,
String title,
String message)
|
|
(package private) void |
_showFileMovedError(FileMovedException fme)
|
|
(package private) void |
_showFileNotFoundError(FileNotFoundException fnf)
|
|
private void |
_showFindReplaceTab(boolean showDetachedWindow)
Shows the find/replace tab in the interactions pane. |
|
(package private) void |
_showIOError(IOException ioe)
|
|
(package private) void |
_showJUnitInterrupted(String message)
|
|
(package private) void |
_showJUnitInterrupted(UnexpectedException e)
|
|
(package private) void |
_showNoClassDefError(NoClassDefFoundError ncde)
|
|
(package private) void |
_showProjectFileParseError(MalformedProjectFileException mpfe)
|
|
(package private) void |
_showWarning(Throwable e,
String title,
String message)
|
|
private void |
_storePositionInfo()
Stores the current position and size info for window and panes to the config framework. |
|
(package private) void |
_switchDefScrollPane()
Switch to the JScrollPane containing the DefinitionsPane for the active document. |
|
private void |
_switchPaneFocus(boolean next)
This method allows the user to cycle through the definitions pane and all of the open tabs. |
|
private void |
_switchToPane(Component c)
This takes a component and gives it focus, showing it if it's a tab. |
|
private void |
_updateBackgroundColor()
Updates the background color for the doc list. |
|
private void |
_updateDebugStatus()
Checks if debugPanel's status bar displays the DEBUGGER_OUT_OF_SYNC message but the current document is in sync. |
|
private void |
_updateDefScrollRowHeader()
Update the row header (line number enumeration) for the definitions scroll pane. |
|
private void |
_updateLineNums()
Updates the font and colors of the line number display. |
|
private void |
_updateNormalColor()
Updates the text color for the doc list. |
|
(package private) void |
_updateSavedConfiguration()
|
|
JButton |
_updateToolbarButton(JButton b,
Action a)
Removes the button b from the toolbar and creates new button in its place. |
|
private void |
_updateToolbarButtons()
Update the toolbar's buttons, following any change to TOOLBAR_ICONS_ENABLED, TOOLBAR_TEXT_ENABLED, or FONT_TOOLBAR (name, style, text) |
|
private void |
_updateToolBarVisible()
Sets the toolbar as either visible or invisible based on the config option. |
|
private boolean |
_verifyOverwrite(File f)
Confirms with the user that the file should be overwritten. |
|
private boolean |
_warnFileOpen(File f)
Warns the user that the current file is open and query them if they wish to save over the currently open file. |
|
void |
addComponentListenerToOpenDocumentsList(ComponentListener listener)
|
|
void |
addMenuBarInOtherFrame(JMenuBar menuBar)
|
|
void |
addToBrowserHistory()
Add the current location to the browser history. |
|
void |
addToBrowserHistoryBefore()
Add the current location to the browser history before the current region. |
|
(package private) void |
askToIncreaseMasterMaxHeap()
Ask the user to increase the master's max heap setting. |
|
(package private) void |
askToIncreaseSlaveMaxHeap()
Ask the user to increase the slave's max heap setting. |
|
void |
clearCompleteClassSet()
Clear the set of all classes. |
|
void |
clearJavaAPISet()
Clears the Java API class set. |
|
void |
clearStatusMessage()
Sets the message text in the status bar to the null string. |
|
(package private) void |
closeAll()
|
|
(package private) boolean |
closeProject()
Closes project when DrJava is not in the process of quitting. |
|
void |
commentLines()
Comment current selection using wing commenting. |
|
FindResultsPanel |
createFindResultsPanel(RegionManager<MovingDocumentRegion> rm,
MovingDocumentRegion region,
String title,
String searchString,
boolean searchAll,
boolean searchSelectionOnly,
boolean matchCase,
boolean wholeWord,
boolean noComments,
boolean noTestCases,
WeakReference<OpenDefinitionsDocument> doc,
FindReplacePanel findReplace)
Create a new find results tab. |
|
(package private) void |
debuggerAutomaticTrace()
Automatically traces through the entire program with a defined rate for stepping into each line of code |
|
(package private) void |
debuggerClearAllBreakpoints()
Clears all breakpoints from the debugger. |
|
(package private) void |
debuggerResume()
Resumes the debugger's current execution. |
|
(package private) void |
debuggerStep(Debugger.StepType type)
Steps in the debugger. |
|
void |
debuggerToggle()
Toggles whether the debugger is enabled or disabled, and updates the display accordingly. |
|
(package private) void |
debuggerToggleBreakpoint()
Toggles a breakpoint on the current line. |
|
private void |
disableAutomaticTrace()
Disable the automatic trace. |
|
(package private) void |
disableFindAgainOnClose(List<OpenDefinitionsDocument> projDocs)
Disable "Find Again" on "Find All" tabs that use a document that was closed. |
|
void |
dispose()
Clean up model and Swing resources. |
|
void |
dragEnter(DropTargetDragEvent dropTargetDragEvent)
User dragged something into the component. |
|
void |
dragExit(DropTargetEvent dropTargetEvent)
|
|
void |
dragOver(DropTargetDragEvent dropTargetDragEvent)
|
|
void |
drop(DropTargetDropEvent dropTargetDropEvent)
User dropped something on the component. |
|
void |
dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
|
|
void |
editPreferences()
|
|
private void |
enableAutomaticTrace()
Enable automatic trace. |
|
HashMap<OpenDefinitionsDocument,DocumentInfoGetter> |
gatherProjectDocInfo()
|
|
void |
generateJavaAPISet()
Generate Java API class list. |
|
boolean |
getAllowKeyEvents()
|
|
private File |
getChosenFile(JFileChooser fc,
int choice,
File previous,
boolean addSourceFileExtension)
Returns the File selected by the JFileChooser. |
|
private File[] |
getChosenFiles(JFileChooser fc,
int choice)
Returns the Files selected by the JFileChooser. |
|
(package private) JButton |
getCloseButton()
|
|
(package private) JButton |
getCompileAllButton()
For testing purposes. |
|
CompilerErrorPanel |
getCompilerErrorPanel()
Returns the compiler error panel. |
|
Set<MainFrameStatics.GoToFileListEntry> |
getCompleteClassSet()
|
|
DefinitionsPane |
getCurrentDefPane()
Returns the current DefinitionsPane. |
|
File |
getCurrentProject()
|
|
DefinitionsPane |
getDefPaneGivenODD(OpenDefinitionsDocument doc)
|
|
JViewport |
getDefViewport()
|
|
JMenu |
getEditMenu()
For test purposes only. |
|
static MainFrame.DJFileDisplayManager |
getFileDisplayManager20()
|
|
static MainFrame.DJFileDisplayManager |
getFileDisplayManager30()
|
|
String |
getFileNameField()
For test purposes only. |
|
(package private) FindReplacePanel |
getFindReplaceDialog()
Return the find replace dialog. |
|
static ImageIcon |
getIcon(String name)
|
|
(package private) InteractionsController |
getInteractionsController()
Returns the frame's interactions controller. |
|
(package private) InteractionsPane |
getInteractionsPane()
Returns the frame's interactions pane. |
|
Set<MainFrameStatics.JavaAPIListEntry> |
getJavaAPISet()
|
|
JavadocErrorPanel |
getJavadocErrorPanel()
Returns the javadoc error panel. |
|
JUnitPanel |
getJUnitPanel()
Returns the JUnit error panel. |
|
long |
getLastChangeTime()
Returns the changed status of the MainFrame. |
|
SingleDisplayModel |
getModel()
|
|
DisplayManager<INavigatorItem> |
getNavPaneDisplayManager()
|
|
static MainFrame.OddDisplayManager |
getOddDisplayManager20()
|
|
static MainFrame.OddDisplayManager |
getOddDisplayManager30()
|
|
File[] |
getOpenFiles(JFileChooser jfc)
Prompt the user to select a place to open files from, then load them. |
|
File |
getSaveFile(JFileChooser jfc)
Prompt the user to select a place to save the current document. |
|
CompilerErrorPanel |
getSelectedErrorPanel()
Returns the currently shown error panel if there is one. |
|
private FileFilter |
getSourceFileFilter()
|
|
private String |
getSuggestedFileExtension()
Return the suggested file extension that will be appended to a file without extension. |
|
void |
gotoFileMatchingMask(String mask)
Goes to the file matching the specified mask. |
|
void |
goToRegionAndHighlight(IDocumentRegion r)
|
|
void |
handleRemoteOpenFile(File f,
int lineNo)
Handles an "open file" request, either from the remote control server or the operating system. |
|
void |
hideDebugger()
Hide the debugger tab and update the Debug menu accordingly. |
|
private void |
hideRecentDocFrame()
|
|
void |
hourglassOff()
Return the cursor to normal. |
|
void |
hourglassOn()
Make the cursor an hourglass. |
|
private void |
initCompleteWordDialog()
Initialize the "Complete Word" dialog. |
|
private void |
initDebugFrame()
Initializes the "Debugger" frame. |
|
private void |
initEditExternalProcessDialog()
Initializes the "Edit External Process" dialog. |
|
private void |
initExecuteExternalProcessDialog()
Initializes the "Execute External Process" dialog. |
|
(package private) void |
initGotoFileDialog()
Initialize dialog if necessary. |
|
private void |
initJarOptionsDialog()
Initializes the "Create Jar from Project" dialog. |
|
(package private) void |
initOpenJavadocDialog()
Initialize dialog if necessary. |
|
private void |
initTabbedPanesFrame()
Initializes the "Tabbed Panes" frame. |
|
void |
installModalWindowAdapter(Window w,
Runnable1<? super WindowEvent> toFrontAction,
Runnable1<? super WindowEvent> closeAction)
Return the modal window listener if available, otherwise returns a non-modal dummy listener. |
|
boolean |
isCompilerTabSelected()
Returns whether the compiler output tab is currently showing. |
|
(package private) boolean |
isDebuggerEnabled()
|
|
(package private) boolean |
isDebuggerReady()
|
|
private static boolean |
isDisplayed(TabbedPanel p)
|
|
boolean |
isJavadocTabSelected()
Returns whether the JavaDoc output tab is currently showing. |
|
(package private) boolean |
isProjectActiveAndBuildDirSet()
|
|
(package private) boolean |
isProjectActiveAndMainClassSet()
|
|
boolean |
isSaveEnabled()
Supports MainFrameTest. |
|
boolean |
isTestTabSelected()
Returns whether the test output tab is currently showing. |
|
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
We lost ownership of what we put in the clipboard. |
|
private DirectoryChooser |
makeFolderChooser(File workDir)
Creates the folder chooser during MainFrame initialization which does not run in event thread. |
|
private static
|
maxInterval(Pair<R,R> i,
Pair<R,R> j)
|
|
private void |
nextRecentDoc()
|
|
void |
open(FileOpenSelector openSelector)
Opens all the files returned by the FileOpenSelector prompting the user to handle the cases where files are already open, files are missing, or the action was canceled by the user |
|
static void |
openExtProcessFile(File file)
Open stand-alone external process file. |
|
static void |
openExtProcessJarFile(File file)
Open external process file in a jar file. |
|
void |
openFolder(DirectoryChooser chooser)
Opens all the files in the directory returned by the FolderSelector. |
|
void |
openProject(FileOpenSelector projectSelector)
|
|
void |
pack()
Ensures that pack() is run in the event thread. |
|
private void |
packHelp()
Helper method that provides access to super.pack() within the anonymous class new Runnable() {...} above |
|
private void |
prevRecentDoc()
|
|
void |
projectRunnableChanged()
|
|
private File |
proposeBetterFileName(File f)
|
|
(package private) void |
quit()
private void _revertAll() { try { _model.revertAllFiles(); } catch (FileMovedException fme) { _showFileMovedError(fme); } catch (IOException ioe) { MainFrameStatics.showIOError(MainFrame.this, ioe); } } |
|
(package private) void |
refreshBookmarkHighlightPainter()
Sets new painters for existing bookmark highlights. |
|
(package private) void |
refreshBreakpointHighlightPainter()
Sets up new painters for existing breakpoint highlights. |
|
(package private) void |
refreshFindResultsHighlightPainter(FindResultsPanel panel,
LayeredHighlighter.LayerPainter painter)
Set new painter for existing find results highlights. |
|
void |
removeCurrentLocationHighlight()
Removes the current highlight. |
|
void |
removeMenuBarInOtherFrame(JMenuBar menuBar)
|
|
void |
removeModalWindowAdapter(Window w)
Removes the modal window adapter. |
|
void |
removeTab(Component c)
|
|
void |
resetAutoImportDialogPosition()
Reset the position of the "Open Javadoc" dialog. |
|
void |
resetClipboardHistoryDialogPosition()
Reset the position of the "Clipboard History" dialog. |
|
void |
resetCompleteWordDialogPosition()
|
|
void |
resetDebugFrame()
Reset the position of the "Debugger" dialog. |
|
void |
resetEditExternalProcessPosition()
Reset the position of the "Edit External Process" dialog. |
|
void |
resetExecuteExternalProcessPosition()
Reset the position of the "Execute External Process" dialog. |
|
void |
resetGotoFileDialogPosition()
Reset the position of the "Go to File" dialog. |
|
void |
resetJarOptionsDialogPosition()
Reset the position of the "Create Jar from Project" dialog. |
|
void |
resetOpenJavadocDialogPosition()
Reset the position of the "Open Javadoc" dialog. |
|
void |
resetTabbedPanesFrame()
Reset the position of the "Tabbed Panes" dialog. |
|
void |
resetUndo()
Resets the undo/redo menu items |
|
(package private) void |
saveProject()
|
|
void |
scrollToDocumentAndOffset(OpenDefinitionsDocument doc,
int offset,
boolean shouldHighlight)
Called when a specific document and offset should be displayed. |
|
void |
scrollToDocumentAndOffset(OpenDefinitionsDocument doc,
int offset,
boolean shouldHighlight,
boolean shouldAddToHistory)
Called when a specific document and offset should be displayed. |
|
void |
setAllowKeyEvents(boolean a)
|
|
void |
setAutomaticTraceMenuItemStatus()
|
|
void |
setPopupLoc(Window popup)
Wrapper for setPopupLoc(Window, Component) that uses the window's owner as the owner to center the popup on. |
|
void |
setStatusMessage(String msg)
Changes the message text toward the right of the status bar |
|
void |
setStatusMessageColor(Color c)
Sets the color of the text in the status bar message |
|
void |
setStatusMessageFont(Font f)
Sets the font of the status bar message |
|
void |
setUpDrJavaProperties()
This method sets up all the DrJava properties that can be used as variables in external process command lines. |
|
private void |
setUpKeys()
Sets up the ctrl-tab listener. |
|
void |
setVisible(boolean b)
|
|
void |
showBookmarks()
Adds the bookmarks panel to the tabbed pane and shows it. |
|
void |
showBreakpoints()
Adds the breakpoints panel to the tabbed pane and shows it. |
|
private boolean |
showCleanWarning()
|
|
void |
showDebugger()
Display the debugger tab and update the Debug menu accordingly. |
|
void |
showFindResultsPanel(FindResultsPanel panel)
Action that shows a find results tab. |
|
void |
showTab(Component c,
boolean showDetachedWindow)
Shows the components passed in the appropriate place in the tabbedPane depending on the position of the component in the _tabs list. |
|
void |
start()
Realizes this MainFrame by setting it visibile and configures the tabbed Pane. |
|
private static List<File> |
textURIListToFileList(String data)
Convert a string with URIs to a list of files. |
|
void |
toggleBookmark()
Toggle a bookmark. |
|
void |
uncommentLines()
Uncomment current selection using wing commenting. |
|
void |
updateStatusField()
Updates the status field with the current status of the Definitions Pane. |
|
void |
updateStatusField(String text)
ONLY executes in event thread. |
|
void |
viewInteractionsClassPath()
Displays the interactions classpath. |
|
| Methods inherited from class edu.rice.cs.util.swing.SwingFrame |
|---|
duringInit, initDone |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
private static final Log _log
private static final int INTERACTIONS_TAB
private static final int CONSOLE_TAB
private static final String ICON_PATH
private static final String DEBUGGER_OUT_OF_SYNC
private static final int DEBUG_STEP_TIMER_VALUE
private volatile AbstractGlobalModel _model
private volatile MainFrame.ModelListener _mainListener
private HashMap<OpenDefinitionsDocument,JScrollPane> _defScrollPanes
private volatile DefinitionsPane _currentDefPane
private volatile DefinitionsDocument _currentDefDoc
private volatile String _fileTitle
public final LinkedList<TabbedPanel> _tabs
public final JTabbedPane _tabbedPane
private final LinkedList<Pair<FindResultsPanel,Map<MovingDocumentRegion,HighlightManager.HighlightInfo>>> _findResults
private volatile DetachedFrame _tabbedPanesFrame
public volatile Component _lastFocusOwner
private volatile CompilerErrorPanel _compilerErrorPanel
private volatile JUnitPanel _junitPanel
private volatile JavadocErrorPanel _javadocErrorPanel
private volatile FindReplacePanel _findReplace
private volatile BreakpointsPanel _breakpointsPanel
private volatile BookmarksPanel _bookmarksPanel
private volatile DebugPanel _debugPanel
private volatile InteractionsPane _consolePane
private volatile JScrollPane _consoleScroll
private volatile ConsoleController _consoleController
private volatile InteractionsPane _interactionsPane
private volatile JPanel _interactionsContainer
private volatile InteractionsController _interactionsController
private volatile InteractionsScriptController _interactionsScriptController
private volatile InteractionsScriptPane _interactionsScriptPane
private volatile boolean _showDebugger
private volatile DetachedFrame _debugFrame
private final JPanel _statusBar
private final JLabel _statusField
private final JLabel _statusReport
private final JLabel _currLocationField
private final MainFrame.PositionListener _posListener
private volatile JSplitPane _docSplitPane
private volatile JSplitPane _debugSplitPane
JSplitPane _mainSplit
private volatile JButton _compileButton
private volatile JButton _closeButton
private volatile JButton _undoButton
private volatile JButton _redoButton
private volatile JButton _runButton
private volatile JButton _junitButton
private volatile JButton _errorsButton
private final JToolBar _toolBar
private final JFileChooser _interactionsHistoryChooser
private final JMenuBar _menuBar
private volatile JMenu _fileMenu
private volatile JMenu _editMenu
private volatile JMenu _toolsMenu
private volatile JMenu _projectMenu
private volatile JMenu _languageLevelMenu
private volatile JMenu _helpMenu
private volatile JMenu _debugMenu
private volatile JMenuItem _debuggerEnabledMenuItem
private JPopupMenu _interactionsPanePopupMenu
private JPopupMenu _consolePanePopupMenu
private volatile ConfigFrame _configFrame
private final HelpFrame _helpFrame
private final QuickStartFrame _quickStartFrame
private volatile AboutDialog _aboutDialog
private volatile RecentDocFrame _recentDocFrame
private volatile RecentFileManager _recentFileManager
private volatile RecentFileManager _recentProjectManager
private volatile File _currentProjFile
private volatile Timer _debugStepTimer
private volatile Timer _automaticTraceTimer
private volatile HighlightManager.HighlightInfo _currentLocationHighlight
private final IdentityHashMap<Breakpoint,HighlightManager.HighlightInfo> _documentBreakpointHighlights
private final IdentityHashMap<OrderedDocumentRegion,HighlightManager.HighlightInfo> _documentBookmarkHighlights
private volatile long _lastChangeTime
private volatile boolean _promptBeforeQuit
private volatile ConfigOptionListeners.SlaveJVMXMXListener _slaveJvmXmxListener
private volatile ConfigOptionListeners.MasterJVMXMXListener _masterJvmXmxListener
final DefaultGUIAvailabilityNotifier _guiAvailabilityNotifier
protected volatile HashMap<Window,WindowAdapter> _modalWindowAdapters
protected volatile Window _modalWindowAdapterOwner
private volatile JFileChooser _openChooser
private volatile JFileChooser _openProjectChooser
private volatile JFileChooser _saveChooser
private final FileFilter _projectFilter
private final FileFilter _txtFileFilter
private final FileFilter _anyFileFilter
private volatile ExecutorService _threadPool
private final FileOpenSelector _openSelector
private final FileOpenSelector _openFileOrProjectSelector
private final FileOpenSelector _openProjectSelector
private final FileOpenSelector _openAnyFileSelector
private final FileSaveSelector _saveSelector
private final FileSaveSelector _saveAsSelector
private final FileSaveSelector _saveCopySelector
private final JavadocDialog _javadocSelector
private volatile DirectoryChooser _folderChooser
private final JCheckBox _openRecursiveCheckBox
private final Action _moveToAuxiliaryAction
private final Action _removeAuxiliaryAction
private final Action _moveAllToAuxiliaryAction
private final Action _removeAllAuxiliaryAction
private final Action _newAction
private final Action _newClassAction
private final Action _newProjectAction
private volatile AbstractAction _runProjectAction
private volatile JarOptionsDialog _jarOptionsDialog
private final Action _jarProjectAction
private final Action _detachTabbedPanesAction
private volatile JMenuItem _detachTabbedPanesMenuItem
private final Action _detachDebugFrameAction
private volatile JMenuItem _detachDebugFrameMenuItem
private final Action _newJUnitTestAction
private final Action _openAction
private final Action _openFolderAction
private final Action _openFileOrProjectAction
private final Action _openProjectAction
private final Action _closeProjectAction
private final Action _closeAction
private final Action _closeAllAction
private final Action _closeFolderAction
private final Action _openAllFolderAction
private final Action _openOneFolderAction
public final Action _newFileFolderAction
private volatile AbstractAction _junitFolderAction
private final Action _saveAction
private final Action _saveAsAction
private final Action _saveCopyAction
private final Action _renameAction
private final Action _saveProjectAction
private final Action _saveProjectAsAction
private final Action _exportProjectInOldFormatAction
private final Action _revertAction
final Action _saveAllAction
private final Action _printDefDocAction
private final Action _printConsoleAction
private final Action _printInteractionsAction
private final Action _printDefDocPreviewAction
private final Action _printConsolePreviewAction
private final Action _printInteractionsPreviewAction
private final Action _pageSetupAction
private final Action _compileAction
private volatile AbstractAction _compileProjectAction
private volatile AbstractAction _compileFolderAction
private volatile AbstractAction _compileAllAction
private volatile AbstractAction _cleanAction
private volatile AbstractAction _autoRefreshAction
private volatile AbstractAction _runAction
private volatile AbstractAction _runAppletAction
private volatile AbstractAction _junitAction
private volatile AbstractAction _junitAllAction
private volatile AbstractAction _junitProjectAction
private volatile AbstractAction _javadocAllAction
private volatile AbstractAction _javadocCurrentAction
final Action cutAction
final Action copyAction
final Action pasteAction
private volatile ClipboardHistoryFrame _clipboardHistoryDialog
private final Action _pasteHistoryAction
private final Action _copyInteractionToDefinitionsAction
private final DelegatingAction _undoAction
private final DelegatingAction _redoAction
private final Action _quitAction
private final Action _forceQuitAction
private final Action _selectAllAction
private final Action _findReplaceAction
private final Action _findNextAction
private final Action _findPrevAction
private final Action _gotoLineAction
volatile PredictiveInputFrame<MainFrameStatics.GoToFileListEntry> _gotoFileDialog
private final Action _gotoFileAction
final Action _gotoFileUnderCursorAction
volatile PredictiveInputFrame<MainFrameStatics.JavaAPIListEntry> _openJavadocDialog
volatile Set<MainFrameStatics.JavaAPIListEntry> _javaAPISet
private volatile Action _openJavadocAction
final Action _openJavadocUnderCursorAction
final Action _closeSystemInAction
private volatile AutoCompletePopup _completeWordDialog
final Action completeWordUnderCursorAction
private final Action _indentLinesAction
private final Action _commentLinesAction
private final Action _uncommentLinesAction
private final Action _saveConsoleCopyAction
private final Action _clearConsoleAction
private final Action _showDebugConsoleAction
private final Action _resetInteractionsAction
private final Action _viewInteractionsClassPathAction
private final Action _helpAction
private final Action _quickStartAction
private final Action _aboutAction
private final Action _checkNewVersionAction
private final Action _errorsAction
private final Action _generateCustomDrJavaJarAction
private final Action _newDrJavaInstanceAction
private final Action _switchToNextAction
private final Action _switchToPrevAction
private final Action _switchToNextPaneAction
private final Action _browseBackAction
private final Action _browseForwardAction
private final Action _nextRegionAction
private final Action _prevRegionAction
private final Action _switchToPreviousPaneAction
private final Action _gotoClosingBraceAction
private final Action _gotoOpeningBraceAction
private final Action _editPreferencesAction
private volatile AbstractAction _projectPropertiesAction
private final Action _toggleDebuggerAction
private final Action _resumeDebugAction
private volatile JMenuItem _automaticTraceMenuItem
private final Action _automaticTraceDebugAction
private final Action _stepIntoDebugAction
private final Action _stepOverDebugAction
private final Action _stepOutDebugAction
final Action _toggleBreakpointAction
private final Action _clearAllBreakpointsAction
private final Action _breakpointsPanelAction
private final Action _bookmarksPanelAction
private final Action _toggleBookmarkAction
protected final Action _cutLineAction
protected final Action _clearLineAction
private final Action _beginLineAction
_getBeginLinePos()private final Action _selectionBeginLineAction
_getBeginLinePos()private final FileOpenSelector _interactionsHistoryFileSelector
private final Action _executeHistoryAction
private final Action _loadHistoryScriptAction
private final Action _saveInteractionsCopyAction
private final Action _saveHistoryAction
private final Action _clearHistoryAction
private final WindowListener _windowCloseListener
private final MouseListener _resetFindReplaceListener
private static final MainFrame.DJFileDisplayManager _djFileDisplayManager20
private static final MainFrame.DJFileDisplayManager _djFileDisplayManager30
private static final MainFrame.OddDisplayManager _oddDisplayManager20
private static final MainFrame.OddDisplayManager _oddDisplayManager30
private static final Icon _djProjectIcon
private final DisplayManager<INavigatorItem> _navPaneDisplayManager
public KeyListener _historyListener
public FocusListener _focusListenerForRecentDocs
public final FocusListener _undoRedoDefinitionsFocusListener
private volatile int _hourglassNestLevel
private volatile boolean _allowKeyEvents
HashSet<MainFrameStatics.GoToFileListEntry> _completeClassSet
HashSet<MainFrameStatics.JavaAPIListEntry> _autoImportClassSet
private volatile Object _updateLock
private volatile boolean _tabUpdatePending
private volatile boolean _waitAgain
private volatile Runnable _pendingUpdate
private volatile OpenDefinitionsDocument _pendingDocument
private volatile OrderedDocumentRegion _firstRegion
private volatile OrderedDocumentRegion _lastRegion
public static long UPDATE_DELAY
public static int UPDATER_PRIORITY
public static final Icon FIND_ICON
DropTarget dropTarget
private static DataFlavor uriListFlavor
PredictiveInputFrame<MainFrameStatics.JavaAPIListEntry> _autoImportDialog
JCheckBox _autoImportPackageCheckbox
private final Action _followFileAction
private final Action _executeExternalProcessAction
private volatile ExecuteExternalDialog _executeExternalDialog
private volatile EditExternalDialog _editExternalDialog
private final Action _editExternalProcessesAction
| Constructor Detail |
|---|
public MainFrame()
| Method Detail |
|---|
private FileFilter getSourceFileFilter()
private String getSuggestedFileExtension()
private File proposeBetterFileName(File f)
public void _newJavaClass()
private void initJarOptionsDialog()
public void resetJarOptionsDialogPosition()
private void initTabbedPanesFrame()
public void resetTabbedPanesFrame()
private void initDebugFrame()
public void resetDebugFrame()
public long getLastChangeTime()
public void pack()
pack in class Windowprivate void packHelp()
public boolean isSaveEnabled()
public void lostOwnership(Clipboard clipboard,
Transferable contents)
lostOwnership in interface ClipboardOwnerpublic void resetClipboardHistoryDialogPosition()
private void _showFindReplaceTab(boolean showDetachedWindow)
public void resetGotoFileDialogPosition()
void initGotoFileDialog()
void _gotoFileUnderCursor()
public void gotoFileMatchingMask(String mask)
mask - word specifying the file to go topublic void resetOpenJavadocDialogPosition()
void initOpenJavadocDialog()
public static Set<MainFrameStatics.JavaAPIListEntry> _generateJavaAPISet(String base,
String stripPrefix,
String suffix)
public static Set<MainFrameStatics.JavaAPIListEntry> _generateJavaAPISet(String base,
String stripPrefix,
URL url)
public Set<MainFrameStatics.GoToFileListEntry> getCompleteClassSet()
public void clearCompleteClassSet()
public void clearJavaAPISet()
public Set<MainFrameStatics.JavaAPIListEntry> getJavaAPISet()
public void generateJavaAPISet()
private void _openJavadocUnderCursor()
private void initCompleteWordDialog()
private void _completeWordUnderCursor()
public void resetCompleteWordDialogPosition()
public void _saveConsoleCopy(ConsoleDocument doc)
public void _saveDocumentCopy(SwingDocument doc)
private void _doResetInteractions()
public void viewInteractionsClassPath()
private void _switchToPane(Component c)
c - the pane to switch focus toprivate void _switchPaneFocus(boolean next)
next - true if we want to go to the next pane, false if the previous.public void editPreferences()
public void setAutomaticTraceMenuItemStatus()
public void toggleBookmark()
public void addToBrowserHistory()
public void addToBrowserHistoryBefore()
public FindResultsPanel createFindResultsPanel(RegionManager<MovingDocumentRegion> rm,
MovingDocumentRegion region,
String title,
String searchString,
boolean searchAll,
boolean searchSelectionOnly,
boolean matchCase,
boolean wholeWord,
boolean noComments,
boolean noTestCases,
WeakReference<OpenDefinitionsDocument> doc,
FindReplacePanel findReplace)
rm - the region manager that will contain the regionstitle - the title for the panelsearchString - string that was searched forsearchAll - whether all files were searcheddoc - weak reference to document in which search occurred (or started, if all documents were searched)findReplace - the FindReplacePanel that created this FindResultsPanel
void disableFindAgainOnClose(List<OpenDefinitionsDocument> projDocs)
public void showFindResultsPanel(FindResultsPanel panel)
private int _getBeginLinePos()
private void _closeInteractionsScript()
public static MainFrame.DJFileDisplayManager getFileDisplayManager20()
public static MainFrame.DJFileDisplayManager getFileDisplayManager30()
public static MainFrame.OddDisplayManager getOddDisplayManager20()
public static MainFrame.OddDisplayManager getOddDisplayManager30()
public DisplayManager<INavigatorItem> getNavPaneDisplayManager()
public void setVisible(boolean b)
setVisible in class Windowpublic void setUpDrJavaProperties()
void refreshBreakpointHighlightPainter()
void refreshBookmarkHighlightPainter()
void refreshFindResultsHighlightPainter(FindResultsPanel panel,
LayeredHighlighter.LayerPainter painter)
private DirectoryChooser makeFolderChooser(File workDir)
private void setUpKeys()
public void dispose()
dispose in class Windowpublic SingleDisplayModel getModel()
InteractionsPane getInteractionsPane()
InteractionsController getInteractionsController()
JButton getCloseButton()
JButton getCompileAllButton()
public void hourglassOn()
public void hourglassOff()
public void setAllowKeyEvents(boolean a)
public boolean getAllowKeyEvents()
public void debuggerToggle()
public void showDebugger()
public void hideDebugger()
private void _showDebuggerPanel()
private void _hideDebuggerPanel()
public void updateStatusField(String text)
public void updateStatusField()
public File[] getOpenFiles(JFileChooser jfc)
throws OperationCanceledException
jfc - the open dialog from which to extract information
OperationCanceledException
public File getSaveFile(JFileChooser jfc)
throws OperationCanceledException
OperationCanceledExceptionpublic DefinitionsPane getCurrentDefPane()
public CompilerErrorPanel getCompilerErrorPanel()
public JUnitPanel getJUnitPanel()
public JavadocErrorPanel getJavadocErrorPanel()
public CompilerErrorPanel getSelectedErrorPanel()
public boolean isCompilerTabSelected()
public boolean isTestTabSelected()
public boolean isJavadocTabSelected()
private void _installNewDocumentListener(OpenDefinitionsDocument d)
public void setStatusMessage(String msg)
msg - The message to place in the status barpublic void clearStatusMessage()
public void setStatusMessageFont(Font f)
f - The new font of the status bar messagepublic void setStatusMessageColor(Color c)
c - The color of the text
private void _processDocs(Collection<OpenDefinitionsDocument> docs,
Runnable1<OpenDefinitionsDocument> op)
void _moveToAuxiliary()
private void _removeAuxiliary()
void _moveAllToAuxiliary()
private void _removeAllAuxiliary()
private void _new()
private void _open()
private void _openFolder()
private void _openFileOrProject()
private void _putTextIntoDefinitions(String text)
private void _resetNavigatorPane()
private void _openProject()
public void openProject(FileOpenSelector projectSelector)
private void _openProjectHelper(File projectFile)
projectFile - the file of the project to openprivate void _setUpProjectButtons(File projectFile)
private void _openProjectUpdate()
boolean closeProject()
boolean _closeProject()
boolean _closeProject(boolean quitting)
quitting - whether the project is being closed as part of quitting DrJava
private void _configureBrowsing()
private boolean _checkProjectClose()
public File getCurrentProject()
public void open(FileOpenSelector openSelector)
openSelector - the selector that returns the files to openpublic void openFolder(DirectoryChooser chooser)
chooser - the selector that returns the files to open
TODO: change the dialog title to give the current path rather than "..."
private void _openFolder(File dir,
boolean rec,
String ext)
dir - the specified directoryrec - true if files in nested folders should be openedext - extensionprivate void _close()
private void _closeFolder()
private void _printDefDoc()
private void _printConsole()
private void _printInteractions()
private void _printDefDocPreview()
private void _printConsolePreview()
private void _printInteractionsPreview()
private void _pageSetup()
void closeAll()
private void _closeAll()
private boolean _save()
private boolean _saveAs()
private boolean _saveCopy()
private boolean _rename()
void _saveAll()
void _saveAllOld()
void saveProject()
private void _saveProject()
private void _editProject()
private void _newProject()
private boolean _saveProjectAs()
void _saveProjectHelper(File file)
public HashMap<OpenDefinitionsDocument,DocumentInfoGetter> gatherProjectDocInfo()
private DocumentInfoGetter _makeInfoGetter(OpenDefinitionsDocument doc)
private void _revert()
private void _revert(OpenDefinitionsDocument doc)
void quit()
void _updateSavedConfiguration()
private void _forceQuit()
private void _storePositionInfo()
private void _cleanUpDebugger()
private void _compile()
private void _compileFolder()
private void _compileProject()
private void _compileAll()
private boolean showCleanWarning()
private void _clean()
private void _scanClassFiles()
private void _runProject()
private void _runMain()
private void _runApplet()
private void _junit()
private void _junitFolder()
private void _junitProject()
private void _junitAll()
void debuggerResume()
throws DebugException
DebugExceptionvoid debuggerAutomaticTrace()
private void enableAutomaticTrace()
private void disableAutomaticTrace()
void debuggerStep(Debugger.StepType type)
void debuggerToggleBreakpoint()
void debuggerClearAllBreakpoints()
void _showFileMovedError(FileMovedException fme)
void _showProjectFileParseError(MalformedProjectFileException mpfe)
void _showFileNotFoundError(FileNotFoundException fnf)
void _showIOError(IOException ioe)
void _showClassNotFoundError(ClassNotFoundException cnfe)
void _showNoClassDefError(NoClassDefFoundError ncde)
void _showDebugError(DebugException de)
void _showJUnitInterrupted(UnexpectedException e)
void _showJUnitInterrupted(String message)
void _showError(Throwable e,
String title,
String message)
void _showWarning(Throwable e,
String title,
String message)
private void _showConfigException()
private File getChosenFile(JFileChooser fc,
int choice,
File previous,
boolean addSourceFileExtension)
throws OperationCanceledException
fc - File chooser presented to the userchoice - return value from fcprevious - previous file (or null if none)addSourceFileExtension - whether .java (or another appropriate extension) should be added to files without extension
OperationCanceledException - if file choice canceled
RuntimeException - if fc returns a bad file or choice
private File[] getChosenFiles(JFileChooser fc,
int choice)
throws OperationCanceledException
fc - File chooser presented to the userchoice - return value from fc
OperationCanceledException - if file choice canceled
RuntimeException - if fc returns a bad file or choiceprivate void _selectAll()
public int _jumpToLine(int lineNum)
private int _gotoLine()
private void _removeErrorListener(OpenDefinitionsDocument doc)
void _addGUIAvailabilityListener(Action a,
GUIAvailabilityListener.ComponentType... components)
void _addGUIAvailabilityListener(Component a,
GUIAvailabilityListener.ComponentType... components)
void _displayGUIComponentAvailabilityFrame()
private void _setUpGUIComponentAvailability()
private void _setUpActions()
private void _setUpAction(Action a,
String name,
String icon,
String longDesc)
private void _setUpAction(Action a,
String icon,
String shortDesc)
private ImageIcon _getIcon(String name)
name - Name of icon image file
public static ImageIcon getIcon(String name)
public void addMenuBarInOtherFrame(JMenuBar menuBar)
public void removeMenuBarInOtherFrame(JMenuBar menuBar)
void _setUpMenuBar(JMenuBar menuBar)
void _setUpMenuBar(JMenuBar menuBar,
JMenu fileMenu,
JMenu editMenu,
JMenu toolsMenu,
JMenu projectMenu,
JMenu debugMenu,
JMenu languageLevelMenu,
JMenu helpMenu)
private JMenuItem _addMenuItem(JMenu menu,
Action a,
VectorOption<KeyStroke> opt,
boolean updateKeyboardManager)
menu - Menu to add item toa - Action for the menu itemopt - Configurable keystroke for the menu itemupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenuItem _addMenuItem(JMenu menu,
Action a,
VectorOption<KeyStroke> opt,
int index,
boolean updateKeyboardManager)
menu - Menu to add item toa - Action for the menu itemopt - Configurable keystroke for the menu itemindex - Index at which the action is insertedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private void _setMenuShortcut(JMenuItem item,
Action a,
VectorOption<KeyStroke> opt,
boolean updateKeyboardManager)
item - Menu item containing the actiona - Action for the menu itemopt - Configurable keystroke for the menu itemupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpFileMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpEditMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpToolsMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpProjectMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpDebugMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!private void _setDebugMenuItemsEnabled(boolean isEnabled)
private void _setThreadDependentDebugMenuItems(boolean isSuspended)
isSuspended - is true when the current thread has just been suspended
false if the current thread has just been resumed
private JMenu _setUpLanguageLevelMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!
private JMenu _setUpHelpMenu(int mask,
boolean updateKeyboardManager)
mask - the keystroke modifier to be usedupdateKeyboardManager - true if the keyboard manager should be updated; pass true only for MainFrame!JButton _createManualToolbarButton(Action a)
public JButton _createToolbarButton(Action a)
public JButton _updateToolbarButton(JButton b,
Action a)
private void _setUpToolBar()
private void _updateToolBarVisible()
private void _updateToolbarButtons()
private void _fixToolbarHeights()
private void _setUpStatusBar()
private void _setUpTabs()
public void start()
private void _setUpContextMenus()
private void nextRecentDoc()
private void prevRecentDoc()
private void hideRecentDocFrame()
private static boolean isDisplayed(TabbedPanel p)
JScrollPane _createDefScrollPane(OpenDefinitionsDocument doc)
doc - The open definitions document to wrap
private static <R extends OrderedDocumentRegion> Pair<R,R> maxInterval(Pair<R,R> i,
Pair<R,R> j)
private void _setUpPanes()
void _switchDefScrollPane()
private void _refreshDefScrollPane()
public void resetUndo()
public DefinitionsPane getDefPaneGivenODD(OpenDefinitionsDocument doc)
private void _reenableScrollBar()
private File _getFullFile(File f)
throws IOException
f - the file for which to get the full path
IOExceptionprivate void _setCurrentDirectory(File file)
private void _setCurrentDirectory(OpenDefinitionsDocument doc)
private void _setMainFont()
private void _updateNormalColor()
private void _updateBackgroundColor()
private void _updateLineNums()
private void _repaintLineNums()
private void _updateDefScrollRowHeader()
public void removeCurrentLocationHighlight()
private void _disableStepTimer()
private void _updateDebugStatus()
protected void _disableInteractionsPane()
protected void _enableInteractionsPane()
public void commentLines()
public void uncommentLines()
public void scrollToDocumentAndOffset(OpenDefinitionsDocument doc,
int offset,
boolean shouldHighlight)
doc - Document to displayoffset - Offset to displayshouldHighlight - true iff the line should be highlighted. Only done in debugger.public void goToRegionAndHighlight(IDocumentRegion r)
public void scrollToDocumentAndOffset(OpenDefinitionsDocument doc,
int offset,
boolean shouldHighlight,
boolean shouldAddToHistory)
doc - Document to displayoffset - Offset to displayshouldHighlight - true iff the line should be highlighted.shouldAddToHistory - true if the location before and after the switch should be added to the browser historyboolean isProjectActiveAndMainClassSet()
boolean isProjectActiveAndBuildDirSet()
void askToIncreaseSlaveMaxHeap()
void askToIncreaseMasterMaxHeap()
public void projectRunnableChanged()
public JViewport getDefViewport()
public void removeTab(Component c)
public void showBookmarks()
public void showBreakpoints()
private void _createTab(TabbedPanel panel)
public void showTab(Component c,
boolean showDetachedWindow)
c - the component to show in the tabbedPaneshowDetachedWindow - true if the "Detached Panes" window should be shownprivate boolean _warnFileOpen(File f)
private boolean _verifyOverwrite(File f)
f - file to overwrite
true iff the user accepts overwriting.private void _resetJUnit()
private void _junitInterrupted(UnexpectedException e)
private void _junitInterrupted(String message)
boolean isDebuggerReady()
boolean isDebuggerEnabled()
FindReplacePanel getFindReplaceDialog()
private void _setUpKeyBindingMaps()
public void addComponentListenerToOpenDocumentsList(ComponentListener listener)
listener - The ComponentListener to add to the open documents list
This method allows for testing of the dancing UI (See MainFrameTest.testDancingUI()).public String getFileNameField()
public JMenu getEditMenu()
public void setPopupLoc(Window popup)
popup - the Popup windowpublic void dragEnter(DropTargetDragEvent dropTargetDragEvent)
dragEnter in interface DropTargetListenerpublic void dragExit(DropTargetEvent dropTargetEvent)
dragExit in interface DropTargetListenerpublic void dragOver(DropTargetDragEvent dropTargetDragEvent)
dragOver in interface DropTargetListenerpublic void dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
dropActionChanged in interface DropTargetListenerpublic void drop(DropTargetDropEvent dropTargetDropEvent)
drop in interface DropTargetListenerpublic static void openExtProcessFile(File file)
public static void openExtProcessJarFile(File file)
private static List<File> textURIListToFileList(String data)
data - string with URIs
public void handleRemoteOpenFile(File f,
int lineNo)
f - file to openlineNo - line number to jump to, or -1 of not specifiedpublic void resetAutoImportDialogPosition()
private void _initAutoImportDialog()
private void _showAutoImportDialog(String s)
private void _followFile()
private void _executeExternalProcess()
private void initExecuteExternalProcessDialog()
public void resetExecuteExternalProcessPosition()
private void initEditExternalProcessDialog()
public void resetEditExternalProcessPosition()
public void installModalWindowAdapter(Window w,
Runnable1<? super WindowEvent> toFrontAction,
Runnable1<? super WindowEvent> closeAction)
w - window trying to get the modal window listenertoFrontAction - action to be performed after the window has been moved to the front againcloseAction - action to be performed when the window is closingpublic void removeModalWindowAdapter(Window w)
w - window releasing the modal window adapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||