01: /*******************************************************************************
02: * Copyright (c) 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.tests.views.properties.tabbed.dynamic.section.descriptors;
11:
12: import java.util.ArrayList;
13: import java.util.List;
14:
15: import org.eclipse.ui.tests.views.properties.tabbed.dynamic.model.DynamicTestsElement;
16: import org.eclipse.ui.tests.views.properties.tabbed.dynamic.sections.DynamicTestsElementSection;
17: import org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor;
18: import org.eclipse.ui.views.properties.tabbed.ISection;
19: import org.eclipse.ui.views.properties.tabbed.ITypeMapper;
20:
21: /**
22: * A section descriptor for the dynamic tests view.
23: *
24: * @author Anthony Hunter
25: */
26: public class DynamicTestsElementSectionDescriptor extends
27: AbstractSectionDescriptor {
28:
29: /**
30: * Constructor for DynamicTestsElementSectionDescriptor.
31: *
32: * @param typeMapper
33: * the optional type mapper for the section.
34: */
35: public DynamicTestsElementSectionDescriptor(ITypeMapper typeMapper) {
36: super (typeMapper);
37: }
38:
39: public String getId() {
40: return "DynamicTestsElementSection"; //$NON-NLS-1$
41: }
42:
43: public List getInputTypes() {
44: List list = new ArrayList();
45: list.add(DynamicTestsElement.class.getName());
46: return list;
47: }
48:
49: public ISection getSectionClass() {
50: return new DynamicTestsElementSection();
51: }
52:
53: public String getTargetTab() {
54: return "ElementTab"; //$NON-NLS-1$
55: }
56:
57: }
|