|
From: <mir...@us...> - 2007-03-23 12:55:17
|
Revision: 2214
http://svn.sourceforge.net/rubyeclipse/?rev=2214&view=rev
Author: mirkostocker
Date: 2007-03-23 05:55:08 -0700 (Fri, 23 Mar 2007)
Log Message:
-----------
applied mnaglik's patch for #248 "The link with editor option in the code outline doesn't actually disable linking"
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java 2007-03-23 11:24:36 UTC (rev 2213)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyAbstractEditor.java 2007-03-23 12:55:08 UTC (rev 2214)
@@ -668,7 +668,10 @@
class OutlineSelectionChangedListener extends AbstractSelectionChangedListener {
public void selectionChanged(SelectionChangedEvent event) {
- doSelectionChanged(event);
+ boolean isLinkingEnabled = PreferenceConstants.getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SYNC_OUTLINE_ON_CURSOR_MOVE);
+ if (isLinkingEnabled) {
+ doSelectionChanged(event);
+ }
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|