зеркало из https://github.com/mozilla/pjs.git
169308: Make nsIEditorLogging scriptable: a couple of nicities suggested by Kin. r=brade sr=kin
This commit is contained in:
Родитель
36ae526b6a
Коммит
b51594a07c
|
@ -46,6 +46,7 @@ interface nsIFile;
|
|||
interface nsIEditorLogging : nsISupports
|
||||
{
|
||||
/** Start logging.
|
||||
* @param aLogFile The file to which the log should be written.
|
||||
*/
|
||||
void startLogging(in nsIFile aLogFile);
|
||||
|
||||
|
|
|
@ -356,19 +356,25 @@ function EditorGetScriptFileSpec()
|
|||
|
||||
function EditorStartLog()
|
||||
{
|
||||
var edlog = gEditor.QueryInterface(Components.interfaces.nsIEditorLogging);
|
||||
var fs = EditorGetScriptFileSpec();
|
||||
edlog.startLogging(fs);
|
||||
window._content.focus();
|
||||
try {
|
||||
var edlog = gEditor.QueryInterface(Components.interfaces.nsIEditorLogging);
|
||||
var fs = EditorGetScriptFileSpec();
|
||||
edlog.startLogging(fs);
|
||||
window._content.focus();
|
||||
|
||||
fs = null;
|
||||
fs = null;
|
||||
}
|
||||
catch(ex) { dump("Can't start logging!:\n" + ex + "\n");
|
||||
}
|
||||
|
||||
function EditorStopLog()
|
||||
{
|
||||
var edlog = gEditor.QueryInterface(Components.interfaces.nsIEditorLogging);
|
||||
edlog.stopLogging();
|
||||
window._content.focus();
|
||||
try {
|
||||
var edlog = gEditor.QueryInterface(Components.interfaces.nsIEditorLogging);
|
||||
edlog.stopLogging();
|
||||
window._content.focus();
|
||||
}
|
||||
catch(ex) { dump("Can't start logging!:\n" + ex + "\n");
|
||||
}
|
||||
|
||||
function EditorRunLog()
|
||||
|
|
Загрузка…
Ссылка в новой задаче