/** * Returns the child collection element for the given id */ private IWizardCategory getChildWithID(IWizardCategory parent, String id) { IWizardCategory[] children = parent.getCategories(); for (IWizardCategory currentChild : children) { if (currentChild.getId().equals(id)) { return currentChild; } } return null; }
/** * Returns the child collection element for the given id */ private IWizardCategory getChildWithID( IWizardCategory parent, String id) { for (IWizardCategory wizardCategory : parent.getCategories()) { if (wizardCategory.getId().equals(id)) { return wizardCategory; } } return null; }