Community
Participate
Working Groups
1) Open a file using the XText editor. 2) In this outline view, toggle the link editor action to checked 3) Open another file using the Xtext editor 4) You will notice that the "Link editor" action is checked, which is as expected 6) Uncheck the "Link Editor" action in the second editor -> editor is not linked -> good 7) Go back to the first editor -> Notice that the "Link Editor" action is checked -> which is not expected as the preference is stored in a static value in LinkingHelper -> Keep the action as checked, and select something in the editor -> Nothing in the outline view is selected. This is because the editor check state and the LinkingHelper static value have gone into inconsistent state. I think there needs to be some "listener" implementation in the LinkingHelper and ask the actions to react to changes to the linking property. Otherwise, we will easily get into inconsistent state.
After looking deeper, I think the action needs to listen for preference changes from the preference store, for it to be in sync with the preference.
Fixed in HEAD
Created attachment 175982 [details] proposed patch
Closing bug which were set to RESOLVED before Eclipse Neon.0.