Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 35275 Details for
Bug 129257
[GraphLayout] Edges with virtual nodes not properly handled during graph layout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
InvertEdges.java
InvertEdges.java (text/plain), 1.36 KB, created by
Jennifer Cormier
on 2006-02-23 18:43:58 EST
(
hide
)
Description:
InvertEdges.java
Filename:
MIME Type:
Creator:
Jennifer Cormier
Created:
2006-02-23 18:43:58 EST
Size:
1.36 KB
patch
obsolete
>/******************************************************************************* > * Copyright (c) 2003, 2005 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at > * http://www.eclipse.org/legal/epl-v10.html > * > * Contributors: > * IBM Corporation - initial API and implementation > *******************************************************************************/ >package org.eclipse.draw2d.internal.graph; > >import org.eclipse.draw2d.graph.DirectedGraph; >import org.eclipse.draw2d.graph.Edge; > >/** > * Inverts any edges which are marked as backwards or "feedback" edges. > * > * @author Daniel Lee > * @since 2.1.2 > */ >public class InvertEdges extends GraphVisitor { > >/** > * > * @see GraphVisitor#visit(org.eclipse.draw2d.graph.DirectedGraph) > */ >public void visit(DirectedGraph g) { > for (int i = 0; i < g.edges.size(); i++) { > Edge e = g.edges.getEdge(i); > if ( e.isFeedback && !( e.source instanceof VirtualNode ) > && ! ( e.target instanceof VirtualNode ) ) { > > e.invert(); > e.isFeedback = false; > } > // Bug fix: > // Don't invert edges with VirtualNodes because it is not done properly. > // Do that at the end in BreakCycles.revisit() instead. > } >} > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 129257
:
35274
| 35275