Eclipse ImageJ Plugin Update Released With Improved Debugger Interface

I released a new version of the ImageJ plugin which comes bundled with a feature complete ImageJ macro editor and an embedded Eclipse ImageJ interface.

screen_imagej
Screenshot (Windows, Eclipse Darkest Dark Theme)

code_completion
Screenshot Code Completion (Windows, Eclipse Darkest Dark Theme)

Release notes:
New in 1.52m (1.52m12)

  • Updated ImageJ version 1.52m (1.52m12)
  • Improved the ImageJ canvas (Plot canvas and Image canvas are now opened as intended)
  • The ImageJ canvas replace method now works as intended (see, e.g., IJ_webcam capture plugin)
  • Improved plot canvas (zooming, actions, etc. are now working as intended)
  • Plot action buttons are now added below each plot (see screenshot below)

  • Added new actions (in the plugins menu) to interpret the current opened Eclipse editor sources (BeanShell, JavaScript, Jython and ImageJ macro) using the ImageJ interpreters (using, e.g., PyDev for Jython).
  • Added a new Java compile action (in the plugins menu) to compile the current opened Eclipse editor source (see screenshot below). To compile dynamically with ImageJ please use or adjust the ImageJ plugins path in the Eclipse preferences.

grafik

  • MouseWheel actions are now working as intended (use STRG+MouseWheel to zoom!)
  • Improved stability for drag and drop actions of multiple image files
  • Improved stability for MacOSX
  • Reorganized Eclipse plugins and features
  • ImageJ2 can now be optionally installed and is not bundled by default (now optional dependent of ImageJ). Customization is possible (plugin can be populated with maven command in Eclipse)
  • Added the latest ImageJ macro function templates
  • JavaFX (embed Swing in JavaFX and SWT panel) can now be optionally installed (but is not necessary by default)
  • Removed the outdated Albireo plugin dependency
  • Added key listeners for the tab when all images are closed (ImageJ keys!)
  • Improved the ImageJ macro hoover (workaround for SWT_AWT)
  • Added a workaround for repaint issues in MacOSX when switching perspectives with SWT_AWT
  • Added a workaround for MacOSX to receive key events again after focus lost (sometimes you need to press the mouse two times when the perspectives have been switched)
  • Fixed several rare occuring deadlock events on MacOSX

Installation:

It might be necessary to uninstall old plugin versions first!

To install the plugin the latest OpenJDK 11 is required and an installation of Eclipse 4.10 or 4.9.

The plugin is availabe from the Eclipse Marketplace Client:

As an alternative open the Help->Install new Software dialog and add the following update site:

https://bio7.github.io/imagej/

MacOSX Eclipse Fontsize Correction

To fix the default font size on Eclipse (a matter of taste) I wrote a short summary on the Github page how to fix the font size (see https://github.com/Bio7/EclipseImageJ1Plugin - bottom page).

The plugin source and more information can be found on Github:

5 Likes

When I try to install this from the marketplace on Win10 I get:

image

I just tested it again without any problem.

Please not that you have to use Eclipse 4.10 (4.9) and OpenJDK 11.

If you have already installed an old version uninstall it before you install the new version.

In other cases try this Eclipse recipes (Proxy, Firewall, etc):

I use: 4.11.0 M2 and I think Oracles Java. This will not work then?

image

You need OpenJDK >=9 (I have only tested it with OpenJDK 11.02) else it will not work due to bytecode compat.
Oracle JDK 11 should work, too but I will only use OpenJDK’s in the future due to the new license of the Oracle JDK.

Downloads, e.g.:

https://jdk.java.net/11/

Here is a new update which fixes an annoying behaviour on Ubuntu 18.10 (lost key events in Eclipse editors):

Release Notes:

New in 1.52m (1.52m20):

  • Updated ImageJ version 1.52m (1.52m20)
  • Added new macro function definitions
  • Zoom factor is now displayed in the image tabs
  • Workaround a SWT key focus loss with ImageJ on Linux (occurred on Ubuntu 18.10)
  • Fixed an exception when adding an image to a stack (action “Add Slice”) of size 1
  • Detached tab images are now closed, too when using the “File->Close All” view menu action

If you have already installed the previous version just invoke the Eclipse main menu action “Help->Check for Updates” to update the plugin.

A new update is available which improves the plot display inside of tabs and adds new features and corrections.

The ImageJ plots (see ImageJ macro examples) are now scaled dynamically when a tab is resized.
If you reset the plot it is drawn according to the default plot size regardless of the tab dimensions (this behaviour follows the default ImageJ GUI window behaviour).

In addition fullscreen (F2) for plots is now supported and detached tabs are supported, too (both actions scales the plot accordingly when selected).
Furthermore a rare exception on MacOSX was fixed (closing detached free floating tabs).

New features:

  • Updated ImageJ plugin to version 1.52m28
  • Implemented dynamic plot scaling when the image tabsize changes
  • Reset Plot action scales plot to default values (context menu “Plot Size”)
  • Plot fullscreen scaling support
  • Detached tab plot scaling support
  • Now tabs are visible selected when a window or image is selected programmatically (before the selection occured, too but invisible for speed reasons)
  • Implemented the Window components menu to make hidden components visible again (ROI Manager, Threshold, etc. - apparently works on MacOSX and Windows only)
  • Implemented Refresh Menus (if you create and compile a new plugin in the plugins folder with Eclipse (dynamically without restart) you can refresh the menu to update the plugins menu dynamically without a restart!)
  • Implemented the Help->Examples->Autorun Examples checkbox menu (true or false)
  • Restored the modal dialogs on Windows
  • Added latest macro API templates

If you have already installed the previous version just invoke the Eclipse main menu action “Help->Check for Updates” to update the plugin.

I also updated the MacOSX information how to improve the Eclipse fonts here:

https://github.com/Bio7/EclipseImageJ1Plugin (scroll down)

In addition consider to use the Tinker tool for MacOSX which can increase the system font to increase, e.g., the font for code completion and the package Explorer (14 pt. on Retina displays looks nice):

https://www.bresink.com/osx/TinkerTool-de.html

Once again a new update is available which improves the code completion, adds new actions to the ImageJ macro editor and contains several bugfixes.

New in 1.52o (1.52m30):

  • Updated ImageJ plugin to version 1.52o30
  • Improved automatic layout correction for synchronized detached views (e.g., orthogonal views)
  • Improved titles of detached views to show correct titles and updates (e.g., coordinates of synchronized orthogonal views)
  • Improved the centering of dialogs in a multi-monitor setup (dialogs are centered in the monitor which contains the ImageJ view tabfolder)
  • Improved the code completion cursor location and arguments are now templates selectable with the tab key (press ‘Enter’ to finish the selection and move to the defined cursor location)

codecomplijmacro

  • Improved the code completion sorting of templates
  • Added a preference option to change the critera for code completion search to suggest function templates which contain the prefix
  • Added new file, directory dialogs to insert paths at the current cursor location

  • Added a color and hex color dialog to select and insert color strings into the editor. Selected hex colors are displayed in the color dialog (if created before with the dialog)

  • Added new macro templates
  • Fixed several bugs (e.g., opened dialog option popups in macros, deadlock with SWT dialog in a running macro)

Installation:

To install the plugin the latest OpenJDK 11 is required and an installation of Eclipse 4.11, 4.10 or 4.9.

The plugin is availabe from the Eclipse Marketplace Client:

As an alternative open the Help->Install new Software dialog and add the following update site:

https://bio7.github.io/imagej/

To update an already installed plugin just check Eclipse for plugin updates (Help->Check for Updates)

MacOSX Eclipse Fontsize Correction

To fix the default font size on Eclipse (a matter of taste) I wrote a short summary on the Github page how to fix the font size (see https://github.com/Bio7/EclipseImageJ1Plugin - bottom page).

The plugin source and more information can be found on Github:

1 Like

I released a new update of the ImageJ plugin:

New in 1.52p (1.52p36):

  • Updated ImageJ plugin to version 1.52p36
  • Improved and bugfixed code completion to find, differentiate and set functions with fixed arguments (e.g., getValue("selection.size");).
  • Improved hoover information to list all available functions with identical name.
  • Added new macro code completion templates.

Once again I released a new update of the ImageJ plugin:

New in 1.52p (1.52p61):

  • Updated ImageJ plugin to version 1.52p61
  • Added Java 12 compiler target
  • Added new macro code completion templates.

A new update of the ImageJ Eclipse plugin is available.

New in 1.52q (1.52q30):

  • Updated The Eclipse ImageJ plugin to version 1.52q30
  • A new integrated Eclipse debug view is available as an replacement for the debug dialog (close and reopen the perspective if you update this plugin to add the new view!)

Debug

  • Improved Linux dark theme GUI for embedded AWT and Swing dialogs (see below Darkest dark “Deep Black” theme on Ubuntu 19.04)

Debug_Linux_Darker

  • Improved code completion in general
  • Editor defined variables are added to the code completion and shown according to their scope (function or macro defined variables are added when opening the code completion inside this scope. Function arguments are added, too)
  • Editor defined functions are added to code completion.
  • Editor defined function arguments are added as selectable templates
  • Comments and multiline comments of editor defined functions are shown in the context code completion view (must be defined above the function - see screenshot below)

EditorVariables

2 Likes

A minor update is available which fixes a toolbar exception when the toolbar is embedded in the Image perspective and not saved detached on Eclipse shutdown (see second screenshot previous post).

Simply check for updates to install the latest plugin version if you’ve already installed the plugin.

A new Eclipse ImageJ plugin update is available.

New in 1.52q (1.52q44):

  • Updated the ImageJ plugin to version 1.52q44
  • Improved the embedded and detached PlotWindows. Now all plot windows are simultaneously resized according to their parent canvas (embedded or detached - animation below)
  • Fixed a bug in the detach menu action (wrong id and panel settings)
  • Removed the ‘*’ tab icon (usually indicating an unsaved editor file) from the detached custom view by deleting the ‘ISaveablePart2’ interface

1 Like

A minor update is available which fixes a Swing deadlock with PlotWindows.

Simply check for updates to install the latest plugin version if you’ve already installed the plugin.

A new major Eclipse ImageJ plugin update is available which heavily improves the debug interface of the plugin.

Important: Please close and reopen the “Debug” view if you update the installation (Window->Show View->Other…->ImageJ->Debug)! The debug view is now located in the macro editor plugin.

New in this release:

  • New debug view toolbar actions availabe to easily debug ImageJ macros (without loosing editor key focus on MacOSX when an image is created or opened).
  • Implemented all default ImageJ debug actions as toolbar actions (one action for ‘Trace’ and ‘Fast Trace’)
  • New debug functions available to set a variable value in debug mode (string or numeric - see below).

DebugSetExpression

  • New breakpoint actions available to set, edit, delete breakpoints and simple expression breakpoints (evaluate boolean variable expression) in the ruler menu of the editor. Created breakpoints are automatically stored, too (see below).

DebugBreakpointExpression

  • Extended the editor hoover to display the variable values when you hoover the editor. Array values will be displayed, too (see below).

DebugHooverValues

  • The default array value display table will be opened if you click on the debug view table column.
  • Implemented several text editor and toolbar changes to visualize the debugging process.
  • Fixed several bugs.

Please note that you can debug ImageJ macros without setting breakpoints.

To jump to a breakpoint use the new toolbar breakpoint action. If it is a simple breakpoint the debugger jumps to the next breakpoint. Multiple breakpoints are possible.

If an expression breakpoint(s) is/are available the script stops when the boolean expression is true which could be any line of the macro and not necessarily the line where the expression breakpoint(s) is/are located.