src/eric7/EricWidgets/EricSingleApplication.py

branch
eric7
changeset 10423
299802979277
parent 10303
ee1aadab1215
child 10439
21c28b0f9e41
equal deleted inserted replaced
10422:e28b89693f37 10423:299802979277
66 66
67 def __saOpenFile(self, fname): 67 def __saOpenFile(self, fname):
68 """ 68 """
69 Private method used to handle the "Open File" command. 69 Private method used to handle the "Open File" command.
70 70
71 @param fname filename to be opened (string) 71 @param fname filename to be opened
72 @type str
72 """ 73 """
73 ericApp().getObject("ViewManager").openSourceFile(fname) 74 ericApp().getObject("ViewManager").openSourceFile(fname)
74 75
75 def __saOpenProject(self, pfname): 76 def __saOpenProject(self, pfname):
76 """ 77 """
77 Private method used to handle the "Open Project" command. 78 Private method used to handle the "Open Project" command.
78 79
79 @param pfname filename of the project to be opened (string) 80 @param pfname filename of the project to be opened
81 @type str
80 """ 82 """
81 ericApp().getObject("Project").openProject(pfname) 83 ericApp().getObject("Project").openProject(pfname)
82 84
83 def __saOpenMultiProject(self, pfname): 85 def __saOpenMultiProject(self, pfname):
84 """ 86 """
85 Private method used to handle the "Open Multi-Project" command. 87 Private method used to handle the "Open Multi-Project" command.
86 88
87 @param pfname filename of the multi project to be opened (string) 89 @param pfname filename of the multi project to be opened
90 @type str
88 """ 91 """
89 ericApp().getObject("MultiProject").openMultiProject(pfname) 92 ericApp().getObject("MultiProject").openMultiProject(pfname)
90 93
91 def __saArguments(self, argsStr): 94 def __saArguments(self, argsStr):
92 """ 95 """
93 Private method used to handle the "Arguments" command. 96 Private method used to handle the "Arguments" command.
94 97
95 @param argsStr space delimited list of command args(string) 98 @param argsStr space delimited list of command args
99 @type str
96 """ 100 """
97 ericApp().getObject("DebugUI").setArgvHistory(argsStr) 101 ericApp().getObject("DebugUI").setArgvHistory(argsStr)
98 102
99 103
100 class EricSingleApplicationClient(SingleApplicationClient): 104 class EricSingleApplicationClient(SingleApplicationClient):
134 138
135 def __openFile(self, fname): 139 def __openFile(self, fname):
136 """ 140 """
137 Private method to open a file in the application server. 141 Private method to open a file in the application server.
138 142
139 @param fname name of file to be opened (string) 143 @param fname name of file to be opened
144 @type str
140 """ 145 """
141 self.sendCommand(SAOpenFile, [os.path.abspath(fname)]) 146 self.sendCommand(SAOpenFile, [os.path.abspath(fname)])
142 147
143 def __openProject(self, pfname): 148 def __openProject(self, pfname):
144 """ 149 """
145 Private method to open a project in the application server. 150 Private method to open a project in the application server.
146 151
147 @param pfname name of the projectfile to be opened (string) 152 @param pfname name of the projectfile to be opened
153 @type str
148 """ 154 """
149 self.sendCommand(SAOpenProject, [os.path.abspath(pfname)]) 155 self.sendCommand(SAOpenProject, [os.path.abspath(pfname)])
150 156
151 def __openMultiProject(self, pfname): 157 def __openMultiProject(self, pfname):
152 """ 158 """
153 Private method to open a project in the application server. 159 Private method to open a project in the application server.
154 160
155 @param pfname name of the projectfile to be opened (string) 161 @param pfname name of the projectfile to be opened
162 @type str
156 """ 163 """
157 self.sendCommand(SAOpenMultiProject, [os.path.abspath(pfname)]) 164 self.sendCommand(SAOpenMultiProject, [os.path.abspath(pfname)])
158 165
159 def __sendArguments(self, argsStr): 166 def __sendArguments(self, argsStr):
160 """ 167 """
161 Private method to set the command arguments in the application server. 168 Private method to set the command arguments in the application server.
162 169
163 @param argsStr space delimited list of command args (string) 170 @param argsStr space delimited list of command args
171 @type str
164 """ 172 """
165 self.sendCommand(SAArguments, [argsStr]) 173 self.sendCommand(SAArguments, [argsStr])

eric ide

mercurial