Ticket #690 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Rectangle overlay tool doesn't work after first rectangle is drawn

Reported by: leek Owned by: leek
Priority: major Milestone: imagej-2.0-alpha5
Component: UI Framework Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking:

Description

The old behavior: press rectangle tool, draw rectangle, rectangle tool disables itself. The new behavior: press rectangle tool, draw rectangle, rectangle tool button pops out but remains blue, hover over button and it depresses, try to draw rectangle, you get a selection instead.

Change History

comment:1 Changed 8 years ago by curtis

If you click to the selection tool and back to the rectangle tool, it is possible to draw another rectangle. But you must do this each time. I'm not sure when the behavior changed.

comment:2 Changed 8 years ago by leek

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from bio-formats to ij-ui

It turns out you need to get the selection tool from the toolbar. Luckily someone just added a store of instantiated tools to the ToolService, so I pulled the selection tool from there. I also added a convenience method to find a tool from the tool service given a class name and magic templates to cast it to the right class.

Note: See TracTickets for help on using tickets.