當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。