1 /*
2 * Created on Jan 19, 2004
3 *
4 * Copyright (C) 2004 Sean Ruff
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 package org.un4gvn.editorviewer.internal.element;
22
23 import org.eclipse.swt.graphics.Image;
24
25 /***
26 * Root Level IViewerElement which will contain all other
27 * IViewerElement, of which only one should be created.
28 * <p>
29 * @author Sean Ruff
30 */
31
32 public class RootElement extends AbstractViewerElement {
33
34 /***
35 * Constructor
36 * @param parent
37 * @param id
38 */
39 public RootElement(IViewerElement parent, String id){
40 super(parent,id);
41 }
42
43 /***
44 * @see org.un4gvn.editorviewer.internal.element.IViewerElement#getLabel()
45 */
46 public String getLabel(){ return (String)getId(); }
47
48 /***
49 * @see org.un4gvn.editorviewer.internal.element.IViewerElement#getImage()
50 */
51 public Image getImage(){ return null; }
52
53 /***
54 * @see org.un4gvn.editorviewer.internal.element.IViewerElement#isLeaf()
55 */
56 public boolean isLeaf(){ return false; }
57
58 }
This page was automatically generated by Maven