05_developer_tutorials:02_extending_groimp:jedit-plugins
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| 05_developer_tutorials:02_extending_groimp:jedit-plugins [2025/01/29 08:33] – removed - external edit (Unknown date) 127.0.0.1 | 05_developer_tutorials:02_extending_groimp:jedit-plugins [2025/01/29 08:33] (current) – ↷ Page moved from 05_developer_tutorials:jedit-plugins to 05_developer_tutorials:02_extending_groimp:jedit-plugins tim2 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== JEdit plugins for GroIMP ====== | ||
| + | The embedded text editor jEdit has some additional plugins not included in the GroIMP version. | ||
| + | |||
| + | They can be downloaded on the jEdit [[http:// | ||
| + | |||
| + | ==== Integration in GroIMP ==== | ||
| + | |||
| + | To include a jEdit plugin in GroIMP you need to: | ||
| + | - Download the plugin source code from the jEdit website. | ||
| + | - Do some modification on the code (explained bellow). | ||
| + | - Compile the plugin into a jar. | ||
| + | - Move the jar into the jEdit repository (.de.grogra.ext.jedit/ | ||
| + | |||
| + | To be integrated in GroIMP the jEdit plugins must be modified. Indeed the main component of jEdit, the View, inherits from '' | ||
| + | |||
| + | As the to classes cannot be casted on each other, the plugins, that interact with a '' | ||
| + | |||
| + | The two most common changes you will need to do are: | ||
| + | - Get a java.awt.Windows from a JFrame. | ||
| + | - Get a JRootPane from a java.awt.Windows. | ||
| + | |||
| + | For instance, in case 1: | ||
| + | '' | ||
| + | |||
| + | And case 2: '' | ||
| + | '' | ||
| + | |||
| + | **To spot the where your should make changes in the code you can use Eclipse.** | ||
| + | Import the jEdit plugin' | ||
