86 @type str |
86 @type str |
87 """ |
87 """ |
88 project = ericApp().getObject("Project") |
88 project = ericApp().getObject("Project") |
89 if projectHash == project.getHash(): |
89 if projectHash == project.getHash(): |
90 fn = project.getAbsoluteUniversalPath(fileName) |
90 fn = project.getAbsoluteUniversalPath(fileName) |
91 # TODO: change this to use local method |
|
92 editor = ericApp().getObject("ViewManager").getOpenEditor(fn) |
91 editor = ericApp().getObject("ViewManager").getOpenEditor(fn) |
93 if editor: |
92 if editor: |
94 status = self.__getSharedEditStatus(editor) |
93 status = self.__getSharedEditStatus(editor) |
95 if status.isShared: |
94 if status.isShared: |
96 if status.isSyncing and not command.startswith( |
95 if status.isSyncing and not command.startswith( |