Class CombinedTemplateCreationEntry


public class CombinedTemplateCreationEntry extends CreationToolEntry
A combination of a PaletteTemplateEntry and ToolEntry. The entry will be rendered as a ToolEntry, but it will also be possible to use the entry as a DragSource in the same way as a template.
  • Constructor Details

    • CombinedTemplateCreationEntry

      public CombinedTemplateCreationEntry(String label, String shortDesc, Object template, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)
      Constructs an entry with the given creation factory and template. The creation factory is used by the creation tool when the entry is selected. The template is used with the TemplateTransferDragSourceListener.
      Parameters:
      label - the label
      shortDesc - the descriptoin
      template - the template object
      factory - the CreationFactory
      iconSmall - the small icon
      iconLarge - the large icon
      Since:
      3.2
    • CombinedTemplateCreationEntry

      public CombinedTemplateCreationEntry(String label, String shortDesc, CreationFactory factory, ImageDescriptor iconSmall, ImageDescriptor iconLarge)
      Constructs an entry with the given creation factory. The creation factory is also used as the template object.
      Parameters:
      label - the label
      shortDesc - the description
      factory - the creation factory and template
      iconSmall - the small icon
      iconLarge - the large icon
      Since:
      3.2
  • Method Details

    • getTemplate

      public Object getTemplate()
      Returns the template object.
      Returns:
      Object the template
    • setTemplate

      public void setTemplate(Object template)
      Sets the template.
      Parameters:
      template - The template