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.text;
11:
12: import org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor;
13: import org.eclipse.ui.views.properties.tabbed.ISection;
14:
15: /**
16: * A section descriptor for the text test view.
17: *
18: * @author Anthony Hunter
19: */
20: public class TextTestsSectionDescriptor extends
21: AbstractSectionDescriptor {
22:
23: private String word;
24:
25: public TextTestsSectionDescriptor(String aWord) {
26: super (null);
27: this .word = aWord;
28: }
29:
30: public String getId() {
31: return word;
32: }
33:
34: public ISection getSectionClass() {
35: return new TextTestsLabelSection(word);
36: }
37:
38: public String getTargetTab() {
39: return word;
40: }
41:
42: }
|