1 8 package com.nightlabs.editor2d.tools; 9 10 import org.eclipse.gef.Tool; 11 import org.eclipse.gef.palette.CombinedTemplateCreationEntry; 12 import org.eclipse.gef.requests.CreationFactory; 13 import org.eclipse.jface.resource.ImageDescriptor; 14 15 public class TextToolEntry 16 extends CombinedTemplateCreationEntry 17 { 18 21 protected final CreationFactory factory; 22 23 public TextToolEntry(String label, String shortDesc, Object template, 24 CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) 25 { 26 super(label, shortDesc, template, factory, iconSmall, iconLarge); 27 this.factory = factory; 28 } 29 30 33 public Tool createTool() 34 { 35 return new TextTool(factory); 36 } 37 } 38 | Popular Tags |