本文整理汇总了Java中org.eclipse.core.runtime.IRegistryChangeEvent类的典型用法代码示例。如果您正苦于以下问题:Java IRegistryChangeEvent类的具体用法?Java IRegistryChangeEvent怎么用?Java IRegistryChangeEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IRegistryChangeEvent类属于org.eclipse.core.runtime包,在下文中一共展示了IRegistryChangeEvent类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(final IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(TypeScriptCorePlugin.PLUGIN_ID,
EXTENSION_TYPESCRIPT_RESOURCE_PARTICIPANTS);
if (deltas != null) {
synchronized (this) {
for (IExtensionDelta delta : deltas) {
IConfigurationElement[] cf = delta.getExtension().getConfigurationElements();
if (delta.getKind() == IExtensionDelta.ADDED) {
addExtensionResourceParticipants(cf);
} else {
removeExtensionResourceParticipants(cf);
}
}
}
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:18,代码来源:IDEResourcesManager.java
示例2: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(final IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(TypeScriptCorePlugin.PLUGIN_ID,
EXTENSION_TYPESCRIPT_REPOSITORIES);
if (deltas != null) {
synchronized (this) {
for (IExtensionDelta delta : deltas) {
IConfigurationElement[] cf = delta.getExtension().getConfigurationElements();
if (delta.getKind() == IExtensionDelta.ADDED) {
addExtensionRepositories(cf);
} else {
removeExtensionRepositories(cf);
}
}
}
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:18,代码来源:IDETypeScriptRepositoryManager.java
示例3: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
public void registryChanged( IRegistryChangeEvent event )
{
IExtensionDelta[] deltas = event.getExtensionDeltas( "org.eclipse.birt.report.designer.ui", //$NON-NLS-1$
"DNDServices" ); //$NON-NLS-1$
for ( int i = 0; i < deltas.length; i++ )
{
if ( deltas[i].getKind( ) == IExtensionDelta.ADDED )
{
addRegistry( deltas[i].getExtensionPoint( ) );
}
else if ( deltas[i].getKind( ) == IExtensionDelta.REMOVED )
{
removeRegistry( deltas[i].getExtensionPoint( ) );
}
}
}
开发者ID:eclipse,项目名称:birt,代码行数:17,代码来源:DNDService.java
示例4: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(CodeLensPlugin.PLUGIN_ID, EXTENSION_CODELENS_PROVIDERS);
if (deltas != null) {
for (IExtensionDelta delta : deltas)
handleCodeLensProvidersDelta(delta);
}
}
开发者ID:angelozerr,项目名称:codelens-eclipse,代码行数:9,代码来源:CodeLensProviderRegistry.java
示例5: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(CodeLensEditorPlugin.PLUGIN_ID,
EXTENSION_CODELENS_CONTROLLER_FACTORIES);
if (deltas != null) {
for (IExtensionDelta delta : deltas)
handleCodeLensProvidersDelta(delta);
}
}
开发者ID:angelozerr,项目名称:codelens-eclipse,代码行数:10,代码来源:CodeLensControllerRegistry.java
示例6: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(final IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(TypeScriptCorePlugin.PLUGIN_ID,
EXTENSION_TYPESCRIPT_CONSOLE_CONNECTORS);
if (deltas != null) {
for (IExtensionDelta delta : deltas)
handleTypeScriptConsoleConnectorDelta(delta);
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:10,代码来源:TypeScriptConsoleConnectorManager.java
示例7: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(final IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(TypeScriptCorePlugin.PLUGIN_ID, EXTENSION_NODEJS_INSTALLS);
if (deltas != null) {
for (IExtensionDelta delta : deltas)
handleNodejsInstallDelta(delta);
}
}
开发者ID:angelozerr,项目名称:typescript.java,代码行数:9,代码来源:NodejsInstallManager.java
示例8: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(final IRegistryChangeEvent event) {
IExtensionDelta[] deltas = event.getExtensionDeltas(
WebResourcesCorePlugin.PLUGIN_ID,
EXTENSION_WEB_RESOURCES_FINDER_TYPE_PROVIDERS);
if (deltas != null) {
for (IExtensionDelta delta : deltas)
handleDelta(delta);
}
}
开发者ID:angelozerr,项目名称:eclipse-wtp-webresources,代码行数:11,代码来源:WebResourcesFinderTypeProviderManager.java
示例9: readRegistry
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
/**
* Reads from the plugin registry and parses it.
*/
public void readRegistry()
{
final IExtensionPoint point = pluginRegistry.getExtensionPoint(pluginID, extensionPointID);
if (point != null)
{
IConfigurationElement[] elements = point.getConfigurationElements();
for (int i = 0; i < elements.length; i++)
{
internalReadElement(elements[i], true);
}
pluginRegistry.addRegistryChangeListener
(new IRegistryChangeListener()
{
public void registryChanged(IRegistryChangeEvent event)
{
IExtensionDelta[] deltas = event.getExtensionDeltas();
for (int i = 0; i < deltas.length; ++i)
{
IExtensionDelta delta = deltas[i];
if (point.equals(delta.getExtensionPoint()))
{
boolean add = delta.getKind() == IExtensionDelta.ADDED;
IExtension extension = delta.getExtension();
IConfigurationElement[] configurationElement = extension.getConfigurationElements();
for (int j = 0; j < configurationElement.length; ++j)
{
internalReadElement(configurationElement[j], add);
}
}
}
}
});
}
}
开发者ID:LangleyStudios,项目名称:eclipse-avro,代码行数:39,代码来源:RegistryReader.java
示例10: readRegistry
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
/**
* Reads from the plugin registry and parses it.
*/
public void readRegistry()
{
IExtensionPoint point = pluginRegistry.getExtensionPoint(pluginID, extensionPointID);
if (point != null)
{
IConfigurationElement[] elements = point.getConfigurationElements();
for (int i = 0; i < elements.length; i++)
{
internalReadElement(elements[i], true);
}
}
pluginRegistry.addRegistryChangeListener
(new IRegistryChangeListener()
{
public void registryChanged(IRegistryChangeEvent event)
{
IExtensionDelta[] deltas = event.getExtensionDeltas();
for (int i = 0; i < deltas.length; ++i)
{
IExtensionDelta delta = deltas[i];
if (delta.getExtensionPoint().getUniqueIdentifier().equals(qualifiedExtensionPointID))
{
boolean add = delta.getKind() == IExtensionDelta.ADDED;
IExtension extension = delta.getExtension();
IConfigurationElement[] configurationElement = extension.getConfigurationElements();
for (int j = 0; j < configurationElement.length; ++j)
{
internalReadElement(configurationElement[j], add);
}
}
}
}
});
}
开发者ID:markus1978,项目名称:clickwatch,代码行数:39,代码来源:RegistryReader.java
示例11: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged ( final IRegistryChangeEvent event )
{
clearCache ();
}
开发者ID:eclipse,项目名称:neoscada,代码行数:6,代码来源:GeneratorLocator.java
示例12: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
@Override
public void registryChanged(IRegistryChangeEvent event) {
setChanged(true);
}
开发者ID:eclipse,项目名称:eclipse.jdt.ls,代码行数:5,代码来源:BundleUtilsTest.java
示例13: registryChanged
import org.eclipse.core.runtime.IRegistryChangeEvent; //导入依赖的package包/类
/** {@inheritDoc} */
public void registryChanged(final IRegistryChangeEvent event) {
fContributionCache = null;
fIdCache = null;
}
开发者ID:eclipse,项目名称:che,代码行数:6,代码来源:RefactoringContributionManager.java
注:本文中的org.eclipse.core.runtime.IRegistryChangeEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论