private void init() { IExtensionRegistry registry= Platform.getExtensionRegistry(); IConfigurationElement[] ces= registry.getConfigurationElementsFor(fPluginId, fParticipantID); fParticipants= new ArrayList<>(ces.length); for (int i= 0; i < ces.length; i++) { ParticipantDescriptor descriptor= new ParticipantDescriptor(ces[i]); IStatus status= descriptor.checkSyntax(); switch (status.getSeverity()) { case IStatus.ERROR: RefactoringCorePlugin.log(status); break; case IStatus.WARNING: case IStatus.INFO: RefactoringCorePlugin.log(status); fParticipants.add(descriptor); break; default: fParticipants.add(descriptor); } } }
private void init() { IExtensionRegistry registry= Platform.getExtensionRegistry(); IConfigurationElement[] ces= registry.getConfigurationElementsFor(fPluginId, fParticipantID); fParticipants= new ArrayList<>(ces.length); for (int i= 0; i < ces.length; i++) { ParticipantDescriptor descriptor= new ParticipantDescriptor(ces[i]); IStatus status= descriptor.checkSyntax(); switch (status.getSeverity()) { case IStatus.ERROR: RefactoringCorePlugin.log(status); break; case IStatus.WARNING: case IStatus.INFO: RefactoringCorePlugin.log(status); fParticipants.add(descriptor); break; default: fParticipants.add(descriptor); } } }
private void init() { IExtensionRegistry registry= Platform.getExtensionRegistry(); IConfigurationElement[] ces= registry.getConfigurationElementsFor( RefactoringCorePlugin.getPluginId(), fParticipantID); fParticipants= new ArrayList(ces.length); for (int i= 0; i < ces.length; i++) { ParticipantDescriptor descriptor= new ParticipantDescriptor(ces[i]); IStatus status= descriptor.checkSyntax(); switch (status.getSeverity()) { case IStatus.ERROR: RefactoringCorePlugin.log(status); break; case IStatus.WARNING: case IStatus.INFO: RefactoringCorePlugin.log(status); // fall through default: fParticipants.add(descriptor); } } }