Community
Participate
Working Groups
Created attachment 135523 [details] An example of the bug Build ID: M20080221-1800 Steps To Reproduce: 1.Create a new Logic Diagram (GMF Examples) 2.Create a "Logic Flow" in this diagram 3.Create a "Or Gate" in this Logic flow 4.Create a "And Gate" in this Logic flow (at the right of Or Gate) 5.Create a "Xor Gate" in this Logic flow (at the right of And Gate) 6.Drag and drop the "Or Gate" between "And Gate" and "Xor Gate". Result : The "Or Gate" is not moved and a "Feedback line" still visible (even if you select another objet). More information: Sometimes, after the move of a child, the feedback line, which indicates the future position of the child during the movement, remains visible.
Problem was that org.eclipse.gef.LayouEditPolicy does not erase layout target feedback for GMF RequestConstants.REQ_DROP; To correct I added GMF LayoutEditPolicy and FlowEditPolicy classes and modify GMF XYLayoutEditPolicy and ConstrainedToolbarLayouEditPolicy to override org.eclipse.gef.LayouEditPolicy#eraseTargetFeedback. Then I modify all parts which instantiate or extend GEF FlowLayoutEditPolicy to instantiate or extends the GMF one. I did it for instance for org.eclipse.gmf.examples.runtime.diagram.logic.internal.editpolicies.LogicFlowEditPolicy. For GMF runtime previous versions a workaround is to override manually the method in your layout policies : /* * Override to erase in case of GMF drop request, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=276033 * (non-Javadoc) * @see org.eclipse.gef.editpolicies.LayoutEditPolicy#eraseTargetFeedback(org.eclipse.gef.Request) */ @Override public void eraseTargetFeedback(Request request) { super.eraseTargetFeedback(request); if (RequestConstants.REQ_DROP.equals(request.getType())) eraseLayoutTargetFeedback(request); } Kudos to Aurelien who have found the cause of the problem.
opened a bug to modify generation templates : bug 300374
[target cleanup] 2.3 M5 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime Diagram was the original product and component for this bug