| /******************************************************************************* |
| * Copyright (c) 2011, 2013 Oracle. All rights reserved. |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0, which accompanies this distribution |
| * and is available at https://www.eclipse.org/legal/epl-2.0/. |
| * |
| * Contributors: |
| * Oracle - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.jpt.dbws.eclipselink.ui.internal.wizards.gen; |
| |
| import org.eclipse.core.resources.IProject; |
| import org.eclipse.jdt.core.IJavaProject; |
| import org.eclipse.jpt.common.ui.internal.wizards.JavaProjectWizardPage; |
| import org.eclipse.jpt.common.utility.internal.iterable.IterableTools; |
| import org.eclipse.jpt.dbws.eclipselink.ui.internal.DbwsGeneratorUi; |
| |
| /** |
| * WebDynamicProjectWizardPage |
| */ |
| public class WebDynamicProjectWizardPage extends JavaProjectWizardPage { |
| |
| public WebDynamicProjectWizardPage(IJavaProject javaProject) { |
| super(javaProject); |
| } |
| |
| @Override |
| protected Iterable<IProject> getJavaProjects() { |
| return IterableTools.filter(this.getProjects(), DbwsGeneratorUi.PROJECT_HAS_WEB_FACET); |
| } |
| } |