| Summary: | Probable incorrect state on AccessibleEditPart | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Barry Feigenbaum <feigenba> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Anthony Hunter <ahunter.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ahunter.eclipse |
| Version: | 3.1 | ||
| Target Milestone: | 3.4.1 (Ganymede SR1) | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Randy, can you confirm that this is indeed a bug? It probably is. Committed to HEAD and R3_4_maintenance |
Probable bug in GEF AbstractEditPart's AbstractAccessibleEditPart inner class - need to use |= (vs =) on FOCUS assignment: public void getState(AccessibleControlEvent e) { e.detail = ACC.STATE_SELECTABLE | ACC.STATE_FOCUSABLE; if (getSelected() != EditPart.SELECTED_NONE) e.detail |= ACC.STATE_SELECTED; if (getViewer().getFocusEditPart() == AbstractGraphicalEditPart.this) e.detail = /* should be |= */ ACC.STATE_FOCUSED; }