KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > editor2d > edit > tree > LineTreeEditPart


1 /**
2  * <p> Project: com.nightlabs.editor2d </p>
3  * <p> Copyright: Copyright (c) 2004 </p>
4  * <p> Company: NightLabs GmbH (Germany) </p>
5  * <p> Creation Date: 22.12.2004 </p>
6  * <p> Author: Daniel Mazurek </p>
7 **/

8 package com.nightlabs.editor2d.edit.tree;
9
10 import org.eclipse.jface.resource.ImageDescriptor;
11 import org.eclipse.swt.graphics.Image;
12
13 import com.nightlabs.editor2d.DrawComponent;
14 import com.nightlabs.editor2d.EditorPlugin;
15
16
17 public class LineTreeEditPart
18 extends DrawComponentTreeEditPart
19 {
20   public static Image LINE_ICON = ImageDescriptor.createFromFile(EditorPlugin.class, "icons/line16.gif").createImage();
21   
22   /**
23    * @param drawComponent
24    */

25   public LineTreeEditPart(DrawComponent drawComponent) {
26     super(drawComponent);
27
28   }
29
30   /* (non-Javadoc)
31    * @see org.eclipse.gef.editparts.AbstractTreeEditPart#getImage()
32    */

33   protected Image getImage() {
34     return LINE_ICON;
35   }
36
37 }
38
Popular Tags