RefactoringRope/FileSystemCommands.py

branch
eric7
changeset 365
f740b50380df
parent 354
a967ff16629a
child 374
958f34e97952
equal deleted inserted replaced
364:a92b3272f4c1 365:f740b50380df
89 @param data data to be written 89 @param data data to be written
90 """ 90 """
91 self.__normal_actions.write(path, data) 91 self.__normal_actions.write(path, data)
92 92
93 93
94 class E5FileSystemCommands: 94 class EricFileSystemCommands:
95 """ 95 """
96 Class implementing file system commands for rope. 96 Class implementing file system commands for rope.
97 """ 97 """
98 def __init__(self, project): 98 def __init__(self, project):
99 """ 99 """
175 vcs = self.__project.getVcs() 175 vcs = self.__project.getVcs()
176 if vcs is None: 176 if vcs is None:
177 if os.path.isdir(path): 177 if os.path.isdir(path):
178 self.__project.removeDirectory(path) 178 self.__project.removeDirectory(path)
179 else: 179 else:
180 from E5Gui.E5Application import e5App 180 from EricWidgets.EricApplication import ericApp
181 e5App().getObject("ViewManager").closeWindow(path) 181 ericApp().getObject("ViewManager").closeWindow(path)
182 self.__project.removeFile(path) 182 self.__project.removeFile(path)
183 else: 183 else:
184 vcs.vcsRemove(path, noDialog=True) 184 vcs.vcsRemove(path, noDialog=True)

eric ide

mercurial