Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360693

Summary: the ToggleLinkingAction just manage link from editor to outline
Product: [Technology] DLTK Reporter: Simon Bernard <sbernard>
Component: CommonAssignee: dltk.common-inbox <dltk.common-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: contact
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Simon Bernard CLA 2011-10-12 12:13:53 EDT
The ToggleLinkingAction changes the value of  PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVEEDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE.

This preference is only used to activate or deactive the link from editor to outline.
see : org.eclipse.dltk.internal.ui.editor.ScriptEditor.selectionChanged()

The link from outline to editor is always activated.
see : org.eclipse.dltk.internal.ui.editor.ScriptEditor.OutlineSelectionChangedListener

I think this preference should be used for the link in the both side (like JDT).

If you agree with this behaviour, a solution could be to add a check in : org.eclipse.dltk.internal.ui.editor.ScriptEditor.OutlineSelectionChangedListener.selectionChanged(SelectionChangedEvent)