BaseEditorPlugin class abstract

Simplified base class for editor plugins.

Provides convenient helper methods while leaving state management and error tracking to PluginManager.

Key differences from EditorPlugin:

  • Splits initialize/dispose into onInitialize/onDispose hooks
  • Provides context caching for easier access
  • Offers helper methods for common patterns

Constructors

BaseEditorPlugin()

Properties

configSchema → PluginConfigSchema?
Optional configuration schema for this plugin
no setterinherited
context → PluginContext
Cached plugin context (available after initialization)
no setter
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
Check if plugin has been initialized
no setter
manifest → PluginManifest
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
getFileIconDescriptor(FileTreeNode node) → FileIconDescriptor?
Get the icon descriptor for a file tree node.
inherited
getSupportedLanguages() List<String>
inherited
getUIDescriptor() → PluginUIDescriptor?
Get the UI descriptor for this plugin.
inherited
initialize(PluginContext context) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDispose() Future<void>
Called when plugin is being disposed. Override this instead of dispose().
onFileClose(String fileId) → void
inherited
onFileContentChange(String fileId, String content) → void
inherited
onFileCreate(FileDocument file) → void
inherited
onFileDelete(String fileId) → void
inherited
onFileOpen(FileDocument file) → void
inherited
onFileSave(FileDocument file) → void
inherited
onFolderCreate(Folder folder) → void
inherited
onFolderDelete(String folderId) → void
inherited
onInitialize(PluginContext context) Future<void>
Called when plugin is being initialized. Override this instead of initialize().
safeExecute(String operation, void action(), {void onError(Object error)?}) → void
Helper: safely execute a synchronous operation with error logging
safeExecuteAsync(String operation, Future<void> action(), {void onError(Object error)?}) Future<void>
Helper: safely execute an asynchronous operation with error logging
supportsLanguage(String language) bool
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited