| Summary: | Feedback for creating connections incorrect when zoom is not 100% | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Marcel Romijn <mromijn> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
Marcel Romijn
Well, "Add the zoom functionality to the shapes example" is quite an ambiguous step to reproduce... Could you please attach a patch that contains your modifications to the shapes example so we can rule out that ambiguity? The Logic example also provides a means to use the ShortestPathConnectionRouter (you can specify a property when selecting the canvas). I tried it out there and could not observe any faulty behavior when zooming. Could you please confirm or decline whether your issue is reproducible there? Created attachment 186907 [details]
Modified ShapesEditor.java to demonstrate problem.
Created attachment 186908 [details]
Modified ShapesEditorActionBarContributor.java to demonstrate problem.
Created attachment 186909 [details]
Image showing correct routing with 100% zoom.
Created attachment 186910 [details]
Image showing incorrect routing with 75% zoom.
Thanks for looking into this.
Sorry for the ambiguous step.
I just redid my steps with Eclipse 3.6.1 and GEF 3.6.1.
I attached a modified version of "ShapesEditor.java" and "ShapesEditorActionBarContributor.java". These add the zoom control in the toolbar of the shapes example.
The problem still occurs with this version of GEF. See the attached images for 75% zoom ("75 percent.png") and 100% zoom ("100 percent.png").
I also tried to do the same with the Logic example with the Connection Router set to Shortest Path, but indeed the problem does not occur there.
Coud you please create a patch for the Shapes project (right-click on the project, then Team->Create Patch) and add it as an attachment? That would make it easier for me to review the changes you have made? Marcel, I figured out that you ran into a similar problem than the one being described in bug #66590 for the logic example. In order to have the feedback drawn correctly, you will have to ensure that the GraphicalNodeEditPolicy adds it to the scaled feedback layer. Created attachment 186939 [details]
Patch comprising changes to ShapesEditor and ShapesEditorActionBarContributor as well as a fix for ShapesEditPart
I attached a patch that comprises the changes to ShapesEditor and ShapesEditorActionBarContributor, and additionally demonstrates the fix for the GraphicalNodeEditPolicy.
Hi Alexander, I installed the GEF examples instead of pulling them from CVS. That's why I didn't make a patch. But lesson learned...! I provided the same fix to the subclass of GraphicalNodeEditPolicy in our product and indeed, the feedback is now correct with scalings other than 100%. Thanks for locating the problem. Glad it is a problem of our implementation and not a problem in GEF :-) Fine. Resolving this as invalid then. |