Community
Participate
Working Groups
The selection tools (and subtypes) don't draw a marquee correctly. The marquee uses white and transparent so on a white background you cannot see the bounds of the drag rectangle. This is evident on the Shapes sample. The correct behaviour would be some sort XOR type drawing, so no matter the color in the background, the selection rectangle would be visible.
We are using XOR, the problem is that Mac OS X doesn't support it.
You may want to look at carbon sketch and implement the specific selection drawing as necessary for the platform. They implement 'marching ants' in that application. <http://developer.apple.com/documentation/Carbon/Conceptual/QuickDrawToQuartz2D/tq_regions/chapter_8_section_3.html> If the marching ants is not the correct ui guideline, then color the rectangle, or anything to indicate the bounds of the drag.
Changing OS from Mac OS to Mac OS X as per bug 185991
Is this something that will get fixed with the cocoa port?
Bryan, I don't think XOR will be supported in the Cocoa port. The best thing we can do is just check for OS X, and paint the marquee differently. This is not hard nor would it be the first place we have platform-specific code in GEF. The only reason it hasn't been done yet is that no one has taken the time to define what the native finder marquee behavior is, and whether that would be sufficient. It appears to just be a rectangle blended using the platform selection color with a more opaque outline (maybe some shadow or highlight effect?). We can do this, but what happens when the diagram behind the marquee happens to be that color already? The rectangle would be invisible? I have an idea of what Finder does, but it works well because the content is known/limited. What do other programs do on the Mac? OmniGraffle? PhotoShop? PowerPoint? Some mockups or screen captures would help move this enhancement along.
Randy, will you be at EclipseCon? Would like to talk about this bug if you have time.
Hi Brian, Randy will not be at EclipseCon, but I will be (I am the GEF Project Lead). You can track me down and we can talk about this bug. Incidentally, check out my latest blog: http://ahuntereclipse.blogspot.com/2009/03/eclipsecon-show-me-your-mac.html . Any help you could provide in this area would be awesome.
Thanks Anthony ... I'll find you. BTW, I've been playing with Ecore Tools on 3.5M6 Cocoa and it's working nicely.
Verified that with Eclipse 3.6.1 XOR painting works fine on Mac Carbon (10.4.11, Java 5). Resolving as fixed in 3.6.1 though.
I think the correct resolution is "WORKS FOR ME"?
Here you are...