imagej / imagej/imagej2

Problem with EventHandler annotation in ImageJ legacy UI

Open
#258 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

Hi

I am trying to write a plugin for ImageJ2. I used the tutorial repository as a guide. I manged to get EventHandlers working in my test, when I was running the application from my IDE. However when I tested my Plugin in Fiji (added the resulting jar to the plugin directory) the events were not called. I found out, that the events only work in the new UI and not in the legacy UI that is the default in the current Fiji release. Is there any way to make the nice EventHandler annotation work in the old legacy UI?

This is the url to my repo where my working code for the new UI can be found.
https://github.com/spiderpig36/imagej-tutorial/tree/7b6b9ba74d9d856d1894517e70722c06f78237fe/maven-projects/measure

As a workaround I use the old ImageJ1 API which works, but is not as convenient as the new one.

Thanks for your Help!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked imagej-tutorial measure project and reproduce the plugin in Fiji using the legacy UI, comparing it with the working new-UI run. Trace how the EventHandler annotation is discovered or invoked in each UI and define done as the plugin events being called in Fiji's legacy UI, or the limitation being clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.