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

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

Best Java code snippets using org.eclipse.core.runtime.IExtensionRegistry.getNamespaces (Showing top 4 results out of 315)

origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: org.eclipse.equinox/registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: org.eclipse.platform/org.eclipse.equinox.registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
origin: org.eclipse/equinox-registry

public void _ns(CommandInterpreter ci) throws Exception {
  String namespace = getArgument(ci);
  if (namespace == null) {
    String[] namespaces = RegistryFactory.getRegistry().getNamespaces();
    ci.println("Namespace(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    for (int i = 0; i < namespaces.length; i++)
      ci.println(namespaces[i]);
    return;
  }
  IExtensionRegistry registry = RegistryFactory.getRegistry();
  IExtensionPoint[] extpts = registry.getExtensionPoints(namespace);
  ci.println("Extension point(s):"); //$NON-NLS-1$
  ci.println("-------------------"); //$NON-NLS-1$
  for (int i = 0; i < extpts.length; i++)
    displayExtensionPoint(extpts[i], ci);
  if (verbose) {
    ci.println("\nExtension(s):"); //$NON-NLS-1$
    ci.println("-------------------"); //$NON-NLS-1$
    IExtension[] exts = RegistryFactory.getRegistry().getExtensions(namespace);
    for (int j = 0; j < exts.length; j++)
      displayExtension(exts[j], ci, true /*full*/);
  }
}
org.eclipse.core.runtimeIExtensionRegistrygetNamespaces

Javadoc

Returns all namespaces currently used by extensions and extension points in this registry. Returns an empty array if there are no known extensions/extension points in this registry.

The fully-qualified name of an extension point or an extension consist of a namespace and a simple name (much like a qualified Java class name consist of a package name and a class name). The simple names are presumed to be unique in the namespace.

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
  • addRegistryChangeListener
    Note: for new implementations consider using #addListener(IRegistryEventListener,String). Adds the g
  • 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
  • stop

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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