本文整理汇总了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();
}
示例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());
}
示例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();
}