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 EllipseToolEntry 37 extends CombinedTemplateCreationEntry 38 { 39 42 protected final CreationFactory factory; 43 44 50 public EllipseToolEntry(String label, String shortDesc, Object template, 51 CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) 52 { 53 super(label, shortDesc, template, factory, iconSmall, iconLarge); 54 this.factory = factory; 55 } 56 57 60 public Tool createTool() 61 { 62 return new EllipseTool(factory); 63 } 64 } 65 | Popular Tags |