Tabnine Logo
IExtensionRegistry.addRegistryChangeListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addRegistryChangeListener
method
in
org.eclipse.core.runtime.IExtensionRegistry

Best Java code snippets using org.eclipse.core.runtime.IExtensionRegistry.addRegistryChangeListener (Showing top 20 results out of 432)

origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Adds the listener that handles startup plugins
 *
 * @since 3.1
 */
private void addStartupRegistryListener() {
  registry.addRegistryChangeListener(startupRegistryListener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.contenttype

public static void addRegistryChangeListener(IExtensionRegistry registry) {
  if (registry == null)
    return;
  // Different instances of listener required. See documentation of
  // IExtensionRegistry.addRegistryChangeListener(IRegistryChangeListener, String).
  registry.addRegistryChangeListener(runtimeExtensionListener, IContentConstants.RUNTIME_NAME);
  registry.addRegistryChangeListener(contentExtensionListener, IContentConstants.CONTENT_NAME);
}
origin: org.eclipse.platform/org.eclipse.core.contenttype

public static void addRegistryChangeListener(IExtensionRegistry registry) {
  if (registry == null)
    return;
  // Different instances of listener required. See documentation of
  // IExtensionRegistry.addRegistryChangeListener(IRegistryChangeListener, String).
  registry.addRegistryChangeListener(runtimeExtensionListener, IContentConstants.RUNTIME_NAME);
  registry.addRegistryChangeListener(contentExtensionListener, IContentConstants.CONTENT_NAME);
}
origin: org.eclipse.platform/org.eclipse.ltk.core.refactoring

/**
 * Connects this manager to the platform's extension registry.
 */
public void connect() {
  Platform.getExtensionRegistry().addRegistryChangeListener(this, RefactoringCore.ID_PLUGIN);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

public void addListener(IRegistryChangeListener listener) {
  fRegistry.addRegistryChangeListener(listener);
  if (!fListeners.contains(listener))
    fListeners.add(listener);
}
origin: org.eclipse.platform/org.eclipse.core.filesystem

/**
 * This class has a singleton instance.
 */
private InternalFileSystemCore() {
  super();
  RegistryFactory.getRegistry().addRegistryChangeListener(this);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.expressions

public TypeExtensionManager(String extensionPoint) {
  Assert.isNotNull(extensionPoint);
  fExtensionPoint= extensionPoint;
  Platform.getExtensionRegistry().addRegistryChangeListener(this);
  initializeCaches();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.filesystem

/**
 * This class has a singleton instance.
 */
private InternalFileSystemCore() {
  super();
  RegistryFactory.getRegistry().addRegistryChangeListener(this);
}
origin: org.eclipse/core-expressions

public TypeExtensionManager(String extensionPoint) {
  Assert.isNotNull(extensionPoint);
  fExtensionPoint= extensionPoint;
  Platform.getExtensionRegistry().addRegistryChangeListener(this);
  initializeCaches();
}
origin: org.eclipse.platform/org.eclipse.core.expressions

public TypeExtensionManager(String extensionPoint) {
  Assert.isNotNull(extensionPoint);
  fExtensionPoint= extensionPoint;
  Platform.getExtensionRegistry().addRegistryChangeListener(this);
  initializeCaches();
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.core.contenttype

public static void addRegistryChangeListener(IExtensionRegistry registry) {
  if (registry == null)
    return;
  registry.addRegistryChangeListener(getInstance(), IContentConstants.RUNTIME_NAME);
  registry.addRegistryChangeListener(getInstance(), IContentConstants.CONTENT_NAME);
}
origin: org.eclipse.core/contenttype

public static void addRegistryChangeListener(IExtensionRegistry registry) {
  if (registry == null)
    return;
  registry.addRegistryChangeListener(getInstance(), IContentConstants.RUNTIME_NAME);
  registry.addRegistryChangeListener(getInstance(), IContentConstants.CONTENT_NAME);
}
origin: org.eclipse/org.eclipse.wst.server.ui

public static synchronized void addRegistryListener() {
  if (registryListener != null)
    return;
  
  registryListener = new RegistryChangeListener();
  IExtensionRegistry registry = Platform.getExtensionRegistry();
  registry.addRegistryChangeListener(registryListener, ServerUIPlugin.PLUGIN_ID);
}
origin: org.eclipse.platform/org.eclipse.ui.workbench

public PreferencePageParameterValues() {
  Platform.getExtensionRegistry().addRegistryChangeListener(
      event -> {
        if (event.getExtensionDeltas(PlatformUI.PLUGIN_ID,
            IWorkbenchRegistryConstants.PL_PREFERENCES).length > 0) {
          preferenceMap = null;
        }
      });
}
origin: org.eclipse/org.eclipse.ui.workbench.texteditor

public void start(BundleContext context) throws Exception {
  super.start(context);
  fQuickDiffExtensionRegistry= new QuickDiffExtensionsRegistry();
  fSpellingEngineRegistry= new SpellingEngineRegistry();
  Platform.getExtensionRegistry().addRegistryChangeListener(this, PLUGIN_ID);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.workbench.texteditor

@Override
public void start(BundleContext context) throws Exception {
  super.start(context);
  fQuickDiffExtensionRegistry= new QuickDiffExtensionsRegistry();
  fSpellingEngineRegistry= new SpellingEngineRegistry();
  Platform.getExtensionRegistry().addRegistryChangeListener(this, PLUGIN_ID);
}
origin: org.eclipse/org.eclipse.pde.core

private void loadElements() {
  fTargets = new HashMap();
  IExtensionRegistry registry = Platform.getExtensionRegistry();
  registry.addRegistryChangeListener(this);
  IConfigurationElement[] elements = registry.getConfigurationElementsFor("org.eclipse.pde.core.targets"); //$NON-NLS-1$
  add(elements);
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

private void loadElements() {
  fTargets = new HashMap<>();
  IExtensionRegistry registry = Platform.getExtensionRegistry();
  registry.addRegistryChangeListener(this);
  IConfigurationElement[] elements = registry.getConfigurationElementsFor("org.eclipse.pde.core.targets"); //$NON-NLS-1$
  add(elements);
}
origin: org.openehealth.ipf.eclipse.ocl/ipf-eclipse-ocl

private void readRegistryImpl() {
  extensionRegistry.addRegistryChangeListener(this, namespace);
  
  IExtension[] extensions = extensionRegistry.getExtensionPoint(
      namespace, PT_ENVIRONMENTS).getExtensions();
  
  for (IExtension extension : extensions) {
    read(extension);
  }
}

origin: org.eclipse.platform/org.eclipse.ui.workbench

/**
 * Registers listeners.
 *
 * @since 3.1
 */
private void registerListeners() {
  Platform.getExtensionRegistry().addRegistryChangeListener(
      registryListener);
  workbenchWindow.getExtensionTracker().registerHandler(
      configListener,  null);
}
org.eclipse.core.runtimeIExtensionRegistryaddRegistryChangeListener

Javadoc

Note: for new implementations consider using #addListener(IRegistryEventListener).

Adds the given listener for registry change events. Has no effect if an identical listener is already registered.

This method is equivalent to:

 
addRegistryChangeListener(listener,null); 

Popular methods of IExtensionRegistry

  • getExtensionPoint
    Returns the extension point in this extension registry with the given namespace and extension point
  • getConfigurationElementsFor
    Returns all configuration elements from the identified extension. Returns an empty array if the exte
  • removeRegistryChangeListener
    Removes the given registry change listener from this registry. Has no effect if an identical listene
  • addListener
    Adds the given listener for registry change events related to specified extension point. Once regist
  • removeListener
    Removes the given registry change listener from this registry. This method has no effect if the list
  • getExtension
    Returns the specified extension in this extension registry, or null if there is no such extension. T
  • getExtensionPoints
    Returns all extension points supplied by the contributor, or null if there are no such extension poi
  • addContribution
    Adds to this extension registry an extension point(s), extension(s), or a combination of those descr
  • getExtensions
    Returns all extensions supplied by the contributor, or null if there are no such extensions.
  • stop
    Call this method to properly stop the registry. The method stops registry event processing and write
  • getNamespaces
    Returns all namespaces currently used by extensions and extension points in this registry. Returns a
  • getNamespaces

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now