Difference between revisions of "Installing 3rd party plugins"

(plugins are no longer automatically added/committed)
Line 1: Line 1:
 
Please try to avoid closed-source plugins.
 
Please try to avoid closed-source plugins.
  
Just move the .jar into plugins/, and create/adjust the corresponding
+
If you have the sources, copy them into src-plugins/.  (If you do not have the sources, copy the .jar into staged-plugins/.)
.config file in staged-plugins/. Move the sources into src-plugins/.
+
 
Then type "make" and it will be added/updated and committed.
+
Then, add a .config file in staged-plugins/ and type "./Fake.sh".  The plugin will be compiled and installed into plugins/.
  
 
Longer version:
 
Longer version:
Line 26: Line 26:
 
menus fit in snuggly with the common Fiji menu structure.
 
menus fit in snuggly with the common Fiji menu structure.
  
Then just "make", and the plugin will be automatically installed and
+
Then just "make", and the plugin will be automatically installed.
committed (this needs "git" installed, though).
 

Revision as of 07:24, 4 July 2008

Please try to avoid closed-source plugins.

If you have the sources, copy them into src-plugins/. (If you do not have the sources, copy the .jar into staged-plugins/.)

Then, add a .config file in staged-plugins/ and type "./Fake.sh". The plugin will be compiled and installed into plugins/.

Longer version:

The .config file should look something like this:

       File, "Show Prime Numbers", Primes_("")

where "File" is the menu you want to add the item to -- at the moment, the only valid choices are "Plugins", "Plugins><submenu>", "File>Import", "File>Save", "Analyze>Tools", "Help>About" and "Edit>Options".

Next comes the title of the menu item, and lastly the class name of the plugin with a parameter that will be passed to the run() method of that class. It must a fully qualified java name (e.g. com.sun.java.something) if the plugin belongs to a java package.

In other words, the .config file will become the plugins.config of the .jar file.

Please make sure that your .config file is designed such that the menus fit in snuggly with the common Fiji menu structure.

Then just "make", and the plugin will be automatically installed.