1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Mathieu Denis <mathieu.denis@polymtl.ca> - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.viewers
;
15 import org
.eclipse
.linuxtools
.tmf
.core
.component
.TmfComponent
;
16 import org
.eclipse
.swt
.widgets
.Composite
;
19 * Abstract class that extends {@link TmfComponent} to be specific to viewers.
21 * It allows the access to the control and the parent of a viewer.
23 * @author Mathieu Denis
27 public abstract class TmfViewer
extends TmfComponent
implements ITmfViewer
{
30 * The parent composite that holds the viewer
32 protected Composite fParent
;
35 * Default constructor. The viewer have to be initialize through the
36 * {@link TmfViewer#init(Composite, String)} function later on.
43 * Constructor that initializes the parent of the viewer
46 * The parent composite that holds this viewer
48 * @see TmfComponent#TmfComponent(String)
50 public TmfViewer(Composite parent
) {
51 this(parent
, ""); //$NON-NLS-1$
55 * Constructor that initializes the parent of the viewer and that sets the
59 * The parent composite that holds this viewer
61 * The name of the viewer
63 public TmfViewer(Composite parent
, String name
) {
68 * Performs initialization of the viewer. It initializes the component. Need
69 * to be called when the default constructor is used.
72 * The parent composite of the viewer
74 * The name to give to this viewer
75 * @see TmfComponent#init(String)
77 public void init(Composite parent
, String name
) {
83 * @return the parent of this viewer
85 public Composite
getParent() {
This page took 0.030958 seconds and 5 git commands to generate.