NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 1102 - Plugins -> Shortcuts -> Install Plugin has empty list
Plugins -> Shortcuts -> Install Plugin has empty list
Status: RESOLVED WONTFIX
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2015-07-01 04:40 CDT by Gerald Torgersen
Modified: 2015-07-01 16:49 CDT
4 users (show)

See Also:

Description Gerald Torgersen 2015-07-01 04:40:03 CDT
There are no plugins showing up for adding shortcuts in that list anymore. I get "No plugins found".
There are lots of plugins installed and I used it before to add shortcut to plugins I develop.
I tried on another computer with the same result. My Fiji was updated yesterday.

Greetings Gerald

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: CHECK_TURNED_OFF

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Users\gerald\Dropbox\Fiji.app/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\Users\gerald\Dropbox\Fiji.app

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20150624045330)
Fiji: http://fiji.sc/update/ (last check:20150625112927)

Files not up-to-date:
  1ad3be0d (LOCAL_ONLY) 20141015121332 jars/jpedalSTD.jar
  681c7277 (LOCAL_ONLY) 20150223112531 macros/startMOA_QA.ijm
Comment 1 Mark Hiner 2015-07-01 10:14:04 CDT
Hi Gerald,

 The logic for this behavior is in the ImageJ 1.x class ij.plugin.Installer: https://github.com/imagej/ImageJA/blob/v1.49v/src/main/java/ij/plugin/Installer.java#L106-L129

 The plugin only looks for .class and .java files. If you put your own .class files in Fiji.app/plugins/ it should pick them up appropriately.

 If not, let us know!
Comment 2 Wayne Rasband 2015-07-01 12:08:21 CDT
The Plugins>Shortcuts>Install Plugin command is obsolete and is removed in the latest ImageJ daily build (1.50a10). You can use Plugins>Shortcuts>Create Shortcut or Plugins>Shortcuts>Create Shortcut by Name to add a shortcut to a plugin.
Comment 3 Gerald Torgersen 2015-07-01 12:54:17 CDT
Thank you for the information. So I wait for the update to come to Fiji.

I found a workaround using the startup macros to add a keyboard shortcut for my plugin.

So plugins in jar-format are not supported by the class ij.plugin.Installer?
I was so happy when I finnaly learned how to produce jar-files, haha.

I am not a real programmer as you see, just trying to produce som small tools for dental research.

Thank you all for help

Greetings Gerald
Comment 4 Curtis Rueden 2015-07-01 12:55:40 CDT
> I wait for the update to come to Fiji.

Note that you can use the Help > Update ImageJ... command to upgrade the version of ImageJ 1.x, even before the ImageJ update site begins shipping it.
Comment 5 Mark Hiner 2015-07-01 13:15:18 CDT
Hi Gerald,

>I was so happy when I finnaly learned how to produce jar-files

If your goal is to make your plugin appear in the menus, and you're creating a .jar anyway, then it might be easier for you to add a plugins.config file to your jar.

This will cause your plugin to be discovered automatically and placed in the menu path of your choosing.

Here's a brief overview and example of the plugins.config use:
http://fiji.sc/wiki/index.php/Description_of_ImageJ%27s_plugin_architecture#How_does_ImageJ_find_the_plugins.3F
Comment 6 Gerald Torgersen 2015-07-01 13:30:04 CDT
Hi Mark,

thank you for the advise. I have done that. So the plugin adds nice to the Plugins menu. I just had problems defining a shortcut. The script is used on many images, so I want it to start pressing a button, e.g. F5.

As far as I know  the shortcut key cannot be defined in the plugins.config file. I am sure that is intented to avoid conflicts.

Anyway, I solved my problem for this time. 

Greetings Gerald
Comment 7 Curtis Rueden 2015-07-01 16:49:01 CDT
For what it's worth, ImageJ2 commands can define their own shortcuts. Here is an example that defines its own shortcut as shift+backslash:

https://github.com/scijava/scijava-plugins-commands/blob/scijava-plugins-commands-0.2.0/src/main/java/org/scijava/plugins/commands/debug/DumpStack.java