Community
Participate
Working Groups
Build Identifier: 20110916-0149 Trying to modify Selection Info for Shape LineStyle to solid results always in a dashed line. Reproducible: Always Steps to Reproduce: 1.Override getSelectionInfoForShape in ToolBehaviorProvider. 2.Set LineStyle to SOLID. 3.
Added to queue
Marked for Kepler
I've been looking into this, and I have a couple questions regarding the scope of the bug. Only linestyle is pointed, but there are other attributes that aren't used, and I'm not totally sure they should: * Color: used when selecting connections, but not when selecting shapes. Should be used for the color of the selection surrounding handler? * HandleForegroundColor: Not used. At all. It should be used for the color or the resizing handlers, shouldn't it? * HandleBackgroundColor: The same, but with the background (filling color) of those handlers Besides that, resizing handlers use different colors for primary and secondary selections. Should there be two new colors, HandleForegroundSecondaryColor, and HandleBackgroundSecondaryColor? Otherwise, there would be no way to tell primary from secondary selected shapes. What do you think?
Pushed fix for review to Gerrit: https://git.eclipse.org/r/#/c/8097/1 The fix covers only the line style. @Felix: Sorry, I saw too late that you have assigned the bug to you. You are right. There are many methods of ISelectionInfo unused. We should use it, if it makes sense, otherwise we should remove them from the interface. To the handle color: Yes, I think we need new methods: getHandlePrimarySelectionForegroundColor getHandlePrimarySelectionBackgroundColor getHandleSecondarySelectionForegroundColor getHandleSecondarySelectionBackgroundColor and also the set methods.
I've also created a new bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=391523 which covers the other mentioned problems with the selection info.