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 16 public class LineToolEntry 17 extends CombinedTemplateCreationEntry 19 { 20 23 protected final CreationFactory factory; 24 25 31 public LineToolEntry(String label, String shortDesc, Object template, 32 CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge) 33 { 34 super(label, shortDesc, template, factory, iconSmall, iconLarge); 35 this.factory = factory; 36 } 37 38 41 public Tool createTool() 42 { 43 return new LineTool(factory); 44 } 45 46 } 47 | Popular Tags |