/** {@inheritDoc} */ @Override public void selectPreference(PreferencePagePresenter preference) { list.selectElement(preference); }
/** {@inheritDoc} */ @Override public void selectImporter(ProjectImporterDescriptor importer) { list.selectElement(importer); }
@Override public void selectPage(ClasspathPagePresenter property) { list.selectElement(property); }
@Override public void selectNextItem() { final DebugConfiguration nextItem; final List<DebugConfiguration> configurations = categories.get(selectedConfiguration.getType()); int selectPosition = configurations.indexOf(selectedConfiguration); if (configurations.size() < 2 || selectPosition == -1) { nextItem = null; } else { if (selectPosition > 0) { selectPosition--; } else { selectPosition++; } nextItem = configurations.get(selectPosition); } list.selectElement(nextItem); selectedConfiguration = nextItem; }
@Override public void selectProjectType(final String projectTypeId) { ProjectTypeDto typeDescriptor = null; for (Map.Entry<String, Set<ProjectTypeDto>> entry : typesByCategory.entrySet()) { for (ProjectTypeDto typeDefinition : entry.getValue()) { if (typeDefinition.getId().equals(projectTypeId)) { typeDescriptor = typeDefinition; break; } } if (typeDescriptor != null) { break; } } if (typeDescriptor != null) { for (ProjectTypeDto existingProjectTypeDescriptor : availableProjectTypes) { if (existingProjectTypeDescriptor.getId().equals(typeDescriptor.getId())) { categoriesList.selectElement(typeDescriptor); selectNextWizardType(typeDescriptor); } } } projectName.setFocus(true); }
list.render(categoriesList, true); if (selectedConfiguration != null) { list.selectElement(selectedConfiguration); if (filterTextValue.isEmpty()) { selectText(configurationName.getElement());