Editor library

Java (11), Swing, SimpleLibrary

Various projects may require the use of a simple text editor as part of the project. A text editor should not only be able to work with text, but also open and save files, search within text, replace words (substrings) with others. This is precisely what the game.weekend.editorlibrary package focused on during the development of TextEditor. Here I have moved this package from TextEditor into a separate module for use in future projects.

Eclipse was used for development. The project is located here: https://github.com/weekend-game/editorlibrary/ (EN) и здесь: https://gitflic.ru/project/weekend-game/editorlibrary/ (RU).

How to open the project in Eclipse

Download the repository to your computer. In Eclipse, select "Import..." from the "File" menu. In the window that opens, select "Existing projects into workspace." Navigate to the folder with the downloaded repository and click "Finish." The project will open in Eclipse.

How to use the library

The ready-to-use library is located in the app folder. You should include this library in the project you're creating and specify in the project's module-info file: requires game.weekend.editorlibrary;.

The library is very simple, so you can simply browse its component classes. However, the best documentation is provided by the examples of using the library classes in the TextEditor application. In this application, all library classes are located in the game.weekend.editorlibrary package and are not implemented as a standalone module.

Results

This library will come in handy. And I already know why :-).