pl.edu.agh.cast.editor
Class EntityCreationToolEntry

java.lang.Object
  extended by org.eclipse.gef.palette.PaletteEntry
      extended by org.eclipse.gef.palette.ToolEntry
          extended by org.eclipse.gef.palette.CreationToolEntry
              extended by org.eclipse.gef.palette.CombinedTemplateCreationEntry
                  extended by pl.edu.agh.cast.editor.EntityCreationToolEntry

public class EntityCreationToolEntry
extends org.eclipse.gef.palette.CombinedTemplateCreationEntry

Tool entry for creating entities. Uses custom tool class, EntityCreationTool, which saves iconLarge in extendedData map in CreationRequest. Also, to enable drag and drop support, the tool has to be a subclass of TemplatePaletteEntry

Author:
awos

Field Summary
 
Fields inherited from class org.eclipse.gef.palette.CreationToolEntry
factory
 
Fields inherited from class org.eclipse.gef.palette.ToolEntry
PALETTE_TYPE_TOOL
 
Fields inherited from class org.eclipse.gef.palette.PaletteEntry
listeners, PALETTE_TYPE_UNKNOWN, PERMISSION_FULL_MODIFICATION, PERMISSION_HIDE_ONLY, PERMISSION_LIMITED_MODIFICATION, PERMISSION_NO_MODIFICATION, PROPERTY_DEFAULT, PROPERTY_DESCRIPTION, PROPERTY_LABEL, PROPERTY_LARGE_ICON, PROPERTY_PARENT, PROPERTY_SMALL_ICON, PROPERTY_TYPE, PROPERTY_VISIBLE
 
Constructor Summary
EntityCreationToolEntry(java.lang.String label, java.lang.String shortDesc, org.eclipse.gef.requests.CreationFactory factory, org.eclipse.jface.resource.ImageDescriptor iconSmall, org.eclipse.jface.resource.ImageDescriptor iconLarge)
           
 
Method Summary
 
Methods inherited from class org.eclipse.gef.palette.CombinedTemplateCreationEntry
getTemplate, setTemplate
 
Methods inherited from class org.eclipse.gef.palette.ToolEntry
createTool, getToolProperties, getToolProperty, setToolClass, setToolProperty
 
Methods inherited from class org.eclipse.gef.palette.PaletteEntry
addPropertyChangeListener, getDescription, getId, getLabel, getLargeIcon, getParent, getSmallIcon, getType, getUserModificationPermission, isVisible, removePropertyChangeListener, setDescription, setId, setLabel, setLargeIcon, setParent, setSmallIcon, setType, setUserModificationPermission, setVisible, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityCreationToolEntry

public EntityCreationToolEntry(java.lang.String label,
                               java.lang.String shortDesc,
                               org.eclipse.gef.requests.CreationFactory factory,
                               org.eclipse.jface.resource.ImageDescriptor iconSmall,
                               org.eclipse.jface.resource.ImageDescriptor iconLarge)


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.