diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/wizard/NewJavaClassPage.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/wizard/NewJavaClassPage.java | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/wizard/NewJavaClassPage.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/wizard/NewJavaClassPage.java deleted file mode 100644 index 4cc972cb3..000000000 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig.ui/src/org/eclipse/jst/jsf/facesconfig/ui/wizard/NewJavaClassPage.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 Sybase, Inc. and others. - * - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Sybase, Inc. - initial API and implementation - *******************************************************************************/ - -package org.eclipse.jst.jsf.facesconfig.ui.wizard; - -import java.util.ArrayList; -import java.util.List; - -import org.eclipse.core.resources.IProject; -import org.eclipse.jdt.core.IJavaProject; -import org.eclipse.jdt.core.JavaCore; -import org.eclipse.jface.viewers.StructuredSelection; -import org.eclipse.jface.wizard.IWizardPage; - -/** - * Wizard page to create a new class. - * - * @author Xiao-guang Zhang - * - */ -public class NewJavaClassPage extends org.eclipse.jdt.ui.wizards.NewClassWizardPage - implements ISummaryDataSource { - - private final IProject currentProject; - - /** - * @param project - */ - public NewJavaClassPage(IProject project) { - super(); - currentProject = project; - setPageComplete(false); - } - - private void initialize() { - if (getPackageFragmentRoot() == null - || currentProject != getPackageFragmentRoot().getJavaProject() - .getProject()) { - IJavaProject jProject = JavaCore.create(currentProject); - StructuredSelection selection = new StructuredSelection(jProject); - init(selection); - } - } - - private boolean isSkipped() { - if ((getPreviousPage() instanceof ManagedBeanClassSelectionPage) - && !((ManagedBeanClassSelectionPage) getPreviousPage()).isCreateNewJavaClass()) - return true; - return false; - } - - public List getSummaryData() { - List data = new ArrayList(); - - if (!isSkipped()) { - data - .add(new String[] { - WizardMessages.NewJavaManagedBeanWizard_Summary_SourceFolder, - getPackageFragmentRootText(), }); - - data - .add(new String[] { - WizardMessages.NewJavaManagedBeanWizard_Summary_PackageName, - getPackageText(), }); - - data - .add(new String[] { - WizardMessages.NewJavaManagedBeanWizard_Summary_TypeName, - getTypeName() }); - } - return data; - } - - /* - * (non-Javadoc) - * - * @see org.eclipse.jface.wizard.IWizardPage#setPreviousPage(org.eclipse.jface.wizard.IWizardPage) - */ - public void setPreviousPage(IWizardPage page) { - super.setPreviousPage(page); - initialize(); - } -} |