01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 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.jface.tests.performance;
11:
12: /**
13: * The TestElement is the element used for testing
14: * viewers.
15: *
16: */
17: public class TestElement {
18:
19: String name;
20:
21: /**
22: * Create a new instance of the receiver.
23: *
24: */
25: public TestElement() {
26: super ();
27: }
28:
29: /**
30: * Create a new instance of the receiver.
31: *
32: * @param index
33: */
34: public TestElement(int index) {
35: name = TestTreeElement.generateFirstEntry()
36: + String.valueOf(index);
37: }
38:
39: public String getText() {
40: return name;
41: }
42: }
|