Re: [micro-manager-general] Steps to get a functional plugin, lesson n+1
Status: Beta
Brought to you by:
nicost
|
From: Kumar, S. <sun...@im...> - 2020-04-06 23:38:18
|
Hi Carlos, Have you done this: Studio.events().registerForEvents(this); in the class where you have the @Subscribe? Regards, Sunil -----Original Message----- From: Carlos G Mendioroz [mailto:tr...@ac...] Sent: 06 April 2020 21:16 To: Micro-Manager General <mic...@li...> Subject: [micro-manager-general] Steps to get a functional plugin, lesson n+1 ******************* This email originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list https://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address. ******************* 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. Nico ? Anybody ? -- Carlos G Mendioroz <tr...@ac...> _______________________________________________ micro-manager-general mailing list mic...@li... https://lists.sourceforge.net/lists/listinfo/micro-manager-general |