Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtension


        "net.sf.springofeclipse.imports");

    IExtension[] extensions = ep.getExtensions();

    for (int i = 0; i < extensions.length; i++) {
      IExtension extension = extensions[i];

      IConfigurationElement[] elements = extension
          .getConfigurationElements();

      for (int j = 0; j < elements.length; j++) {
        IConfigurationElement configurationElement = elements[j];

        String contextIdTemp = configurationElement
            .getAttribute("contextId");

        if (contextId.equals(contextIdTemp)) {
          if (log.isDebugEnabled()) {
            log.debug("loading imports for context: [id="
                + contextId + "]");
          }

          ImportConfiguration configuration = new ImportConfiguration();

          Bundle bundle = Platform.getBundle(extension
              .getNamespaceIdentifier());

          configuration.classLoader = new BundleClassLoader(bundle);

          String readerClassName = configurationElement
View Full Code Here


            IExtension[] extensions = extensionPoint.getExtensions();
            if ( extensions != null )
            {
                for ( int i = 0; i < extensions.length; i++ )
                {
                    IExtension extension = extensions[i];
                    IConfigurationElement[] elements = extension.getConfigurationElements();
                    for ( int j = 0; j < elements.length; j++ )
                    {
                        IConfigurationElement element = elements[j];
                        if ( element.getName().equals( "perspective" ) )
                        {
View Full Code Here

        {
            ValueEditorExtension proxy = new ValueEditorExtension();
            valueEditorExtensions.add( proxy );

            IConfigurationElement member = members[m];
            IExtension extension = member.getDeclaringExtension();
            String extendingPluginId = extension.getNamespaceIdentifier();

            proxy.member = member;
            proxy.name = member.getAttribute( "name" );
            String iconPath = member.getAttribute( "icon" );
            proxy.icon = AbstractUIPlugin.imageDescriptorFromPlugin( extendingPluginId, iconPath );
View Full Code Here

            IExtension[] extensions = extensionPoint.getExtensions();
            if ( extensions != null )
            {
                for ( int i = 0; i < extensions.length; i++ )
                {
                    IExtension extension = extensions[i];
                    IConfigurationElement[] elements = extension.getConfigurationElements();
                    for ( int j = 0; j < elements.length; j++ )
                    {
                        IConfigurationElement element = elements[j];
                        if ( element.getName().equals( "perspective" ) ) //$NON-NLS-1$
                        {
View Full Code Here

            IExtension[] extensions = extensionPoint.getExtensions();
            if ( extensions != null )
            {
                for ( int i = 0; i < extensions.length; i++ )
                {
                    IExtension extension = extensions[i];
                    IConfigurationElement[] elements = extension.getConfigurationElements();
                    for ( int j = 0; j < elements.length; j++ )
                    {
                        IConfigurationElement element = elements[j];
                        if ( element.getName().equals( "perspective" ) )
                        {
View Full Code Here

        {
            ValueEditorExtension proxy = new ValueEditorExtension();
            valueEditorProxies.add( proxy );

            IConfigurationElement member = members[m];
            IExtension extension = member.getDeclaringExtension();
            String extendingPluginId = extension.getNamespaceIdentifier();

            proxy.member = member;
            proxy.name = member.getAttribute( "name" );
            String iconPath = member.getAttribute( "icon" );
            proxy.icon = AbstractUIPlugin.imageDescriptorFromPlugin( extendingPluginId, iconPath );
View Full Code Here

    public ImageDescriptor getIcon() {
        if (icon == null) {
      return null;
    }

        IExtension extension = configElement.getDeclaringExtension();
        String extendingPluginId = extension.getNamespace();
        return AbstractUIPlugin.imageDescriptorFromPlugin(extendingPluginId,
                icon);
    }
View Full Code Here

        // If the icon attribute was omitted, use the default one
        if (iconName == null) {
      return PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(
                    ISharedImages.IMG_DEF_VIEW);
    }
        IExtension extension = configElement.getDeclaringExtension();
        String extendingPluginId = extension.getNamespace();
        imageDescriptor = AbstractUIPlugin.imageDescriptorFromPlugin(
                extendingPluginId, iconName);
        // If the icon attribute was invalid, use the error icon
        if (imageDescriptor == null) {
            imageDescriptor = ImageDescriptor.getMissingImageDescriptor();
View Full Code Here

    public void registryChanged(IRegistryChangeEvent event) {
        try {
            IExtensionDelta delta[] = event
                    .getExtensionDeltas(WorkbenchPlugin.PI_WORKBENCH);
            IExtension ext;
            IExtensionPoint extPt;
            IWorkbenchWindow[] win = PlatformUI.getWorkbench()
                    .getWorkbenchWindows();
            if (win.length == 0) {
        return;
View Full Code Here

            extensions.length);
        for (int i = 0; i < extensions.length; ++i) {
          if (monitor.isCanceled() || !isRunning()) {
            return Status.CANCEL_STATUS;
          }
          IExtension extension = extensions[i];

          // if the plugin is not in the set of disabled plugins, then
          // execute the code to start it
          if (!disabledPlugins.contains(extension.getNamespace())) {
            monitor.subTask(extension.getNamespace());
            SafeRunner.run(new EarlyStartupRunnable(extension));
          }
          monitor.worked(1);
        }
        monitor.done();
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.IExtension

Copyright © 2018 www.massapicom. 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.