Package editor

Class CommonMenus


  • public class CommonMenus
    extends java.lang.Object
    • Constructor Detail

      • CommonMenus

        public CommonMenus()
    • Method Detail

      • makeCut

        public static javax.swing.JMenuItem makeCut​(java.util.function.Supplier<EditorHost> editor)
      • makeCopy

        public static javax.swing.JMenuItem makeCopy​(java.util.function.Supplier<EditorHost> editor)
      • makePaste

        public static javax.swing.JMenuItem makePaste​(java.util.function.Supplier<EditorHost> editor)
      • makePasteJavaAsGosu

        public static javax.swing.JMenuItem makePasteJavaAsGosu​(java.util.function.Supplier<GosuEditor> editor)
      • makeFindUsages

        public static javax.swing.JMenuItem makeFindUsages​(java.util.function.Supplier<FileTree> tree)
      • makeFindUsagesInFile

        public static javax.swing.JMenuItem makeFindUsagesInFile()
      • makeHighlightFindUsagesInFile

        public static javax.swing.JMenuItem makeHighlightFindUsagesInFile()
      • makeNextOccurrent

        public static javax.swing.JMenuItem makeNextOccurrent​(java.util.function.Supplier<SearchPanel> search)
      • makePrevOccurrent

        public static javax.swing.JMenuItem makePrevOccurrent​(java.util.function.Supplier<SearchPanel> search)
      • makeCodeComplete

        public static javax.swing.JMenuItem makeCodeComplete​(java.util.function.Supplier<GosuEditor> editor)
      • makeParameterInfo

        public static javax.swing.JMenuItem makeParameterInfo​(java.util.function.Supplier<GosuEditor> editor)
      • makeExpressionType

        public static javax.swing.JMenuItem makeExpressionType​(java.util.function.Supplier<GosuEditor> editor)
      • makeGotoDeclaration

        public static javax.swing.JMenuItem makeGotoDeclaration​(java.util.function.Supplier<GosuEditor> editor)
      • makeShowFileInTree

        public static javax.swing.JMenuItem makeShowFileInTree​(java.util.function.Supplier<EditorHost> editor)
      • makeQuickDocumentation

        public static javax.swing.JMenuItem makeQuickDocumentation​(java.util.function.Supplier<GosuEditor> editor)
      • makeViewBytecode

        public static javax.swing.JMenuItem makeViewBytecode()
      • makeViewCompile

        public static javax.swing.JMenuItem makeViewCompile()
      • makeRun

        public static javax.swing.JMenuItem makeRun​(java.util.function.Supplier<IRunConfig> runConfig)
      • makeDebug

        public static javax.swing.JMenuItem makeDebug​(java.util.function.Supplier<IRunConfig> runConfig)
      • makeRunConfig

        public static javax.swing.JMenuItem makeRunConfig()
      • makeDebugConfig

        public static javax.swing.JMenuItem makeDebugConfig()
      • makeStop

        public static javax.swing.JMenuItem makeStop​(java.util.function.Supplier<GosuPanel> gosuPanel)
      • makeToggleBreakpoint

        public static javax.swing.JMenuItem makeToggleBreakpoint​(java.util.function.Supplier<BreakpointManager> bpm,
                                                                 java.util.function.Supplier<GosuEditor> editor)
      • makeStepOver

        public static javax.swing.JMenuItem makeStepOver​(java.util.function.Supplier<Debugger> debugger)
      • makeStepInto

        public static javax.swing.JMenuItem makeStepInto​(java.util.function.Supplier<Debugger> debugger)
      • makeStepOut

        public static javax.swing.JMenuItem makeStepOut​(java.util.function.Supplier<Debugger> debugger)
      • makeRunToCursor

        public static javax.swing.JMenuItem makeRunToCursor​(java.util.function.Supplier<Debugger> debugger,
                                                            java.util.function.Supplier<BreakpointManager> bpm,
                                                            java.util.function.Supplier<GosuEditor> editor)
      • makeDropFrame

        public static javax.swing.JMenuItem makeDropFrame​(java.util.function.Supplier<Debugger> debugger,
                                                          java.util.function.Supplier<com.sun.jdi.StackFrame> frame)
      • makePause

        public static javax.swing.JMenuItem makePause​(java.util.function.Supplier<Debugger> debugger)
      • makeResume

        public static javax.swing.JMenuItem makeResume​(java.util.function.Supplier<Debugger> debugger)
      • makeEvaluateExpression

        public static javax.swing.JMenuItem makeEvaluateExpression​(java.util.function.Supplier<Debugger> debugger)
      • makeShowExecutionPoint

        public static javax.swing.JMenuItem makeShowExecutionPoint​(java.util.function.Supplier<Debugger> debugger)
      • makeViewBreakpoints

        public static javax.swing.JMenuItem makeViewBreakpoints​(java.util.function.Supplier<Breakpoint> bp)
      • makeMuteBreakpoints

        public static javax.swing.JMenuItem makeMuteBreakpoints​(java.util.function.Supplier<BreakpointManager> bpm)
      • makeClear

        public static javax.swing.JMenuItem makeClear​(java.util.function.Supplier<GosuPanel> gosuPanel)
      • getGosuPanel

        private static GosuPanel getGosuPanel()
      • getExperiment

        private static Experiment getExperiment()
      • getOrMakeLocalFileTree

        private static FileTree getOrMakeLocalFileTree()