Bug #14999; removed use of toolkit app core; rev=sfraser@netscape.com

git-svn-id: svn://10.0.0.236/trunk@50311 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
law%netscape.com
1999-10-09 06:16:33 +00:00
parent 18dd71d7d3
commit 7db449cd06

View File

@@ -236,39 +236,19 @@ function EditorOpen()
function EditorNewPlaintext()
{
dump("In EditorNewPlaintext..\n");
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://editor/content/TextEditorAppShell.xul", window, "chrome://editor/content/EditorInitPagePlain.html" );
} else {
dump("Error; can't create toolkitCore\n");
}
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
"_blank",
"chrome,dialog=no,all",
"chrome://editor/content/EditorInitPagePlain.html" );
}
function EditorNewBrowser()
{
dump("In EditorNewBrowser..\n");
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
core.ShowWindowWithArgs( "chrome://navigator/content/navigator.xul", window, "" );
} else {
dump("Error; can't create toolkitCore\n");
}
window.open( "chrome://navigator/content/", "_blank", "chrome" );
}
function EditorSave()
{
dump("In EditorSave...\n");
@@ -1185,21 +1165,7 @@ function EditorTestDocument()
// --------------------------- Callbacks ---------------------------
function OpenFile(url)
{
// This is invoked from the browser app core.
// TODO: REMOVE THIS WHEN WE STOP USING TOOLKIT CORE
core = XPAppCoresManager.Find("toolkitCore");
if ( !core ) {
core = new ToolkitCore();
if ( core ) {
core.Init("toolkitCore");
}
}
if ( core ) {
// TODO: Convert this to use window.open() instead
core.ShowWindowWithArgs( "chrome://editor/content/", window, url );
} else {
dump("Error; can't create toolkitCore\n");
}
alert( "EditorCommands.js OpenFile should not be called!" );
}
// --------------------------- Status calls ---------------------------