private static ContributedProcessorDescriptor[] getProcessorDescriptors(String contributionId, boolean testMarkerTypes) { IConfigurationElement[] elements= Platform.getExtensionRegistry().getConfigurationElementsFor(JavaUI.ID_PLUGIN, contributionId); ArrayList<ContributedProcessorDescriptor> res= new ArrayList<>(elements.length); for (int i= 0; i < elements.length; i++) { ContributedProcessorDescriptor desc= new ContributedProcessorDescriptor(elements[i], testMarkerTypes); IStatus status= desc.checkSyntax(); if (status.isOK()) { res.add(desc); } else { JavaPlugin.log(status); } } return res.toArray(new ContributedProcessorDescriptor[res.size()]); }
private static ContributedProcessorDescriptor[] getProcessorDescriptors(String contributionId, boolean testMarkerTypes) { IConfigurationElement[] elements= Platform.getExtensionRegistry().getConfigurationElementsFor(JavaUI.ID_PLUGIN, contributionId); ArrayList<ContributedProcessorDescriptor> res= new ArrayList<>(elements.length); for (int i= 0; i < elements.length; i++) { ContributedProcessorDescriptor desc= new ContributedProcessorDescriptor(elements[i], testMarkerTypes); IStatus status= desc.checkSyntax(); if (status.isOK()) { res.add(desc); } else { JavaPlugin.log(status); } } return res.toArray(new ContributedProcessorDescriptor[res.size()]); }
private static ContributedProcessorDescriptor[] getProcessorDescriptors(String contributionId, boolean testMarkerTypes) { IConfigurationElement[] elements= Platform.getExtensionRegistry().getConfigurationElementsFor(JavaUI.ID_PLUGIN, contributionId); ArrayList res= new ArrayList(elements.length); for (int i= 0; i < elements.length; i++) { ContributedProcessorDescriptor desc= new ContributedProcessorDescriptor(elements[i], testMarkerTypes); IStatus status= desc.checkSyntax(); if (status.isOK()) { res.add(desc); } else { JavaPlugin.log(status); } } return (ContributedProcessorDescriptor[]) res.toArray(new ContributedProcessorDescriptor[res.size()]); }
private static ContributedProcessorDescriptor[] getProcessorDescriptors( String contributionId, boolean testMarkerTypes) { IConfigurationElement[] elements = Platform.getExtensionRegistry() .getConfigurationElementsFor(JavaUI.ID_PLUGIN, contributionId); ArrayList res = new ArrayList(elements.length); for (int i = 0; i < elements.length; i++) { // AspectJ Change Begin // skip jdt's processor, as we have registered our own if (!elements[i] .getAttribute("class") //$NON-NLS-1$ .equals( "org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor")) { //$NON-NLS-1$ ContributedProcessorDescriptor desc = new ContributedProcessorDescriptor( elements[i], testMarkerTypes); IStatus status = desc.checkSyntax(); if (status.isOK()) { res.add(desc); } else { JavaPlugin.log(status); } } // AspectJ Change End } return (ContributedProcessorDescriptor[]) res .toArray(new ContributedProcessorDescriptor[res.size()]); }