171 Private method to connect the mouse click handler to an editor. |
171 Private method to connect the mouse click handler to an editor. |
172 |
172 |
173 @param editor reference to the editor |
173 @param editor reference to the editor |
174 @type Editor |
174 @type Editor |
175 """ |
175 """ |
176 if ( |
176 if Preferences.getJedi( |
177 Preferences.getJedi("MouseClickGotoButton") |
177 "MouseClickGotoButton" |
178 and not FileSystemUtilities.isRemoteFileName(editor.getFileName()) |
178 ) and not FileSystemUtilities.isRemoteFileName(editor.getFileName()): |
179 ): |
|
180 editor.setMouseClickHandler( |
179 editor.setMouseClickHandler( |
181 "jedi", |
180 "jedi", |
182 Preferences.getJedi("MouseClickGotoModifiers"), |
181 Preferences.getJedi("MouseClickGotoModifiers"), |
183 Preferences.getJedi("MouseClickGotoButton"), |
182 Preferences.getJedi("MouseClickGotoButton"), |
184 self.__jediServer.gotoDefinition, |
183 self.__jediServer.gotoDefinition, |