RefactoringRope/RefactoringServer.py

branch
eric7
changeset 396
933b8fcd854f
parent 394
b34f5dd3db27
child 406
923d7f711cae
equal deleted inserted replaced
395:cceb9aa09bbc 396:933b8fcd854f
13 from PyQt6.QtCore import pyqtSlot 13 from PyQt6.QtCore import pyqtSlot
14 from PyQt6.QtGui import QAction 14 from PyQt6.QtGui import QAction
15 from PyQt6.QtWidgets import QMenu, QApplication 15 from PyQt6.QtWidgets import QMenu, QApplication
16 from PyQt6.Qsci import QsciScintilla 16 from PyQt6.Qsci import QsciScintilla
17 17
18 from EricWidgets.EricApplication import ericApp 18 from eric7 import Globals, Preferences, Utilities
19 from EricWidgets import EricMessageBox 19 from eric7.EricGui.EricAction import EricAction
20 from EricGui.EricAction import EricAction 20 from eric7.EricNetwork.EricJsonServer import EricJsonServer
21 21 from eric7.EricWidgets import EricMessageBox
22 from EricNetwork.EricJsonServer import EricJsonServer 22 from eric7.EricWidgets.EricApplication import ericApp
23 from eric7.Preferences.Shortcuts import readShortcuts
24
23 25
24 from .RopeProgressDialog import RopeProgressDialog 26 from .RopeProgressDialog import RopeProgressDialog
25
26 import Utilities
27 import Preferences
28 import Globals
29
30 from Preferences.Shortcuts import readShortcuts
31 27
32 28
33 class RefactoringServer(EricJsonServer): 29 class RefactoringServer(EricJsonServer):
34 """ 30 """
35 Class implementing the refactoring interface to rope. 31 Class implementing the refactoring interface to rope.
2071 ropedir = self.__ropeConfig["RopeFolderName"] 2067 ropedir = self.__ropeConfig["RopeFolderName"]
2072 configfile = "" 2068 configfile = ""
2073 if ropedir and os.path.exists(ropedir): 2069 if ropedir and os.path.exists(ropedir):
2074 configfile = os.path.join(ropedir, "config.py") 2070 configfile = os.path.join(ropedir, "config.py")
2075 if os.path.exists(configfile): 2071 if os.path.exists(configfile):
2076 from QScintilla.MiniEditor import MiniEditor 2072 from eric7.QScintilla.MiniEditor import MiniEditor
2077 2073
2078 self.__editor = MiniEditor(configfile) 2074 self.__editor = MiniEditor(configfile)
2079 self.__editor.show() 2075 self.__editor.show()
2080 self.__editor.editorSaved.connect(self.__configChanged) 2076 self.__editor.editorSaved.connect(self.__configChanged)
2081 else: 2077 else:

eric ide

mercurial