public class JavaMode extends Mode
backgroundImage, base, classLoader, contribLibraries, coreLibraries, coreLibrary, examplesFolder, examplesFrame, examplesMenu, folder, importMenu, importMenuIndex, importToLibraryTable, keywordToReference, librariesFolder, referenceFolder, sketchbookFrame, theme, tokenMarker, toolbarMenu| Modifier and Type | Method and Description |
|---|---|
Editor |
createEditor(Base base,
String path,
EditorState state) |
void |
ensurePrefsExist() |
Library |
getCoreLibrary() |
String |
getDefaultExtension() |
File[] |
getExampleCategoryFolders() |
String[] |
getExtensions() |
String[] |
getIgnorable() |
String |
getSearchPath()
Any modes that extend JavaMode can override this method to add additional
JARs to be included in the classpath for code completion and error checking
|
String |
getTitle() |
boolean |
handleExportApplication(Sketch sketch) |
Runner |
handleLaunch(Sketch sketch,
RunnerListener listener,
boolean present)
Handles the standard Java "Run" or "Present"
|
Runner |
handleTweak(Sketch sketch,
RunnerListener listener)
Start a sketch in tweak mode
|
void |
loadPreferences() |
void |
loadSuggestionsMap() |
static void |
main(String[] args) |
void |
savePreferences() |
addTemplateFiles, buildSketchbookTree, canEdit, checkSketchbookTemplate, createTokenMarker, findLibraryByName, getBoolean, getClassLoader, getColor, getContentFile, getContentStream, getExamplesFolder, getFolder, getFont, getIdentifier, getImportMenu, getInteger, getKeywordFiles, getLibrariesFolder, getLibrary, getModuleExtension, getReferenceFolder, getString, getStyle, getTemplateFolder, getTokenMarker, getTokenMarker, getToolbarMenu, hideExtension, insertImportMenu, insertToolbarRecentMenu, isDefaultExtension, isDefaultExtension, loadIcon, loadImage, loadImageX, loadKeywords, loadKeywords, lookupReference, makeGradient, prepareExportFolder, rebuildExamplesFrame, rebuildImportMenu, rebuildLibraryList, rebuildSketchbookFrame, rebuildToolbarMenu, removeImportMenu, removeToolbarRecentMenu, requireExampleCompatibility, setClassLoader, setupGUI, showExamplesFrame, showSketchbookFrame, toString, validExtensionpublic static volatile boolean errorCheckEnabled
public static volatile boolean warningsEnabled
public static volatile boolean codeCompletionsEnabled
public static volatile boolean debugOutputEnabled
public static volatile boolean errorLogsEnabled
public static volatile boolean autoSaveEnabled
public static volatile boolean autoSavePromptEnabled
public static volatile boolean defaultAutoSaveEnabled
public static volatile boolean ccTriggerEnabled
public static volatile boolean importSuggestEnabled
public static volatile boolean inspectModeHotkeyEnabled
public static int autoSaveInterval
public static volatile int codeCompletionTriggerLength
public static final String prefErrorCheck
public static final String prefWarnings
public static final String prefDebugOP
public static final String prefErrorLogs
public static final String prefAutoSaveInterval
public static final String prefAutoSave
public static final String prefAutoSavePrompt
public static final String prefDefaultAutoSave
public static final String suggestionsFileName
public static final String COMPLETION_PREF
public static final String COMPLETION_TRIGGER_PREF
public static final String SUGGEST_IMPORTS_PREF
public static final String INSPECT_MODE_HOTKEY_PREF
public Editor createEditor(Base base, String path, EditorState state) throws EditorException
createEditor in class ModeEditorExceptionpublic File[] getExampleCategoryFolders()
getExampleCategoryFolders in class Modepublic String getDefaultExtension()
getDefaultExtension in class Modepublic String[] getExtensions()
getExtensions in class Modepublic String[] getIgnorable()
getIgnorable in class Modepublic Library getCoreLibrary()
getCoreLibrary in class Modepublic Runner handleLaunch(Sketch sketch, RunnerListener listener, boolean present) throws SketchException
SketchExceptionpublic Runner handleTweak(Sketch sketch, RunnerListener listener) throws SketchException
SketchExceptionpublic boolean handleExportApplication(Sketch sketch) throws SketchException, IOException
SketchExceptionIOExceptionpublic String getSearchPath()
public void loadPreferences()
public void savePreferences()
public void loadSuggestionsMap()
public void ensurePrefsExist()
public static void main(String[] args)
Copyright © 2001–2017 Processing Foundation. All rights reserved.