Examples of IExtensionRegistry


Examples of org.eclipse.core.runtime.IExtensionRegistry

            String mode = href.substring(0, index);
            String id = href.substring(index + 1);

            //getEditor().doSave(null);

            IExtensionRegistry registry = Platform.getExtensionRegistry();
            IConfigurationElement[] elements = registry.getConfigurationElementsFor("org.eclipse.debug.ui.launchShortcuts"); //$NON-NLS-1$
            for (int i = 0; i < elements.length; i++)
            {
                if (id.equals(elements[i].getAttribute("id"))) //$NON-NLS-1$
                    try
                    {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        {
            if (builders.isEmpty())
            {
                final HashMap<IOSGiInstallBuilder, Integer> tmp = new HashMap<IOSGiInstallBuilder, Integer>();

                IExtensionRegistry registry = Platform.getExtensionRegistry();
                IExtensionPoint p = registry.getExtensionPoint(SigilCore.INSTALL_BUILDER_EXTENSION_POINT_ID);
                for (IExtension e : p.getExtensions())
                {
                    for (IConfigurationElement c : e.getConfigurationElements())
                    {
                        createBuilderFromElement(c, tmp);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        throw e;
      }
    }

    private void loadCommands() {
        IExtensionRegistry registry = Activator.getActivator().getRegistry();
        if (registry != null) {
            IExtensionPoint point = registry.getExtensionPoint(IDavinciServerConstants.BUNDLE_ID, IDavinciServerConstants.EXTENSION_POINT_COMMAND);

            if (point != null) {
                IExtension[] extensions = point.getExtensions();
                for (int i = 0; i < extensions.length; i++) {
                    IConfigurationElement[] elements = extensions[i].getConfigurationElements();
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

     * This method can be called more than once in order to reload from a
     * changed extension registry.
     * </p>
     */
    public void reloadExtensions() {
        final IExtensionRegistry registry = Platform.getExtensionRegistry();
        final Map<String, ErlangFoldingStructureProviderDescriptor> map = new HashMap<String, ErlangFoldingStructureProviderDescriptor>();

        final IConfigurationElement[] elements = registry.getConfigurationElementsFor(
                ErlideUIPlugin.PLUGIN_ID, EXTENSION_POINT);
        for (final IConfigurationElement element : elements) {
            final ErlangFoldingStructureProviderDescriptor desc = new ErlangFoldingStructureProviderDescriptor(
                    element);
            map.put(desc.getId(), desc);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        return result;
    }

    private List<QuickFix> getQuickFixes() {
        final List<QuickFix> result = Lists.newArrayList();
        final IExtensionRegistry reg = RegistryFactory.getRegistry();
        final IConfigurationElement[] elements = reg
                .getConfigurationElementsFor("org.erlide.ui.quickfix");
        for (final IConfigurationElement element : elements) {
            final QuickFix qf = new QuickFix();
            qf.setLabel(element.getAttribute("label"));
            qf.setDescription(element.getAttribute("description"));
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

     *
     * @return all contributed Erlang element filters
     */
    public static Collection<FilterDescriptor> getFilterDescriptors() {
        if (fgFilterDescriptors == null) {
            final IExtensionRegistry registry = Platform.getExtensionRegistry();
            final IConfigurationElement[] elements = registry
                    .getConfigurationElementsFor(ErlideUIPlugin.PLUGIN_ID,
                            EXTENSION_POINT_NAME);
            final String extensionPointID = ErlideUIPlugin.PLUGIN_ID + "."
                    + EXTENSION_POINT_NAME;
            fgFilterDescriptors = createFilterDescriptors(elements, extensionPointID);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        final IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IWorkspaceRoot workspaceRoot = workspace.getRoot();
        ErlideEventTracer.getInstance().traceSession(
                workspaceRoot.getLocation().toPortableString());

        final IExtensionRegistry extensionRegistry = Platform.getExtensionRegistry();
        final String logDir = workspaceRoot.getLocation().toPortableString();
        final ErlangDebugOptionsManager erlangDebugOptionsManager = new ErlangDebugOptionsManager();

        core = new ErlangCore(this, workspace, extensionRegistry, logDir,
                erlangDebugOptionsManager);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        }
        return v;
    }

    public static IConfigurationElement[] getSourcepathConfigurationElements() {
        final IExtensionRegistry reg = RegistryFactory.getRegistry();
        return reg.getConfigurationElementsFor(BackendActivator.PLUGIN_ID,
                "sourcePathProvider");
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        return reg.getConfigurationElementsFor(BackendActivator.PLUGIN_ID,
                "sourcePathProvider");
    }

    public static IConfigurationElement[] getCodepathConfigurationElements() {
        final IExtensionRegistry reg = RegistryFactory.getRegistry();
        return reg.getConfigurationElementsFor(BackendActivator.PLUGIN_ID, "codepath");
    }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionRegistry

        final IExtensionRegistry reg = RegistryFactory.getRegistry();
        return reg.getConfigurationElementsFor(BackendActivator.PLUGIN_ID, "codepath");
    }

    public static IExtensionPoint getCodepathExtension() {
        final IExtensionRegistry reg = Platform.getExtensionRegistry();
        return reg.getExtensionPoint(BackendActivator.PLUGIN_ID, "codepath");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.