本文整理匯總了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();
}