Java 类com.intellij.psi.meta.MetaDataRegistrar 实例源码

项目:intellij-ce-playground    文件:DomMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  registrar.registerMetaData(new ElementFilter() {
    @Override
    public boolean isAcceptable(Object element, PsiElement context) {
      if (element instanceof XmlTag) {
        final XmlTag tag = (XmlTag)element;
        final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
        if (domElement != null) {
          return domElement.getGenericInfo().getNameDomElement(domElement) != null;
        }
      }
      return false;
    }

    @Override
    public boolean isClassAcceptable(Class hintClass) {
      return XmlTag.class.isAssignableFrom(hintClass);
    }
  }, DomMetaData.class);
}
项目:tools-idea    文件:DomMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  registrar.registerMetaData(new ElementFilter() {
    public boolean isAcceptable(Object element, PsiElement context) {
      if (element instanceof XmlTag) {
        final XmlTag tag = (XmlTag)element;
        final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
        if (domElement != null) {
          return domElement.getGenericInfo().getNameDomElement(domElement) != null;
        }
      }
      return false;
    }

    public boolean isClassAcceptable(Class hintClass) {
      return XmlTag.class.isAssignableFrom(hintClass);
    }
  }, DomMetaData.class);
}
项目:intellij-ce-playground    文件:MetaRegistry.java   
private static void ensureContributorsLoaded() {
  if (!ourContributorsLoaded) {
    synchronized (ourBindings) {
      if (!ourContributorsLoaded) {
        for (MetaDataContributor contributor : Extensions.getExtensions(MetaDataContributor.EP_NAME)) {
          contributor.contributeMetaData(MetaDataRegistrar.getInstance());
        }
        ourContributorsLoaded = true;
      }
    }
  }
}
项目:intellij-ce-playground    文件:RngHtml5MetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  registrar.registerMetaData(
    new AndFilter(
      new ClassFilter(RncDocument.class),
      new MyRncNamespaceFilter(XmlUtil.HTML_URI, XmlUtil.XHTML_URI)),
    RelaxedHtmlFromRngNSDescriptor.class
  );
}
项目:intellij-ce-playground    文件:ApplicationLoader.java   
private static void registerMetaData() {
  final MetaDataRegistrar registrar = MetaDataRegistrar.getInstance();
  registrar.registerMetaData(
          new AndFilter(
                  new NamespaceFilter(RNG_NAMESPACE),
                  new ClassFilter(XmlDocument.class)
          ),
          RngNsDescriptor.class);

  registrar.registerMetaData(
          new ClassFilter(RncDocument.class),
          RngNsDescriptor.class);

  registrar.registerMetaData(new ElementFilter() {
    @Override
    public boolean isAcceptable(Object element, PsiElement context) {
      if (element instanceof XmlTag) {
        final XmlTag tag = (XmlTag)element;
        final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
        return domElement instanceof RngDefine;
      }
      return false;
    }

    @Override
    public boolean isClassAcceptable(Class hintClass) {
      return XmlTag.class.isAssignableFrom(hintClass);
    }
  }, RngDefineMetaData.class);
}
项目:tools-idea    文件:MetaRegistry.java   
private static void ensureContributorsLoaded() {
  if (!ourContributorsLoaded) {
    synchronized (ourBindings) {
      if (!ourContributorsLoaded) {
        for (MetaDataContributor contributor : Extensions.getExtensions(MetaDataContributor.EP_NAME)) {
          contributor.contributeMetaData(MetaDataRegistrar.getInstance());
        }
        ourContributorsLoaded = true;
      }
    }
  }
}
项目:tools-idea    文件:RngHtml5MetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  registrar.registerMetaData(
    new AndFilter(
      new ClassFilter(RncDocument.class),
      new MyRncNamespaceFilter(XmlUtil.HTML_URI, XmlUtil.XHTML_URI)),
    RelaxedHtmlFromRngNSDescriptor.class
  );
}
项目:tools-idea    文件:ApplicationLoader.java   
private static void registerMetaData() {
  final MetaDataRegistrar registrar = MetaDataRegistrar.getInstance();
  registrar.registerMetaData(
          new AndFilter(
                  new NamespaceFilter(RNG_NAMESPACE),
                  new ClassFilter(XmlDocument.class)
          ),
          RngNsDescriptor.class);

  registrar.registerMetaData(
          new ClassFilter(RncDocument.class),
          RngNsDescriptor.class);

  registrar.registerMetaData(new ElementFilter() {
    public boolean isAcceptable(Object element, PsiElement context) {
      if (element instanceof XmlTag) {
        final XmlTag tag = (XmlTag)element;
        final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
        return domElement instanceof RngDefine;
      }
      return false;
    }

    public boolean isClassAcceptable(Class hintClass) {
      return XmlTag.class.isAssignableFrom(hintClass);
    }
  }, RngDefineMetaData.class);
}
项目:consulo    文件:MetaRegistry.java   
private static void ensureContributorsLoaded() {
  if (!ourContributorsLoaded) {
    synchronized (ourBindings) {
      if (!ourContributorsLoaded) {
        for (MetaDataContributor contributor : Extensions.getExtensions(MetaDataContributor.EP_NAME)) {
          contributor.contributeMetaData(MetaDataRegistrar.getInstance());
        }
        ourContributorsLoaded = true;
      }
    }
  }
}
项目:consulo-xml    文件:DomMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar)
{
    registrar.registerMetaData(new ElementFilter()
    {
        @Override
        public boolean isAcceptable(Object element, PsiElement context)
        {
            if(element instanceof XmlTag)
            {
                final XmlTag tag = (XmlTag) element;
                final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
                if(domElement != null)
                {
                    return domElement.getGenericInfo().getNameDomElement(domElement) != null;
                }
            }
            return false;
        }

        @Override
        public boolean isClassAcceptable(Class hintClass)
        {
            return XmlTag.class.isAssignableFrom(hintClass);
        }
    }, DomMetaData.class);
}
项目:consulo-xml    文件:RngHtml5MetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  registrar.registerMetaData(
    new AndFilter(
      new ClassFilter(RncDocument.class),
      new MyRncNamespaceFilter(XmlUtil.HTML_URI, XmlUtil.XHTML_URI)),
    RelaxedHtmlFromRngNSDescriptor.class
  );
}
项目:consulo-xml    文件:ApplicationLoader.java   
private static void registerMetaData()
{
    final MetaDataRegistrar registrar = MetaDataRegistrar.getInstance();
    registrar.registerMetaData(new AndFilter(new NamespaceFilter(RNG_NAMESPACE), new ClassFilter(XmlDocument.class)), RngNsDescriptor.class);

    registrar.registerMetaData(new ClassFilter(RncDocument.class), RngNsDescriptor.class);

    registrar.registerMetaData(new ElementFilter()
    {
        @Override
        public boolean isAcceptable(Object element, PsiElement context)
        {
            if(element instanceof XmlTag)
            {
                final XmlTag tag = (XmlTag) element;
                final DomElement domElement = DomManager.getDomManager(tag.getProject()).getDomElement(tag);
                return domElement instanceof RngDefine;
            }
            return false;
        }

        @Override
        public boolean isClassAcceptable(Class hintClass)
        {
            return XmlTag.class.isAssignableFrom(hintClass);
        }
    }, RngDefineMetaData.class);
}
项目:consulo-xml    文件:XmlApplicationComponent.java   
@Override
public void contributeMetaData(final MetaDataRegistrar registrar)
{
    {
        registrar.registerMetaData(new AndFilter(new NamespaceFilter(XmlUtil.SCHEMA_URIS), new ClassFilter(XmlDocument.class)), SchemaNSDescriptor.class);

        registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")), SchemaNSDescriptor.class);
    }
    {
        registrar.registerMetaData(new OrFilter(new AndFilter(new ContentFilter(new OrFilter(new ClassFilter(XmlElementDecl.class), new ClassFilter(XmlEntityDecl.class), new ClassFilter
                (XmlConditionalSection.class), new ClassFilter(XmlEntityRef.class))), new ClassFilter(XmlDocument.class)), new ClassFilter(XmlMarkupDecl.class)), XmlNSDescriptorImpl.class);
    }

    {
        registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")), XmlElementDescriptorImpl.class);
    }

    {
        registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")), XmlAttributeDescriptorImpl.class);
    }

    {
        registrar.registerMetaData(new ClassFilter(XmlElementDecl.class), com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class);
    }

    {
        registrar.registerMetaData(new ClassFilter(XmlAttributeDecl.class), com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class);
    }

    {
        registrar.registerMetaData(new AndFilter(new ClassFilter(XmlDocument.class), new TargetNamespaceFilter(XmlUtil.XHTML_URI), new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
                RelaxedHtmlFromSchemaNSDescriptor.class);
    }

    {
        registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType", "simpleType", "group", "attributeGroup")),
                NamedObjectDescriptor.class);
    }
}
项目:intellij-ce-playground    文件:CoreApplicationEnvironment.java   
public CoreApplicationEnvironment(@NotNull Disposable parentDisposable) {
  myParentDisposable = parentDisposable;

  myFileTypeRegistry = new CoreFileTypeRegistry();

  myApplication = createApplication(myParentDisposable);
  ApplicationManager.setApplication(myApplication,
                                    new StaticGetter<FileTypeRegistry>(myFileTypeRegistry),
                                    myParentDisposable);
  myLocalFileSystem = createLocalFileSystem();
  myJarFileSystem = createJarFileSystem();

  Extensions.registerAreaClass(ExtensionAreas.IDEA_PROJECT, null);

  final MutablePicoContainer appContainer = myApplication.getPicoContainer();
  registerComponentInstance(appContainer, FileDocumentManager.class, new MockFileDocumentManagerImpl(new Function<CharSequence, Document>() {
    @Override
    public Document fun(CharSequence charSequence) {
      return new DocumentImpl(charSequence);
    }
  }, null));

  VirtualFileSystem[] fs = {myLocalFileSystem, myJarFileSystem};
  VirtualFileManagerImpl virtualFileManager = new VirtualFileManagerImpl(fs, MessageBusFactory.newMessageBus(myApplication));
  registerComponentInstance(appContainer, VirtualFileManager.class, virtualFileManager);

  registerApplicationService(EncodingManager.class, new CoreEncodingRegistry());
  registerApplicationService(VirtualFilePointerManager.class, createVirtualFilePointerManager());
  registerApplicationService(DefaultASTFactory.class, new CoreASTFactory());
  registerApplicationService(PsiBuilderFactory.class, new PsiBuilderFactoryImpl());
  registerApplicationService(ReferenceProvidersRegistry.class, new ReferenceProvidersRegistryImpl());
  registerApplicationService(StubTreeLoader.class, new CoreStubTreeLoader());
  registerApplicationService(PsiReferenceService.class, new PsiReferenceServiceImpl());
  registerApplicationService(MetaDataRegistrar.class, new MetaRegistry());

  registerApplicationService(ProgressManager.class, createProgressIndicatorProvider());

  registerApplicationService(JobLauncher.class, createJobLauncher());
  registerApplicationService(CodeFoldingSettings.class, new CodeFoldingSettings());
  registerApplicationService(CommandProcessor.class, new CoreCommandProcessor());
  myApplication.registerService(ApplicationInfo.class, ApplicationInfoImpl.class);
}
项目:intellij-ce-playground    文件:XmlApplicationComponent.java   
@Override
public void contributeMetaData(final MetaDataRegistrar registrar) {
  {
    registrar.registerMetaData(
        new AndFilter(
            new NamespaceFilter(XmlUtil.SCHEMA_URIS),
            new ClassFilter(XmlDocument.class)
        ),
        SchemaNSDescriptor.class
    );

    registrar.registerMetaData(
        new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")),
        SchemaNSDescriptor.class
    );
  }
  {
    registrar.registerMetaData(
        new OrFilter(
            new AndFilter(
                new ContentFilter(
                  new OrFilter(
                    new ClassFilter(XmlElementDecl.class),
                    new ClassFilter(XmlEntityDecl.class),
                    new ClassFilter(XmlConditionalSection.class),
                    new ClassFilter(XmlEntityRef.class)
                  )
                ),
                new ClassFilter(XmlDocument.class)
            ),
            new ClassFilter(XmlMarkupDecl.class)
        ),
        XmlNSDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")),
                       XmlElementDescriptorImpl.class);
  }

  {
    registrar.registerMetaData(
        new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")),
        XmlAttributeDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new ClassFilter(XmlElementDecl.class),
        com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new ClassFilter(XmlAttributeDecl.class),
        com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new AndFilter(
            new ClassFilter(XmlDocument.class),
            new TargetNamespaceFilter(XmlUtil.XHTML_URI),
            new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
        RelaxedHtmlFromSchemaNSDescriptor.class
    );
  }

  {
    registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType",
                                                                                                                                "simpleType", "group",
                                                                                                                                "attributeGroup")),
                       NamedObjectDescriptor.class);
  }
}
项目:intellij-ce-playground    文件:JavaFXMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  MetaDataRegistrar.getInstance().registerMetaData(new RootTagFilter(new NamespaceFilter(JavaFXNamespaceProvider.JAVAFX_NAMESPACE)), JavaFXNSDescriptor.class);
}
项目:tools-idea    文件:CoreApplicationEnvironment.java   
public CoreApplicationEnvironment(Disposable parentDisposable) {
  myParentDisposable = parentDisposable;
  Extensions.cleanRootArea(myParentDisposable);

  myFileTypeRegistry = new CoreFileTypeRegistry();
  myEncodingRegistry = new CoreEncodingRegistry();

  myApplication = createApplication(myParentDisposable);
  ApplicationManager.setApplication(myApplication,
                                    new StaticGetter<FileTypeRegistry>(myFileTypeRegistry),
                                    new StaticGetter<EncodingRegistry>(myEncodingRegistry),
                                    myParentDisposable);
  myLocalFileSystem = createLocalFileSystem();
  myJarFileSystem = createJarFileSystem();

  Extensions.registerAreaClass(ExtensionAreas.IDEA_PROJECT, null);

  final MutablePicoContainer appContainer = myApplication.getPicoContainer();
  registerComponentInstance(appContainer, FileDocumentManager.class, new MockFileDocumentManagerImpl(new Function<CharSequence, Document>() {
    @Override
    public Document fun(CharSequence charSequence) {
      return new DocumentImpl(charSequence);
    }
  }, null));

  VirtualFileSystem[] fs = {myLocalFileSystem, myJarFileSystem};
  VirtualFileManagerImpl virtualFileManager = new VirtualFileManagerImpl(fs, new MessageBusImpl(myApplication, null));
  registerComponentInstance(appContainer, VirtualFileManager.class, virtualFileManager);

  registerApplicationService(VirtualFilePointerManager.class, createVirtualFilePointerManager());
  myApplication.registerService(DefaultASTFactory.class, new CoreASTFactory());
  myApplication.registerService(PsiBuilderFactory.class, new PsiBuilderFactoryImpl());
  myApplication.registerService(ReferenceProvidersRegistry.class, new MockReferenceProvidersRegistry());
  myApplication.registerService(StubTreeLoader.class, new CoreStubTreeLoader());
  myApplication.registerService(PsiReferenceService.class, new PsiReferenceServiceImpl());
  myApplication.registerService(MetaDataRegistrar.class, new MetaRegistry());

  registerApplicationExtensionPoint(ContentBasedFileSubstitutor.EP_NAME, ContentBasedFileSubstitutor.class);
  registerExtensionPoint(Extensions.getRootArea(), BinaryFileStubBuilders.EP_NAME, FileTypeExtensionPoint.class);
  registerExtensionPoint(Extensions.getRootArea(), FileContextProvider.EP_NAME, FileContextProvider.class);

  registerApplicationExtensionPoint(MetaDataContributor.EP_NAME, MetaDataContributor.class);

  ProgressIndicatorProvider.ourInstance = createProgressIndicatorProvider();

  myApplication.registerService(JobLauncher.class, createJobLauncher());
}
项目:tools-idea    文件:XmlApplicationComponent.java   
public void contributeMetaData(final MetaDataRegistrar registrar) {
  {
    registrar.registerMetaData(
        new AndFilter(
            new NamespaceFilter(XmlUtil.SCHEMA_URIS),
            new ClassFilter(XmlDocument.class)
        ),
        SchemaNSDescriptor.class
    );

    registrar.registerMetaData(
        new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("schema")),
        SchemaNSDescriptor.class
    );
  }
  {
    registrar.registerMetaData(
        new OrFilter(
            new AndFilter(
                new ContentFilter(
                  new OrFilter(
                    new ClassFilter(XmlElementDecl.class),
                    new ClassFilter(XmlEntityDecl.class),
                    new ClassFilter(XmlConditionalSection.class),
                    new ClassFilter(XmlEntityRef.class)
                  )
                ),
                new ClassFilter(XmlDocument.class)
            ),
            new ClassFilter(XmlMarkupDecl.class)
        ),
        XmlNSDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("element")),
                       XmlElementDescriptorImpl.class);
  }

  {
    registrar.registerMetaData(
        new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("attribute")),
        XmlAttributeDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new ClassFilter(XmlElementDecl.class),
        com.intellij.xml.impl.dtd.XmlElementDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new ClassFilter(XmlAttributeDecl.class),
        com.intellij.xml.impl.dtd.XmlAttributeDescriptorImpl.class
    );
  }

  {
    registrar.registerMetaData(
        new AndFilter(
            new ClassFilter(XmlDocument.class),
            new TargetNamespaceFilter(XmlUtil.XHTML_URI),
            new NamespaceFilter(XmlUtil.SCHEMA_URIS)),
        RelaxedHtmlFromSchemaNSDescriptor.class
    );
  }

  {
    registrar.registerMetaData(new AndFilter(XmlTagFilter.INSTANCE, new NamespaceFilter(XmlUtil.SCHEMA_URIS), new XmlTextFilter("complexType",
                                                                                                                                "simpleType", "group",
                                                                                                                                "attributeGroup")),
                       NamedObjectDescriptor.class);
  }
}
项目:tools-idea    文件:JavaFXMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  MetaDataRegistrar.getInstance().registerMetaData(new RootTagFilter(new NamespaceFilter(JavaFXNamespaceProvider.JAVAFX_NAMESPACE)), JavaFXNSDescriptor.class);
}
项目:consulo-javafx    文件:JavaFXMetaDataContributor.java   
@Override
public void contributeMetaData(MetaDataRegistrar registrar) {
  MetaDataRegistrar.getInstance().registerMetaData(new RootTagFilter(new NamespaceFilter(JavaFXNamespaceProvider.JAVAFX_NAMESPACE)), JavaFXNSDescriptor.class);
}
项目:consulo    文件:CoreApplicationEnvironment.java   
public CoreApplicationEnvironment(@Nonnull Disposable parentDisposable) {
  myParentDisposable = parentDisposable;

  myFileTypeRegistry = new CoreFileTypeRegistry();

  myApplication = createApplication(myParentDisposable);
  ApplicationManager.setApplication(myApplication,
                                    new StaticGetter<>(myFileTypeRegistry),
                                    myParentDisposable);
  myLocalFileSystem = createLocalFileSystem();
  myJarFileSystem = createJarFileSystem();

  Extensions.registerAreaClass(ExtensionAreas.PROJECT, null);

  final MutablePicoContainer appContainer = myApplication.getPicoContainer();
  registerComponentInstance(appContainer, FileDocumentManager.class, new MockFileDocumentManagerImpl(DocumentImpl::new, null));

  VirtualFileSystem[] fs = {myLocalFileSystem, myJarFileSystem};
  VirtualFileManagerImpl virtualFileManager = new VirtualFileManagerImpl(fs, myApplication.getMessageBus());
  registerComponentInstance(appContainer, VirtualFileManager.class, virtualFileManager);

  registerApplicationExtensionPoint(ASTLazyFactory.EP.getExtensionPointName(), ASTLazyFactory.class);
  registerApplicationExtensionPoint(ASTLeafFactory.EP.getExtensionPointName(), ASTLeafFactory.class);
  registerApplicationExtensionPoint(ASTCompositeFactory.EP.getExtensionPointName(), ASTCompositeFactory.class);

  addExtension(ASTLazyFactory.EP.getExtensionPointName(), new DefaultASTLazyFactory());
  addExtension(ASTLeafFactory.EP.getExtensionPointName(), new DefaultASTLeafFactory());
  addExtension(ASTCompositeFactory.EP.getExtensionPointName(), new DefaultASTCompositeFactory());

  registerApplicationService(EncodingManager.class, new CoreEncodingRegistry());
  registerApplicationService(VirtualFilePointerManager.class, createVirtualFilePointerManager());
  registerApplicationService(PsiBuilderFactory.class, new PsiBuilderFactoryImpl());
  registerApplicationService(ReferenceProvidersRegistry.class, new MockReferenceProvidersRegistry());
  registerApplicationService(StubTreeLoader.class, new CoreStubTreeLoader());
  registerApplicationService(PsiReferenceService.class, new PsiReferenceServiceImpl());
  registerApplicationService(MetaDataRegistrar.class, new MetaRegistry());

  registerApplicationService(ProgressManager.class, createProgressIndicatorProvider());

  registerApplicationService(JobLauncher.class, createJobLauncher());
  registerApplicationService(CodeFoldingSettings.class, new CodeFoldingSettings());
  registerApplicationService(CommandProcessor.class, new CoreCommandProcessor());
  myApplication.registerService(ApplicationInfo.class, ApplicationInfoImpl.class);
}