diff options
Diffstat (limited to 'plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelWizardFactory.java')
-rw-r--r-- | plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelWizardFactory.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelWizardFactory.java b/plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelWizardFactory.java deleted file mode 100644 index eec76f64d..000000000 --- a/plugins/org.eclipse.wst.common.frameworks.ui/wtp_ui/org/eclipse/wst/common/frameworks/internal/datamodel/ui/DataModelWizardFactory.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2003, 2005 IBM Corporation 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: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.wst.common.frameworks.internal.datamodel.ui; - -import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory; -import org.eclipse.wst.common.frameworks.datamodel.IDataModel; -import org.eclipse.wst.common.frameworks.internal.operation.extensionui.DataModelWizardExtensionReader; - -public class DataModelWizardFactory { - - private static DataModelWizardExtensionReader reader; - - /** - * Looks up the appropriate DataModelWizard by the specified id and - * constructs a new DataModelWizard using a new instance of the IDataModel - * looked up with the same id. If the DataModelWizard is not found then a - * RuntimeException is thrown. - * - * @param id - * the id of the DataModelWizard - * @return a new DataModelWizard - */ - public static DataModelWizard createWizard(String id) { - return createWizard(DataModelFactory.createDataModel(id)); - } - - /** - * Looks up the appropriate DataModelWizard using the id retured from - * <code>dataModel.getID()</code>. - * - * @param dataModel - * @return a new DataModelWizard - */ - public static DataModelWizard createWizard(IDataModel dataModel) { - return loadWizard(dataModel); - } - - private static DataModelWizard loadWizard(IDataModel dataModel) { - if (null == reader) { - reader = new DataModelWizardExtensionReader(); - } - return reader.getWizard(dataModel); - } - - /** - * Looks up the appropriate DataModelWizard using the name of the specified - * class as the id. This method is equavalent to - * <code>createWizard(classID.getName())</code>. - * - * @param classID - * the class whose name is the id of the DataModelWizard - * @return a new DataModelWizard - */ - public static DataModelWizard createWizard(Class dataModelProviderID) { - return createWizard(dataModelProviderID.getName()); - } -} |