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 public class TextToolEntry 36 extends CombinedTemplateCreationEntry 37 { 38 41 protected final CreationFactory factory; 42 43 public TextToolEntry(String label, String shortDesc, Object template, 44 CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) 45 { 46 super(label, shortDesc, template, factory, iconSmall, iconLarge); 47 this.factory = factory; 48 } 49 50 53 public Tool createTool() 54 { 55 return new TextTool(factory); 56 } 57 } 58 | Popular Tags |