public void init() { if (INSTANCE != null) { throw new IllegalStateException("double initialization"); } INSTANCE = this; myClassLoaderManager.addReloadHandler(myReloadHandler); SModelRepository.getInstance().addModelRepositoryListener(mySModelRepositoryListener); }
@Override public void initComponent() { myClassLoaderManager.addReloadHandler(myReloadListener); FileStatusManager.getInstance(myProject).addFileStatusListener(myFileStatusListener); GlobalSModelEventsManager.getInstance().addGlobalModelListener(myListener); }