Package editor

Class GosuPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GosuPanel extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • GosuPanel

      public GosuPanel(JFrame frame)
  • Method Details

    • getTabSelectionHistory

      public NavigationHistory getTabSelectionHistory()
    • configUI

      void configUI()
    • makeMainToolbar

      private ToolBar makeMainToolbar()
    • makeSeparator

      private JComponent makeSeparator()
    • getExperimentView

      public ExperimentView getExperimentView()
    • getMessagesPanel

      public MessagesPanel getMessagesPanel()
    • getSearchPanel

      public SearchPanel getSearchPanel()
    • getConsolePanel

      public SystemPanel getConsolePanel()
    • getDebugPanel

      public DebugPanel getDebugPanel()
    • showMessages

      public MessagesPanel showMessages(boolean bShow)
    • showSearches

      public SearchPanel showSearches(boolean bShow)
    • showConsole

      public SystemPanel showConsole(boolean bShow)
    • showTab

      public <P extends JComponent> P showTab(boolean bShow, String title, Icon icon, P panel, Supplier<P> creator)
    • handleMacStuff

      private void handleMacStuff()
    • clearTabs

      public void clearTabs()
    • storeExperimentState

      private void storeExperimentState()
    • getExperiment

      public Experiment getExperiment()
    • restoreExperimentState

      public void restoreExperimentState(Experiment experiment)
    • makeStatusBar

      private JPanel makeStatusBar()
    • setStatus

      public void setStatus(String status)
    • parse

      private void parse()
    • savePreviousTab

      private void savePreviousTab()
    • createEditor

      private EditorHost createEditor(Path file, IScriptPartId partId)
    • addDirtyListener

      private void addDirtyListener(EditorHost editor)
    • makeMenuBar

      private JMenuBar makeMenuBar()
    • makeHelpMenu

      private void makeHelpMenu(JMenuBar menuBar)
    • makeWindowMenu

      private void makeWindowMenu(JMenuBar menuBar)
    • makeCodeMenu

      private void makeCodeMenu(JMenuBar menuBar)
    • getCurrentGosuEditor

      public GosuEditor getCurrentGosuEditor()
    • makeBuildMenu

      private void makeBuildMenu(JMenuBar menuBar)
    • getCurrentEditor

      public EditorHost getCurrentEditor()
    • getRunConfig

      public IRunConfig getRunConfig()
    • makeRunMenu

      private void makeRunMenu(JMenuBar menuBar)
    • makeSearchMenu

      private void makeSearchMenu(JMenuBar menuBar)
    • getGosuPanel

      private GosuPanel getGosuPanel()
    • makeEditMenu

      private void makeEditMenu(JMenuBar menuBar)
    • makeFileMenu

      private void makeFileMenu(JMenuBar menuBar)
    • closeActiveEditor

      private void closeActiveEditor()
    • closeOthers

      private void closeOthers()
    • displayClasspath

      private void displayClasspath()
    • shipIt

      public void shipIt()
    • make

      public boolean make()
    • compile

      public boolean compile(Set<IType> types)
    • rebuild

      public boolean rebuild()
    • exit

      public void exit()
    • setEditorSplitPosition

      public void setEditorSplitPosition(int iPos)
    • setExperimentSplitPosition

      public void setExperimentSplitPosition(int iPos)
    • getGosuEditor

      public EditorHost getGosuEditor()
    • mapKeystrokes

      private void mapKeystrokes()
    • mapKeystroke

      private void mapKeystroke(KeyStroke ks, String strCmd, Action action)
    • resetChangeHandler

      void resetChangeHandler()
    • openFile

      public void openFile()
    • openFile

      public void openFile(Path file, boolean bFocus)
    • openType

      public boolean openType(String fqn, boolean bFocus)
    • makePartId

      public static IScriptPartId makePartId(Path file)
    • openInitialFile

      public void openInitialFile(IScriptPartId partId, Path file)
    • openFile

      private void openFile(IScriptPartId partId, Path file, boolean bFocus)
    • removeLruTab

      private void removeLruTab()
    • updateTitle

      private void updateTitle()
    • openTab

      private boolean openTab(Path file, boolean bFocus)
    • findTab

      public EditorHost findTab(Path file)
    • setCurrentFile

      private void setCurrentFile(Path file)
    • getCurrentFile

      public Path getCurrentFile()
    • save

      public boolean save()
    • save

      public boolean save(Path file, EditorHost editor)
    • saveAndReloadType

      private void saveAndReloadType(Path file, EditorHost editor)
    • reload

      void reload(IType type)
    • saveIfDirty

      public boolean saveIfDirty()
    • refresh

      public void refresh(Path file)
      This should only be called when either the file's contents change externally, or when the file saves to disk.
    • newExperiment

      public void newExperiment()
    • openExperiment

      public void openExperiment()
    • openExperiment

      public void openExperiment(Path experimentDir)
    • isValidGosuSourceFile

      private boolean isValidGosuSourceFile(Path file)
    • saveAs

      public void saveAs()
    • dumpBytecode

      public void dumpBytecode()
    • getClassAtCaret

      private IGosuClass getClassAtCaret()
    • execute

      public void execute(IRunConfig runConfig)
    • debug

      public void debug(IRunConfig runConfig)
    • isRunning

      public boolean isRunning()
    • isDebugging

      public boolean isDebugging()
    • getTypeNamesCache

      public TypeNameCache getTypeNamesCache()
    • addBusySignal

      public void addBusySignal(RunState runState)
    • pipeInput

      public void pipeInput()
    • killProcess

      public void killProcess()
    • getDebugger

      public Debugger getDebugger()
    • clearDebugger

      public void clearDebugger()
    • makeDebugger

      public void makeDebugger(com.sun.jdi.VirtualMachine vm)
    • handleDebuggerStateChange

      private void handleDebuggerStateChange()
    • jumptToBreakpoint

      public void jumptToBreakpoint(com.sun.jdi.Location location, boolean bFocus)
    • showDebugger

      public void showDebugger(boolean bShow)
    • getBreakpointManager

      public BreakpointManager getBreakpointManager()
    • getEditorTabPane

      public TabPane getEditorTabPane()
    • getOpenFilesInProject

      public List<FileTree> getOpenFilesInProject()
    • removeBusySignal

      public void removeBusySignal()
    • clearOutput

      public void clearOutput()
    • getUndoManager

      public AtomicUndoManager getUndoManager()
    • selectTab

      public void selectTab(Path file)
    • closeTab

      public void closeTab(Path file)
    • goBackward

      public void goBackward()
    • canGoBackward

      public boolean canGoBackward()
    • goForward

      public void goForward()
    • canGoForward

      public boolean canGoForward()
    • displayRecentViewsPopup

      public void displayRecentViewsPopup()
    • isDirty

      public boolean isDirty(EditorHost editor)
    • setDirty

      public void setDirty(EditorHost editor, boolean bDirty)
    • getClipboard

      public Clipboard getClipboard()
    • markErrorsForGosuLanguageTest

      private void markErrorsForGosuLanguageTest()
    • joinLines

      private String joinLines(String[] strLines)
    • removeOldIssueKeyMarkers

      private void removeOldIssueKeyMarkers(String[] lines)
    • addIssueKeyMarkers

      private void addIssueKeyMarkers(String[] strLines, List<Integer> lines, Map<Integer,List<String>> map)
    • makeIssueString

      private String makeIssueString(List<String> issues)