Example: Making a new plug-in
To create a new plug-in for SimplyHTML,
-
copy file
PluginTemplate.java into your plug-in project's source directoy
-
rename
PluginTemplate.java to a name you would like to give your new
plug-in class
-
change the paramteters of call
super in PluginTemplate
's constructor according to names you choose (refer to class
AbstractPlugin for a definition of these parameters)
-
create one or more .
properties files as needed for your new plug-in (you can use
file
PluginTemplate.properties a an example)
-
adjust parameter
"pluginTemplateLabel" in method
getGUIName to an ID String referring to respective entry in your .
properties file(s)
-
add methods and fields to implement the functionality desired for your
new plug-in
-
compile the new plug-in's source file (
.java) to a .class
file
-
place .class
file and .properties
file(s) into a Java archive (JAR) file, package
com.lightdev.app.shtm.plugin.installed
-
place the JAR file into the directory
SimplyHTML.jar is installed in
When starting SimplyHTML for the next time, your new plug-in should be
listed in the 'Manage Plugins...' dialog.