169308: Make nsIEditorLogging scriptable: a couple of nicities suggested by Kin. r=brade sr=kin

This commit is contained in:
akkana%netscape.com 2002-09-25 23:34:04 +00:00
Родитель 36ae526b6a
Коммит b51594a07c
2 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@ -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()