| Summary: | [accessibility] Go To Next Difference stops working on reuse of editor | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Randy Hudson <hudsonr> |
| Component: | Compare | Assignee: | Andre Weinand <andre_weinand> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | Keywords: | accessibility, usability |
| Version: | 3.0 | ||
| Target Milestone: | 3.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Randy Hudson
*** Bug 73407 has been marked as a duplicate of this bug. *** Reproduced in 3.0.1 build The toolbar button is not working either. The message is: "Last Difference Reached" when clearly there are more differences. The problem is caused by CompareUIPlugin.openCompareEditor.
If an editor is reused, it does not go through normal initialization, which
means that the EditorActionBarContributor does not reset for the new editor
input.
NavigateAction is still holding onto the old editor input, which has been
disposed at this point. One possible fix might be to not hold onto anything
other than the current editor, and obtain everything dynamically when the
action is run(). The other workaround which I made was to set the active editor
to NULL and then back to the reused editor again:
In CompareEditor:
public void setInput(IEditorInput input) {
try {
doSetInput(input);
+ //Need to refresh the contributor
+ getEditorSite().getActionBarContributor()
+ .setActiveEditor(null);
+ getEditorSite().getActionBarContributor()
+ .setActiveEditor(this);
Any possibilities for 3.0.x? Please raise priority now that the problem has been identified for you and a possible workaround provided. This bug has been ignored for a long time now. It affects the entire action bar of the compare editor. Just today, I was trying to toggle "Ignore White Space", and doesn't work either. fixed for N20050608 Verifying... Verified in RC2 Andre, Please update state to VERIFIED (I don't have such rights). Thanks. Thanks for verifying. |