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 org.eclipse.jface.viewers.IFilter;
13: import org.eclipse.ui.tests.views.properties.tabbed.dynamic.filters.DynamicTestsGreenSectionFilter;
14: import org.eclipse.ui.tests.views.properties.tabbed.dynamic.sections.DynamicTestsGreenSection;
15: import org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor;
16: import org.eclipse.ui.views.properties.tabbed.ISection;
17: import org.eclipse.ui.views.properties.tabbed.ITypeMapper;
18:
19: /**
20: * A section descriptor for the dynamic tests view.
21: *
22: * @author Anthony Hunter
23: */
24: public class DynamicTestsGreenSectionDescriptor extends
25: AbstractSectionDescriptor {
26:
27: /**
28: * Constructor for DynamicTestsGreenSectionDescriptor.
29: *
30: * @param typeMapper
31: * the optional type mapper for the section.
32: */
33: public DynamicTestsGreenSectionDescriptor(ITypeMapper typeMapper) {
34: super (typeMapper);
35: }
36:
37: public IFilter getFilter() {
38: return new DynamicTestsGreenSectionFilter();
39: }
40:
41: public String getId() {
42: return "DynamicTestsGreenSection"; //$NON-NLS-1$
43: }
44:
45: public ISection getSectionClass() {
46: return new DynamicTestsGreenSection();
47: }
48:
49: public String getTargetTab() {
50: return "ColorTab"; //$NON-NLS-1$
51: }
52:
53: }
|