processing.mode.java

## Class JavaMode

- Object
- - Mode
  - - JavaMode

-     public class JavaMode
      extends Mode

- - ### Field Summary

    - ### Fields inherited from class Mode

      `contribLibraries, coreLibraries`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JavaMode(Base base, File folder)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Editor` | `createEditor(Base base, String path, EditorState state)` Create a new editor associated with this mode.
    `Library` | `getCoreLibrary()`
    `String` | `getDefaultExtension()` Returns the default extension for this editor setup.
    `File[]` | `getExampleCategoryFolders()` Override this to control the order of the first set of example folders and how they appear in the examples window.
    `String[]` | `getExtensions()` Returns a String[] array of proper extensions.
    `String[]` | `getIgnorable()` Get array of file/directory names that needn't be copied during "Save As".
    `String` | `getTitle()` Return the pretty/printable/menu name for this mode.
    `boolean` | `handleExportApplication(Sketch sketch)`
    `Runner` | `handlePresent(Sketch sketch, RunnerListener listener)`
    `Runner` | `handleRun(Sketch sketch, RunnerListener listener)`

    - ### Methods inherited from class Mode

      `buildContributedExamplesTrees, buildExamplesTree, buildSketchbookTree, canEdit, drawBackground, getBoolean, getClassLoader, getColor, getContentFile, getContentStream, getExamplesFolder, getFolder, getFont, getIdentifier, getImportMenu, getInteger, getKeywordFiles, getLibrariesFolder, getLibrary, getModuleExtension, getReferenceFolder, getStyle, getTokenMarker, getToolbarMenu, hideExtension, insertToolbarRecentMenu, isDefaultExtension, isDefaultExtension, loadImage, lookupReference, prepareExportFolder, rebuildImportMenu, rebuildLibraryList, removeToolbarRecentMenu, resetExamples, setClassLoader, setupGUI, showExamplesFrame, showSketchbookFrame, toString, validExtension`

    - ### Methods inherited from class Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### JavaMode

          public JavaMode(Base base,
                  File folder)

  - ### Method Detail

    - #### createEditor

          public Editor createEditor(Base base,
                            String path,
                            EditorState state)

      Description copied from class: `Mode`
      Create a new editor associated with this mode.
      Specified by:
        `createEditor` in class `Mode`

    - #### getTitle

          public String getTitle()

      Description copied from class: `Mode`
      Return the pretty/printable/menu name for this mode. This is separate from the single word name of the folder that contains this mode. It could even have spaces, though that might result in sheer madness or total mayhem.
      Specified by:
        `getTitle` in class `Mode`

    - #### getExampleCategoryFolders

          public File[] getExampleCategoryFolders()

      Description copied from class: `Mode`
      Override this to control the order of the first set of example folders and how they appear in the examples window.
      Overrides:
        `getExampleCategoryFolders` in class `Mode`

    - #### getDefaultExtension

          public String getDefaultExtension()

      Description copied from class: `Mode`
      Returns the default extension for this editor setup.
      Specified by:
        `getDefaultExtension` in class `Mode`

    - #### getExtensions

          public String[] getExtensions()

      Description copied from class: `Mode`
      Returns a String[] array of proper extensions.
      Specified by:
        `getExtensions` in class `Mode`

    - #### getIgnorable

          public String[] getIgnorable()

      Description copied from class: `Mode`
      Get array of file/directory names that needn't be copied during "Save As".
      Specified by:
        `getIgnorable` in class `Mode`

    - #### getCoreLibrary

          public Library getCoreLibrary()

      Overrides:
        `getCoreLibrary` in class `Mode`

    - #### handleRun

          public Runner handleRun(Sketch sketch,
                         RunnerListener listener)
                           throws SketchException

      Throws:
        `SketchException`

    - #### handlePresent

          public Runner handlePresent(Sketch sketch,
                             RunnerListener listener)
                               throws SketchException

      Throws:
        `SketchException`

    - #### handleExportApplication

          public boolean handleExportApplication(Sketch sketch)
                                          throws SketchException,
                                                 IOException

      Throws:
        `SketchException`
        `IOException`