How to create your own plugin?

  1. Your Plugin must be derived from the abstract class PledPlugin.
  2. override 3 (-4) methods:
    1. public String getToolTipText ()      to display tooltips and
    2. public String getButtonText ()      buttontext. You simply return the text.
    3. public String doCommand (String marked) gets the marked text as parameter, and should do something usefull with it. The returned result will replace the marked text.
    4. public ImageIcon getIcon ()      may be overwritten, if you got an own icon. This schould be placed in the directory pled/classes/images , where the others are.
      getIcon is optional and needn' t been replaced.
      Errors at item 2.a to 2.c will be found by the compiler.
  3. The name of the plugins must end with "Plugin.java".
  4. The class-file must be put into the directory pled/classes/pled/plugins .
    An error in item 2 or 3 will lead to following situation: your plugin is not loaded.


Sample - plugins:

counter Valid HTML 4.0!