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.views.properties.tabbed.AbstractSectionDescriptor;
17: import org.eclipse.ui.views.properties.tabbed.AdvancedPropertySection;
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 DynamicTestsAdvancedSectionDescriptor extends
27: AbstractSectionDescriptor {
28:
29: /**
30: * Constructor for DynamicTestsAdvancedSectionDescriptor.
31: *
32: * @param typeMapper
33: * the optional type mapper for the section.
34: */
35: public DynamicTestsAdvancedSectionDescriptor(ITypeMapper typeMapper) {
36: super (typeMapper);
37: }
38:
39: public int getEnablesFor() {
40: return 1;
41: }
42:
43: public String getId() {
44: return "AdvancedSection"; //$NON-NLS-1$
45: }
46:
47: public List getInputTypes() {
48: List list = new ArrayList();
49: list.add(DynamicTestsElement.class.getName());
50: return list;
51: }
52:
53: public ISection getSectionClass() {
54: return new AdvancedPropertySection();
55: }
56:
57: public String getTargetTab() {
58: return "AdvancedTab"; //$NON-NLS-1$
59: }
60:
61: }
|