| 1 27 28 package org.nightlabs.editor2d.tools; 29 30 import org.eclipse.gef.Tool; 31 import org.eclipse.gef.palette.CombinedTemplateCreationEntry; 32 import org.eclipse.gef.requests.CreationFactory; 33 import org.eclipse.jface.resource.ImageDescriptor; 34 35 36 public class LineToolEntry 37 extends CombinedTemplateCreationEntry 39 { 40 43 protected final CreationFactory factory; 44 45 51 public LineToolEntry(String label, String shortDesc, Object template, 52 CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) 53 { 54 super(label, shortDesc, template, factory, iconSmall, iconLarge); 55 this.factory = factory; 56 } 57 58 61 public Tool createTool() 62 { 63 return new LineTool(factory); 64 } 65 66 } 67 | Popular Tags |