EditorAppCore is dead. Long live EditorAppCore!

This commit is contained in:
sfraser%netscape.com 1999-06-11 18:59:41 +00:00
parent 13b35c5300
commit fc814c5166
2 changed files with 7 additions and 5 deletions

View File

@ -77,7 +77,7 @@ NSRegisterSelf(nsISupports* serviceMgr, const char *path)
nsComponentManager::RegisterComponent(kToolbarCoreCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kToolkitCoreCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kBrowserAppCoreCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
nsComponentManager::RegisterComponent(kEditorAppCoreCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
//nsComponentManager::RegisterComponent(kEditorAppCoreCID, NULL, NULL, path, PR_TRUE, PR_TRUE);
return NS_OK;
}
@ -96,7 +96,7 @@ NSUnregisterSelf(nsISupports* serviceMgr, const char *path)
nsComponentManager::UnregisterComponent(kToolbarCoreCID, path);
nsComponentManager::UnregisterComponent(kToolkitCoreCID, path);
nsComponentManager::UnregisterComponent(kBrowserAppCoreCID, path);
nsComponentManager::UnregisterComponent(kEditorAppCoreCID, path);
//nsComponentManager::UnregisterComponent(kEditorAppCoreCID, path);
return NS_OK;
}
@ -158,10 +158,12 @@ NSGetFactory(nsISupports* serviceMgr,
{
inst = new nsBrowserAppCoreFactory();
}
/*
else if ( aClass.Equals(kEditorAppCoreCID) )
{
inst = new nsEditorAppCoreFactory();
}
*/
else
{
return NS_ERROR_ILLEGAL_VALUE;

View File

@ -80,7 +80,7 @@ nsAppCoresNameSet::InitializeClasses(nsIScriptContext* aScriptContext)
result = NS_InitProfileCoreClass(aScriptContext, nsnull);
result = NS_InitToolbarCoreClass(aScriptContext, nsnull);
result = NS_InitBrowserAppCoreClass(aScriptContext, nsnull);
result = NS_InitEditorAppCoreClass(aScriptContext, nsnull);
//result = NS_InitEditorAppCoreClass(aScriptContext, nsnull);
result = NS_InitToolkitCoreClass(aScriptContext, nsnull);
result = NS_InitRDFCoreClass(aScriptContext, nsnull);
@ -160,13 +160,13 @@ nsAppCoresNameSet::AddNameSet(nsIScriptContext* aScriptContext)
PR_TRUE);
if (NS_OK != result) return result;
/*
result = manager->RegisterGlobalName("EditorAppCore",
kEditorAppCoreCID,
PR_TRUE);
if (NS_OK != result) return result;
*/
result = manager->RegisterGlobalName("XPAppCoresManager",
kAppCoresCID,
PR_FALSE);