Re: [micro-manager-general] Steps to get a functional plugin, lesson n+1
Status: Beta
Brought to you by:
nicost
|
From: Nico S. <nic...@uc...> - 2020-04-07 00:11:30
|
Hi Carlos,
On 4/6/2020 1:15 PM, Carlos G Mendioroz wrote:
> I'm modifying the example plugin, and as I need to get hold of a display
> (to determine a ROI set) I decided to try:
>
>
> @Subscribe
> public void onNewDisplay(NewDisplayEvent event) {
> title.setText("We have an image to work with!");
> }
>
> after making "title" a class variable much like the example's
> exposureTimeLabel_.
>
> As far as I understand the documentation, I should be getting an event
> (and title should change) when a display window is created by, e.g., a
> new snap.
>
> But it does not work.
Looking into this, it turns out that the NewDisplayEvent is not
implemented, and is never generated. It either was never implemented,
or was lost in refactoring. I asked the architect (Mark) for directions.
Looked around for alternatives, but nothing pops up. Certainly looks
like we need to fix this!
Best,
Nico
|