| /*************************************************************************************************** |
| * 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 |
| * https://www.eclipse.org/legal/epl-2.0/ |
| |
| * |
| * Contributors: IBM Corporation - initial API and implementation |
| **************************************************************************************************/ |
| package org.eclipse.wst.common.tests.ui.wizard; |
| |
| import java.util.HashSet; |
| import java.util.Set; |
| import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelProvider; |
| import org.eclipse.wst.common.frameworks.datamodel.IDataModelOperation; |
| |
| public class TestDataModelProvider extends AbstractDataModelProvider { |
| public String getID() { |
| return "TestWizardID"; //$NON-NLS-1$ |
| } |
| |
| public Set getPropertyNames() { |
| HashSet result = new HashSet(); |
| |
| result.add("prop1"); //$NON-NLS-1$ |
| result.add("prop2"); //$NON-NLS-1$ |
| |
| return result; |
| } |
| |
| public IDataModelOperation getDefaultOperation() { |
| return new TestOperation(); |
| } |
| } |