Examples of IExtensionPoint


Examples of org.eclipse.core.runtime.IExtensionPoint

        return runListeners;
    }

    protected List computeListeners() {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint(RUN_LISTENER_ID);
        IExtension[] extensions = extensionPoint.getExtensions();
        ArrayList results = new ArrayList();
        for (int i = 0; i < extensions.length; i++) {
            IConfigurationElement[] elements = extensions[i].getConfigurationElements();
            for (int j = 0; j < elements.length; j++) {
                try {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

     * @param id the unique id of the extension point
     * @return null if the ExtensionPoint is not registered
     */
    public ExtensionPoint getExtensionPoint(String id)
    {
        IExtensionPoint eclipseExPoint = RegistryFactory.getRegistry().getExtensionPoint(id);
        Bundle plugin = new Bundle(eclipseExPoint.getContributor().getName(),"","","",null);

        org.osgi.framework.Bundle bundle = Platform.getBundle(eclipseExPoint.getContributor().getName());
        try
        {
            ExtensionPoint exPoint = new ExtensionPoint(eclipseExPoint.getSimpleIdentifier(),eclipseExPoint.getLabel(),bundle.getResource(eclipseExPoint.getSchemaReference()),plugin);
            for( int e=0; e<eclipseExPoint.getExtensions().length; e++)
            {
                Bundle pluginEx = new Bundle(eclipseExPoint.getExtensions()[e].getContributor().getName(),"","","",null);
                Extension ex = new Extension(exPoint, pluginEx);
                configurationElement(ex,eclipseExPoint.getExtensions()[e].getConfigurationElements(),null);
                exPoint.addExtension(ex);
            }
            return exPoint;
        }
        catch (InvalidRegistryObjectException e)
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

  private static ClasspathContainerInitializer computeClasspathContainerInitializer(String containerID) {
    Plugin jdtCorePlugin = JavaCore.getPlugin();
    if (jdtCorePlugin == null) return null;

    IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPCONTAINER_INITIALIZER_EXTPOINT_ID);
    if (extension != null) {
      IExtension[] extensions =  extension.getExtensions();
      for(int i = 0; i < extensions.length; i++){
        IConfigurationElement [] configElements = extensions[i].getConfigurationElements();
        for(int j = 0; j < configElements.length; j++){
          IConfigurationElement configurationElement = configElements[j];
          String initializerID = configurationElement.getAttribute("id"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

  public static ClasspathVariableInitializer getClasspathVariableInitializer(String variable){

    Plugin jdtCorePlugin = JavaCore.getPlugin();
    if (jdtCorePlugin == null) return null;

    IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPVARIABLE_INITIALIZER_EXTPOINT_ID);
    if (extension != null) {
      IExtension[] extensions =  extension.getExtensions();
      for(int i = 0; i < extensions.length; i++){
        IConfigurationElement [] configElements = extensions[i].getConfigurationElements();
        for(int j = 0; j < configElements.length; j++){
          IConfigurationElement configElement = configElements[j];
          try {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    private void initEntryEditorExtensions()
    {
        entryEditorExtensions = new HashMap<String, EntryEditorExtension>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint extensionPoint = registry.getExtensionPoint( BrowserUIConstants.ENTRY_EDITOR_EXTENSION_POINT );
        IConfigurationElement[] members = extensionPoint.getConfigurationElements();

        // For each extension:
        for ( int m = 0; m < members.length; m++ )
        {
            EntryEditorExtension bean = new EntryEditorExtension();
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    }
    return null;
  }

  private static void readBrandingDefinitions() {
    IExtensionPoint brandingExtPoint = Platform.getExtensionRegistry().getExtensionPoint(POINT_ID);
    if (brandingExtPoint != null) {
      brandingServerTypeIds.clear();
      for (IExtension extension : brandingExtPoint.getExtensions()) {
        for (IConfigurationElement config : extension.getConfigurationElements()) {
          String serverId = config.getAttribute(ATTR_SERVER_TYPE_ID);
          String name = config.getAttribute(ATTR_NAME);
          if (serverId != null && serverId.trim().length() > 0 && name != null && name.trim().length() > 0) {
            IConfigurationElement[] urls = config.getChildren(ELEM_DEFAULT_URL);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    return false;
  }

  private static Map<Priority, List<ApplicationProvider>> load() {
    Map<Priority, List<ApplicationProvider>> providerMap = new HashMap<Priority, List<ApplicationProvider>>();
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(EXTENSION_POINT);

    if (extensionPoint == null) {
      CloudFoundryPlugin.logError("Failed to load application type providers from: " + EXTENSION_POINT); //$NON-NLS-1$
    }
    else {
      for (IExtension extension : extensionPoint.getExtensions()) {
        for (IConfigurationElement config : extension.getConfigurationElements()) {

          if (APPLICATION_DELEGATE_EXT_ELEMENT.equals(config.getName())) {
            ApplicationProvider provider = new ApplicationProvider(config, EXTENSION_POINT);
            Priority priority = provider.getPriority();
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

  private void load() {

    isLoaded = true;

    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(EXTENSION_POINT);

    if (extensionPoint == null) {
      CloudFoundryPlugin.logError("Failed to load Cloud Foundry service icon extension providers from: " //$NON-NLS-1$
          + EXTENSION_POINT);
    }
    else {

      for (IExtension extension : extensionPoint.getExtensions()) {
        for (IConfigurationElement config : extension.getConfigurationElements()) {

          if (ELEMENT.equals(config.getName())) {
            try {
              ICloudFoundryServiceWizardIconProvider provider = (ICloudFoundryServiceWizardIconProvider) config
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    private static final String EXTENSION_ID_APP_STATE_TRACKER = "appStateTracker"; //$NON-NLS-1$

    public static CloudFoundryCallback readExtension() {
      IExtensionRegistry registry = Platform.getExtensionRegistry();
      IExtensionPoint extensionPoint = registry.getExtensionPoint(EXTENSION_ID_CALLBACK);
      IExtension[] extensions = extensionPoint.getExtensions();
      for (IExtension extension : extensions) {
        IConfigurationElement[] elements = extension.getConfigurationElements();
        for (IConfigurationElement element : elements) {
          if (element.getName().compareTo(ELEMENT_CALLBACK) == 0) {
            return readCallbackExtension(element);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    return getWizardDelegate(javaWebProvider);
  }

  private static void load() {
    wizardProviders = new HashMap<String, ApplicationWizardProvider>();
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(EXTENSION_POINT);

    if (extensionPoint == null) {
      CloudFoundryPlugin.logError("Failed to load Cloud Foundry application wizard providers from: " //$NON-NLS-1$
          + EXTENSION_POINT);
    }
    else {
      for (IExtension extension : extensionPoint.getExtensions()) {
        for (IConfigurationElement config : extension.getConfigurationElements()) {

          if (APPLICATION_DELEGATE_EXT_ELEMENT.equals(config.getName())) {
            ApplicationWizardProvider wizardProvider = new ApplicationWizardProvider(config,
                EXTENSION_POINT);
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.