#include "ATOMSOLVGUI_Displayer.h"
#include "ATOMSOLVGUI_Selection.h"
#include "ATOMSOLVGUI_TransparencyDlg.h"
-#include "ATOMSOLV_Component_Generator.hxx"
#include <ATOMSOLV_version.h>
myEngine = ATOMSOLV_ORB::ATOMSOLV_Gen::_nil();
else {
SALOME_NamingService_Abstract *ns = SalomeApp_Application::namingService();
- Engines::EngineComponent_var comp;
- if(ns->IsTrueNS())
- {
- comp = app->lcc()->FindOrLoad_Component( "FactoryServer", "ATOMSOLV" );
- }
- else
- {
- comp = RetrieveATOMSOLVInstance();
- CORBA::Object_var comp2 = CORBA::Object::_narrow(comp);
- KERNEL::RegisterCompo("ATOMSOLV",comp2);
- }
+ Engines::EngineComponent_var comp = app->lcc()->FindOrLoad_Component( "FactoryServer", "ATOMSOLV" );
ATOMSOLV_ORB::ATOMSOLV_Gen_ptr atomGen = ATOMSOLV_ORB::ATOMSOLV_Gen::_narrow(comp);
ASSERT( !CORBA::is_nil( atomGen ) );
myEngine = atomGen;