Opened 11 years ago

Closed 10 years ago

#2338 closed defect (fixed)

Gracefully handle invalid resources when updating menu/toolbar status

Reported by: jng Owned by: jng
Priority: low Milestone:
Component: Maestro Version:
Severity: trivial Keywords:
Cc: External ID:

Description

Some commands in Maestro are enabled/disabled based on some state of the active editor and it usually involves its associated resource. If this resource is invalid for any reason that would throw up an exception it will derail Maestro.

As it stands, wrapping a try/catch around the status update and condition evaluation code will not suffice as the current code will simply spam the MapGuide Server for the same invalid resource.

We need a mechanism where if the active editor's resource is invalid that there be some way for the editor to mark such resource as invalid so that the code will know not to spam the MapGuide Server for the same invalid resource.

Change History (2)

comment:1 by jng, 11 years ago

Version: 2.5.0

comment:2 by jng, 10 years ago

Resolution: fixed
Status: newclosed

Fixed r7924

Note: See TracTickets for help on using tickets.