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.views;
11:
12: import org.eclipse.jface.viewers.TreeNode;
13: import org.eclipse.ui.tests.views.properties.tabbed.dynamic.model.DynamicTestsElement;
14: import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
15:
16: /**
17: * A nodes in the tree of the dynamic tests view.
18: *
19: * @author Anthony Hunter
20: * @since 3.4
21: */
22: public class DynamicTestsTreeNode extends TreeNode implements
23: ITabbedPropertySheetPageContributor {
24:
25: public DynamicTestsTreeNode(Object object) {
26: super (object);
27: }
28:
29: /*
30: * (non-Javadoc)
31: *
32: * @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor#getContributorId()
33: */
34: public String getContributorId() {
35: return getDynamicTestsElement().getContributorId();
36: }
37:
38: public DynamicTestsElement getDynamicTestsElement() {
39: return (DynamicTestsElement) getValue();
40: }
41: }
|