| Summary: | [Tool] MarqueeToolEntry has hard coded icons | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Anthony Hunter <ahunter.eclipse> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | jakub.jurkiewicz, nyssen |
| Version: | 3.3 | ||
| Target Milestone: | 3.7.1 (Indigo) M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Anthony Hunter
Is it really necessary to make any changes to the constructors of MarqueeToolEntry class? There are methods MarqueeToolEntry#setSmallIcon(ImageDescriptor icon) and MarqueeToolEntry#setLargeIcon(ImageDescriptor icon) (as MarqueeToolEntry extends PaletteEntry) and these methods can be used to set the icons. Changed MarqeeSelectionEntry to provide an icon (indicating the behavior mode) in case no icon was explicitly set (MarqueeToolEntry overwrites getLargeIcon() and getSmallIcon() to return an appropriate icon in case the super implementation does not provide one). Changed the constructor to not set any icon by default. Changed SharedImages to provide ImageDescriptors for new marquee icons. Changed MarqueeSelectionTool to expose a DEFAULT_MARQUEE_BEHAVIOR constant, which may be used to determine the default behavior (rather than hard-referencing BEHAVIOR_NODES_CONTAINED). (In reply to comment #2) > Changed MarqeeSelectionEntry to provide an icon (indicating the behavior mode) > in case no icon was explicitly set (MarqueeToolEntry overwrites getLargeIcon() > and getSmallIcon() to return an appropriate icon in case the super > implementation does not provide one). Changed the constructor to not set any > icon by default. > > Changed SharedImages to provide ImageDescriptors for new marquee icons. > > Changed MarqueeSelectionTool to expose a DEFAULT_MARQUEE_BEHAVIOR constant, > which may be used to determine the default behavior (rather than > hard-referencing BEHAVIOR_NODES_CONTAINED). All changes committed to cvs HEAD (3.7). |