Some refactorings and updates: add many new examples to the plugin template. All examples are in
`src/modules/examples.ts`:
Basic Examples- registerNotifier
- registerPrefs, unregisterPrefs
UI Examples
- registerStyleSheet(the official make-it-red example)
- registerRightClickMenuItem
- registerRightClickMenuPopup
- registerWindowMenuWithSeprator
- registerExtraColumn
- registerExtraColumnWithCustomCell
- registerCustomCellRenderer
- registerLibraryTabPanel
- registerReaderTabPanel
- unregisterUIExamples
The code structure is also refactored. The plugin template now turns to a modulized event-driven style, more flexible and extensive compared to the object-oriented style.
All event hooks are listed in the `src/hooks.ts`: onStartup, onShutdown, onNotify, onPrefsEvent, and other custom hooks. Functions are in `src/modules`.
Welcome discussions & contributions with new examples!