当前位置: 首页>>代码示例>>Java>>正文


Java IExtensionRegistry.addListener方法代码示例

本文整理汇总了Java中org.eclipse.core.runtime.IExtensionRegistry.addListener方法的典型用法代码示例。如果您正苦于以下问题:Java IExtensionRegistry.addListener方法的具体用法?Java IExtensionRegistry.addListener怎么用?Java IExtensionRegistry.addListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.core.runtime.IExtensionRegistry的用法示例。


在下文中一共展示了IExtensionRegistry.addListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: start

import org.eclipse.core.runtime.IExtensionRegistry; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
 */
public void start(BundleContext context) throws Exception {
	super.start(context);
	plugin = this;

	fileTypeRegistry = new IdeFileTypeRegistry(MappingUtils.getFileTypeRegistry());
	MappingUtils.setFileTypeRegistry(fileTypeRegistry);

	IdeMappingUtils.getFileConectorDelegateRegistry().register(new TextFileConnectorDelegate());

	final IExtensionRegistry registry = Platform.getExtensionRegistry();
	registry.addListener(registryListener, IdeMappingRegistryListener.CONTAINER_PROVIDER_EXTENSION_POINT);
	registry.addListener(registryListener,
			IdeMappingRegistryListener.FILE_CONNECTOR_DELEGATE_EXTENSION_POINT);
	registry.addListener(registryListener, IdeMappingRegistryListener.CONNECTOR_EXTENSION_POINT);
	registry.addListener(registryListener, IdeMappingRegistryListener.MARKER_TO_LOCATION_EXTENSION_POINT);
	registry.addListener(registryListener, IdeMappingRegistryListener.LOCATION_EXTENSION_POINT);
	registry.addListener(registryListener, IdeMappingRegistryListener.BASE_PROVIDER_EXTENSION_POINT);
	registryListener.parseInitialContributions();
}
 
开发者ID:ModelWriter,项目名称:Source,代码行数:25,代码来源:Activator.java

示例2: start

import org.eclipse.core.runtime.IExtensionRegistry; //导入方法依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
    super.start(context);
    final IExtensionRegistry registry = Platform.getExtensionRegistry();
    registry.addListener(registryListener,
            ServicesConfiguratorRegistryListener.SERVICES_CONFIGURATOR_EXTENSION_POINT);
    registryListener.parseInitialContributions();
    registry.addListener(servicesListener, DeclaredServicesListener.SERVICE_REGISTERY_EXTENSION_POINT);
    servicesListener.parseInitialContributions();
    classProvider = new EclipseClassProvider(context, this.getClass().getClassLoader());
}
 
开发者ID:ObeoNetwork,项目名称:M2Doc,代码行数:12,代码来源:M2DocPlugin.java

示例3: start

import org.eclipse.core.runtime.IExtensionRegistry; //导入方法依赖的package包/类
/**
 * {@inheritDoc}
 * 
 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
 */
public void start(BundleContext context) throws Exception {
	super.start(context);
	plugin = this;

	final IExtensionRegistry registry = Platform.getExtensionRegistry();
	registry.addListener(registryListener, IdeSemanticRegistryListener.BASE_PROVIDER_EXTENSION_POINT);
	registry.addListener(registryListener, IdeSemanticRegistryListener.SEMANTIC_PROVIDER_EXTENSION_POINT);
	registry.addListener(registryListener,
			IdeSemanticRegistryListener.SEMANTIC_SIMILARITY_PROVIDER_EXTENSION_POINT);
	registryListener.parseInitialContributions();
}
 
开发者ID:ModelWriter,项目名称:Source,代码行数:17,代码来源:Activator.java


注:本文中的org.eclipse.core.runtime.IExtensionRegistry.addListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。