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 120409 Details for
Bug 258752
DirectedGraphLayoutAlgorithm disabled some DirectedGraphLayout functionality
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Remove ExtendedDirectedGraphLayout
removeExtendedDirectedGraphLayout.txt (text/plain), 2.29 KB, created by
Richard Miskin
on 2008-12-14 08:49:18 EST
(
hide
)
Description:
Remove ExtendedDirectedGraphLayout
Filename:
MIME Type:
Creator:
Richard Miskin
Created:
2008-12-14 08:49:18 EST
Size:
2.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.zest.layouts >Index: src/org/eclipse/zest/layouts/algorithms/DirectedGraphLayoutAlgorithm.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.zest.layouts/src/org/eclipse/zest/layouts/algorithms/DirectedGraphLayoutAlgorithm.java,v >retrieving revision 1.4 >diff -u -r1.4 DirectedGraphLayoutAlgorithm.java >--- src/org/eclipse/zest/layouts/algorithms/DirectedGraphLayoutAlgorithm.java 12 Sep 2007 20:44:37 -0000 1.4 >+++ src/org/eclipse/zest/layouts/algorithms/DirectedGraphLayoutAlgorithm.java 14 Dec 2008 13:46:24 -0000 >@@ -10,10 +10,8 @@ > *******************************************************************************/ > package org.eclipse.zest.layouts.algorithms; > >-import java.lang.reflect.Field; > import java.util.HashMap; > import java.util.Iterator; >-import java.util.List; > > import org.eclipse.draw2d.geometry.Dimension; > import org.eclipse.draw2d.graph.DirectedGraph; >@@ -25,34 +23,6 @@ > > public class DirectedGraphLayoutAlgorithm extends AbstractLayoutAlgorithm { > >- class ExtendedDirectedGraphLayout extends DirectedGraphLayout { >- >- public void visit(DirectedGraph graph) { >- Field field; >- try { >- field = DirectedGraphLayout.class.getDeclaredField("steps"); >- field.setAccessible(true); >- Object object = field.get(this); >- List steps = (List) object; >- steps.remove(10); >- steps.remove(9); >- steps.remove(8); >- steps.remove(2); >- field.setAccessible(false); >- super.visit(graph); >- } catch (SecurityException e) { >- e.printStackTrace(); >- } catch (NoSuchFieldException e) { >- e.printStackTrace(); >- } catch (IllegalArgumentException e) { >- e.printStackTrace(); >- } catch (IllegalAccessException e) { >- e.printStackTrace(); >- } >- } >- >- } >- > public DirectedGraphLayoutAlgorithm(int styles) { > super(styles); > } >@@ -74,7 +44,7 @@ > Edge edge = new Edge(relationship, source, dest); > graph.edges.add(edge); > } >- DirectedGraphLayout directedGraphLayout = new ExtendedDirectedGraphLayout(); >+ DirectedGraphLayout directedGraphLayout = new DirectedGraphLayout(); > directedGraphLayout.visit(graph); > > for (Iterator iterator = graph.nodes.iterator(); iterator.hasNext();) {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 258752
: 120409