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.AbstractTabDescriptor;
13:
14: /**
15: * A tab descriptor for the text test view.
16: *
17: * @author Anthony Hunter
18: */
19: public class TextTestsTabDescriptor extends AbstractTabDescriptor {
20:
21: private String word;
22:
23: public TextTestsTabDescriptor(String aWord) {
24: super ();
25: this .word = aWord;
26: getSectionDescriptors().add(
27: new TextTestsSectionDescriptor(aWord));
28: }
29:
30: public String getCategory() {
31: return "default"; //$NON-NLS-1$
32: }
33:
34: public String getId() {
35: return word;
36: }
37:
38: public String getLabel() {
39: return word;
40: }
41: }
|