# HG changeset patch # User Thomas Wuerthinger # Date 1309798582 -7200 # Node ID 92b24e9e7e88e4f64c15b82c959bb026cff84cd6 # Parent a8db5b0e499fd39b96cb8a08190f1f0ce2cefd6e# Parent 33794640fc148a4f30e78638d6ffbad40435000d Merge. diff -r a8db5b0e499f -r 92b24e9e7e88 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/If.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/If.java Mon Jul 04 18:54:54 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/ir/If.java Mon Jul 04 18:56:22 2011 +0200 @@ -106,6 +106,14 @@ } @Override + public boolean verify() { + assertTrue(compare() != null); + assertTrue(trueSuccessor() != null); + assertTrue(falseSuccessor() != null); + return true; + } + + @Override public void print(LogStream out) { out.print("if "). print(compare()). diff -r a8db5b0e499f -r 92b24e9e7e88 graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/LoopUtil.java --- a/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/LoopUtil.java Mon Jul 04 18:54:54 2011 +0200 +++ b/graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/util/LoopUtil.java Mon Jul 04 18:56:22 2011 +0200 @@ -264,7 +264,7 @@ System.out.println(" - " + entry.getKey() + " -> " + entry.getValue()); } System.out.println(" Exits :"); - for (Entry entry : peeling.exits.entries()) { + for (Entry entry : peeling.exits.entries()) { System.out.println(" - " + entry.getKey() + " -> " + entry.getValue()); } System.out.println(" PhiInits :"); @@ -282,7 +282,7 @@ // update parents Loop parent = loop.parent(); while (parent != null) { - parent.nodes = computeLoopNodes(loop.loopBegin); + parent.nodes = computeLoopNodes(parent.loopBegin); parent.exits = computeLoopExits(parent.loopBegin, parent.nodes); parent = parent.parent; } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,5 +1,5 @@ CTL_BytecodeViewAction=Open BytecodeView Window -CTL_BytecodeViewTopComponent=BytecodeView Window +CTL_BytecodeViewTopComponent=Bytecode CTL_SelectBytecodesAction=Select nodes -HINT_BytecodeViewTopComponent=This is a BytecodeView window +HINT_BytecodeViewTopComponent=Shows the bytecode associated with the displayed graph. OpenIDE-Module-Name=Bytecodes diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeNode.java --- a/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeNode.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/BytecodeNode.java Mon Jul 04 18:56:22 2011 +0200 @@ -69,9 +69,9 @@ @Override public Image getIcon(int i) { if (nodes != null) { - return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/link.gif"); + return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/link.png"); } else { - return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/bytecode.gif"); + return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/bytecode.png"); } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/MethodNode.java --- a/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/MethodNode.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/MethodNode.java Mon Jul 04 18:56:22 2011 +0200 @@ -82,7 +82,7 @@ @Override public Image getIcon(int i) { - return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/method.gif"); + return ImageUtilities.loadImage("com/sun/hotspot/igv/bytecodes/images/method.png"); } @Override diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/bytecode.gif Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/bytecode.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/bytecode.png Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/bytecode.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/link.gif Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/link.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/link.png Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/link.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/method.gif Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/method.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/method.png Binary file src/share/tools/IdealGraphVisualizer/Bytecodes/src/com/sun/hotspot/igv/bytecodes/images/method.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockConnectionWidget.java --- a/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockConnectionWidget.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockConnectionWidget.java Mon Jul 04 18:56:22 2011 +0200 @@ -23,10 +23,12 @@ */ package com.sun.hotspot.igv.controlflow; -import com.sun.hotspot.igv.controlflow.InputBlockEdge; +import com.sun.hotspot.igv.data.InputBlockEdge; import com.sun.hotspot.igv.layout.Link; import com.sun.hotspot.igv.layout.Port; +import java.awt.BasicStroke; import java.awt.Point; +import java.awt.Stroke; import java.util.ArrayList; import java.util.List; import org.netbeans.api.visual.widget.ConnectionWidget; @@ -37,12 +39,19 @@ */ public class BlockConnectionWidget extends ConnectionWidget implements Link { + private static final Stroke NORMAL_STROKE = new BasicStroke(1.0f); + private static final Stroke BOLD_STROKE = new BasicStroke(2.5f); + private static final Stroke DASHED_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 10.0f, new float[]{5, 5}, 0); + private static final Stroke BOLD_DASHED_STROKE = new BasicStroke(2.5f, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_MITER, 10.0f, new float[]{5, 5}, 0); + private BlockWidget from; private BlockWidget to; private Port inputSlot; private Port outputSlot; private List points; private InputBlockEdge edge; + private boolean isDashed = false; + private boolean isBold = false; public BlockConnectionWidget(ControlFlowScene scene, InputBlockEdge edge) { super(scene); @@ -67,6 +76,30 @@ return outputSlot; } + public void setBold(boolean bold) { + this.isBold = bold; + updateStroke(); + } + + public void setDashed(boolean dashed) { + this.isDashed = dashed; + updateStroke(); + } + + private void updateStroke() { + Stroke stroke = NORMAL_STROKE; + if (isBold) { + if (isDashed) { + stroke = BOLD_DASHED_STROKE; + } else { + stroke = BOLD_STROKE; + } + } else if (isDashed) { + stroke = DASHED_STROKE; + } + setStroke(stroke); + } + public void setControlPoints(List p) { this.points = p; } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockWidget.java --- a/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockWidget.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/BlockWidget.java Mon Jul 04 18:56:22 2011 +0200 @@ -31,6 +31,7 @@ import java.awt.Dimension; import java.awt.Font; import java.awt.Point; +import java.awt.Rectangle; import org.netbeans.api.visual.border.BorderFactory; import org.netbeans.api.visual.model.ObjectState; import org.netbeans.api.visual.widget.LabelWidget; @@ -41,13 +42,13 @@ */ public class BlockWidget extends LabelWidget implements Vertex { - public static final Dimension SIZE = new Dimension(20, 20); + public static final Dimension MIN_SIZE = new Dimension(20, 20); private InputBlock block; private Port inputSlot; private Port outputSlot; private Cluster cluster; private boolean root; - private static final Font font = new Font("Serif", Font.PLAIN, 12); + private static final Font font = new Font(Font.SANS_SERIF, Font.PLAIN, 12); private static final Font boldFont = font.deriveFont(Font.BOLD); public static final Color NORMAL_FOREGROUND_COLOR = Color.BLACK; public static final Color HOVER_FOREGROUND_COLOR = Color.BLUE; @@ -59,29 +60,24 @@ this.setLabel(block.getName()); this.setForeground(NORMAL_FOREGROUND_COLOR); this.setBorder(BorderFactory.createLineBorder(1, NORMAL_FOREGROUND_COLOR)); - this.setMinimumSize(SIZE); - this.setMaximumSize(SIZE); + this.setMinimumSize(MIN_SIZE); this.setFont(font); + this.setAlignment(Alignment.CENTER); final BlockWidget widget = this; inputSlot = new Port() { - public Point getRelativePosition() { - return new Point((int) (SIZE.getWidth() / 2), (int) (SIZE.getHeight() / 2)); + return new Point((int) (getSize().getWidth() / 2), (int) (getSize().getHeight() / 2)); } - public Vertex getVertex() { return widget; } }; - outputSlot = new Port() { - public Point getRelativePosition() { - return new Point((int) (SIZE.getWidth() / 2), (int) (SIZE.getHeight() / 2)); + return new Point((int) (getSize().getWidth() / 2), (int) (getSize().getHeight() / 2)); } - public Vertex getVertex() { return widget; } @@ -101,7 +97,12 @@ } public Dimension getSize() { - return SIZE; + Rectangle bounds = getBounds(); + if (bounds != null) { + return bounds.getSize(); + } else { + return MIN_SIZE; + } } public void setPosition(Point p) { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,4 +1,4 @@ CTL_ControlFlowAction=Open ControlFlow Window -CTL_ControlFlowTopComponent=ControlFlow Window -HINT_ControlFlowTopComponent=This is a ControlFlow window +CTL_ControlFlowTopComponent=Control Flow +HINT_ControlFlowTopComponent=Shows the blocks of the current graph. OpenIDE-Module-Name=ControlFlow diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/ControlFlowScene.java --- a/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/ControlFlowScene.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/ControlFlowScene.java Mon Jul 04 18:56:22 2011 +0200 @@ -23,6 +23,7 @@ */ package com.sun.hotspot.igv.controlflow; +import com.sun.hotspot.igv.data.InputBlockEdge; import com.sun.hotspot.igv.data.InputBlock; import com.sun.hotspot.igv.data.InputGraph; import com.sun.hotspot.igv.data.services.InputGraphProvider; @@ -108,15 +109,12 @@ addNode(b); } - for (InputBlock b : g.getBlocks()) { - for (InputBlock succ : b.getSuccessors()) { - final InputBlockEdge e = new InputBlockEdge(b, succ); - addEdge(e); - assert g.getBlocks().contains(e.getFrom()); - assert g.getBlocks().contains(e.getTo()); - this.setEdgeSource(e, e.getFrom()); - this.setEdgeTarget(e, e.getTo()); - } + for (InputBlockEdge e : g.getBlockEdges()) { + addEdge(e); + assert g.getBlocks().contains(e.getFrom()); + assert g.getBlocks().contains(e.getTo()); + this.setEdgeSource(e, e.getFrom()); + this.setEdgeTarget(e, e.getTo()); } GraphLayout layout = new HierarchicalGraphLayout();//GridGraphLayout(); @@ -265,7 +263,15 @@ } protected Widget attachEdgeWidget(InputBlockEdge edge) { - ConnectionWidget w = new BlockConnectionWidget(this, edge); + BlockConnectionWidget w = new BlockConnectionWidget(this, edge); + switch (edge.getState()) { + case NEW: + w.setBold(true); + break; + case DELETED: + w.setDashed(true); + break; + } w.setRouter(RouterFactory.createDirectRouter()); w.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED); edgeLayer.addChild(w); diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/InputBlockEdge.java --- a/src/share/tools/IdealGraphVisualizer/ControlFlow/src/com/sun/hotspot/igv/controlflow/InputBlockEdge.java Mon Jul 04 18:54:54 2011 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - * - */ -package com.sun.hotspot.igv.controlflow; - -import com.sun.hotspot.igv.data.*; - -/** - * - * @author Thomas Wuerthinger - */ -public class InputBlockEdge { - - private InputBlock from; - private InputBlock to; - - public InputBlockEdge(InputBlock from, InputBlock to) { - assert from != null; - assert to != null; - this.from = from; - this.to = to; - } - - public InputBlock getFrom() { - return from; - } - - public InputBlock getTo() { - return to; - } - - @Override - public boolean equals(Object obj) { - if (obj instanceof InputBlockEdge && obj != null) { - InputBlockEdge e = (InputBlockEdge) obj; - return e.from.equals(from) && e.to.equals(to); - } - return super.equals(obj); - } - - @Override - public int hashCode() { - int hash = from.hashCode(); - hash = 59 * hash + to.hashCode(); - return hash; - } -} diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,9 +1,9 @@ AdvancedOption_DisplayName_Coordinator=Settings AdvancedOption_Tooltip_Coordinator=Visualization Tool Settings -CTL_OutlineTopComponent=Outline Window +CTL_OutlineTopComponent=Outline CTL_SomeAction=test -HINT_OutlineTopComponent=This is a Outline window +HINT_OutlineTopComponent=Displays loaded groups of graphs. OpenIDE-Module-Name=Coordinator Toolbars/QuickSearch=Quick Search QuickSearch/Nodes/com-sun-hotspot-igv-coordinator-QuickSearch.instance=Nodes diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/FolderNode.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/FolderNode.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/FolderNode.java Mon Jul 04 18:56:22 2011 +0200 @@ -115,7 +115,7 @@ @Override public Image getIcon(int i) { - return ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/folder.gif"); + return ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/folder.png"); } protected FolderNode(GraphDocument document, String name, GroupOrganizer organizer, List subFolders, List groups) { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/GraphNode.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/GraphNode.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/GraphNode.java Mon Jul 04 18:56:22 2011 +0200 @@ -98,7 +98,7 @@ @Override public Image getIcon(int i) { - return ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/graph.gif"); + return ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/graph.png"); } @Override diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/DiffGraphAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/DiffGraphAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/DiffGraphAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -70,7 +70,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/coordinator/images/diff.gif"; + return "com/sun/hotspot/igv/coordinator/images/diff.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/ImportAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/ImportAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/ImportAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -161,7 +161,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/coordinator/images/import.gif"; + return "com/sun/hotspot/igv/coordinator/images/import.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -55,7 +55,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/coordinator/images/remove.gif"; + return "com/sun/hotspot/igv/coordinator/images/remove.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAllAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAllAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/RemoveAllAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -51,7 +51,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/coordinator/images/removeall.gif"; + return "com/sun/hotspot/igv/coordinator/images/removeall.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/SaveAsAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/SaveAsAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/SaveAsAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -98,7 +98,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/coordinator/images/save.gif"; + return "com/sun/hotspot/igv/coordinator/images/save.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/StructuredViewAction.java --- a/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/StructuredViewAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/StructuredViewAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -71,7 +71,7 @@ @Override public Component getToolbarPresenter() { - Image iconImage = ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/structure.gif"); + Image iconImage = ImageUtilities.loadImage("com/sun/hotspot/igv/coordinator/images/structure.png"); ImageIcon icon = new ImageIcon(iconImage); popup = new JPopupMenu(); diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/diff.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/diff.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/diff.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/diff.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/folder.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/folder.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/folder.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/folder.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/graph.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/graph.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/graph.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/graph.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/import.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/import.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/import.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/import.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/remove.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/remove.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/remove.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/remove.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/removeall.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/removeall.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/removeall.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/removeall.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/save.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/save.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/save.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/save.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/saveall.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/saveall.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/structure.gif Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/structure.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/structure.png Binary file src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/images/structure.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputBlockEdge.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputBlockEdge.java Mon Jul 04 18:56:22 2011 +0200 @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ +package com.sun.hotspot.igv.data; + +/** + * + * @author Thomas Wuerthinger + */ +public class InputBlockEdge { + + public enum State { + SAME, + NEW, + DELETED + } + + private InputBlock from; + private InputBlock to; + private State state = State.SAME; + + public InputBlockEdge(InputBlock from, InputBlock to) { + assert from != null; + assert to != null; + this.from = from; + this.to = to; + } + + public InputBlock getFrom() { + return from; + } + + public InputBlock getTo() { + return to; + } + + public State getState() { + return state; + } + + public void setState(State state) { + this.state = state; + } + + @Override + public boolean equals(Object obj) { + if (obj != null && obj instanceof InputBlockEdge) { + InputBlockEdge e = (InputBlockEdge) obj; + return e.from.equals(from) && e.to.equals(to); + } + return false; + } + + @Override + public int hashCode() { + int hash = from.hashCode(); + hash = 59 * hash + to.hashCode(); + return hash; + } +} diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputGraph.java --- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputGraph.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/InputGraph.java Mon Jul 04 18:56:22 2011 +0200 @@ -28,8 +28,8 @@ import java.util.Collections; import java.util.HashMap; import java.util.HashSet; -import java.util.Hashtable; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; @@ -40,11 +40,12 @@ */ public class InputGraph extends Properties.Entity { - private LinkedHashMap nodes; - private ArrayList edges; + private Map nodes; + private Set edges; private Group parent; - private LinkedHashMap blocks; - private LinkedHashMap nodeToBlock; + private Map blocks; + private Set blockEdges; + private Map nodeToBlock; private Pair sourceGraphs; private int parentIndex; @@ -54,13 +55,17 @@ this.sourceGraphs = sourceGraphs; setName(name); nodes = new LinkedHashMap(); - edges = new ArrayList(); + edges = new LinkedHashSet(); blocks = new LinkedHashMap(); + blockEdges = new LinkedHashSet(); nodeToBlock = new LinkedHashMap(); } - public void addBlockConnection(InputBlock left, InputBlock right) { + public InputBlockEdge addBlockEdge(InputBlock left, InputBlock right) { + InputBlockEdge edge = new InputBlockEdge(left, right); + blockEdges.add(edge); left.addSuccessor(right); + return edge; } public Pair getSourceGraphs() { @@ -177,9 +182,6 @@ } noBlock.addNode(n.getId()); } - } - - for (InputNode n : this.getNodes()) { assert this.getBlock(n) != null; } } @@ -249,22 +251,19 @@ } public Collection getEdges() { - return Collections.unmodifiableList(edges); + return Collections.unmodifiableSet(edges); } public void removeEdge(InputEdge c) { - assert edges.contains(c); - edges.remove(c); - assert !edges.contains(c); + boolean removed = edges.remove(c); + assert removed; } public void addEdge(InputEdge c) { - // Be tolerant with duplicated edges. - if(!edges.contains(c)) { + if (!edges.contains(c)) { edges.add(c); } - assert edges.contains(c); } public Group getGroup() { @@ -302,4 +301,8 @@ public InputBlock getBlock(String s) { return blocks.get(s); } + + public Collection getBlockEdges() { + return Collections.unmodifiableSet(blockEdges); + } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java --- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/Parser.java Mon Jul 04 18:56:22 2011 +0200 @@ -264,7 +264,7 @@ assert left != null; final InputBlock right = graph.getBlock(p.getRight()); assert right != null; - graph.addBlockConnection(left, right); + graph.addBlockEdge(left, right); } blockConnections.clear(); } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/Difference/src/com/sun/hotspot/igv/difference/Difference.java --- a/src/share/tools/IdealGraphVisualizer/Difference/src/com/sun/hotspot/igv/difference/Difference.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Difference/src/com/sun/hotspot/igv/difference/Difference.java Mon Jul 04 18:56:22 2011 +0200 @@ -26,6 +26,7 @@ import com.sun.hotspot.igv.data.Group; import com.sun.hotspot.igv.data.InputBlock; +import com.sun.hotspot.igv.data.InputBlockEdge; import com.sun.hotspot.igv.data.InputEdge; import com.sun.hotspot.igv.data.InputGraph; import com.sun.hotspot.igv.data.InputNode; @@ -118,6 +119,33 @@ blocksMap.put(blk, diffblk); } + // Difference between block edges + Set> aEdges = new HashSet>(); + for (InputBlockEdge edge : a.getBlockEdges()) { + aEdges.add(new Pair(edge.getFrom().getName(), edge.getTo().getName())); + } + for (InputBlockEdge bEdge : b.getBlockEdges()) { + InputBlock from = bEdge.getFrom(); + InputBlock to = bEdge.getTo(); + Pair pair = new Pair(from.getName(), to.getName()); + if (aEdges.contains(pair)) { + // same + graph.addBlockEdge(blocksMap.get(from), blocksMap.get(to)); + aEdges.remove(pair); + } else { + // added + InputBlockEdge edge = graph.addBlockEdge(blocksMap.get(from), blocksMap.get(to)); + edge.setState(InputBlockEdge.State.NEW); + } + } + for (Pair deleted : aEdges) { + // removed + InputBlock from = graph.getBlock(deleted.getLeft()); + InputBlock to = graph.getBlock(deleted.getRight()); + InputBlockEdge edge = graph.addBlockEdge(from, to); + edge.setState(InputBlockEdge.State.DELETED); + } + Set nodesA = new HashSet(a.getNodes()); Set nodesB = new HashSet(b.getNodes()); diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,3 +1,3 @@ OpenIDE-Module-Name=FilterWindow -CTL_FilterTopComponent=Filter Window -HINT_FilterTopComponent=This is a Filter window +CTL_FilterTopComponent=Filters +HINT_FilterTopComponent=Allows to choose active filters and modify them. diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterDownAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterDownAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterDownAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -65,7 +65,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/down.gif"; + return "com/sun/hotspot/igv/filterwindow/images/down.png"; } @Override diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterUpAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterUpAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/MoveFilterUpAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -64,7 +64,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/up.gif"; + return "com/sun/hotspot/igv/filterwindow/images/up.png"; } @Override diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/NewFilterAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/NewFilterAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/NewFilterAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -63,6 +63,6 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/plus.gif"; + return "com/sun/hotspot/igv/filterwindow/images/plus.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -85,7 +85,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/minus.gif"; + return "com/sun/hotspot/igv/filterwindow/images/minus.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterSettingsAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterSettingsAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/RemoveFilterSettingsAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -63,6 +63,6 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/delete.gif"; + return "com/sun/hotspot/igv/filterwindow/images/delete.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/SaveFilterSettingsAction.java --- a/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/SaveFilterSettingsAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/actions/SaveFilterSettingsAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -63,6 +63,6 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/filterwindow/images/add.gif"; + return "com/sun/hotspot/igv/filterwindow/images/add.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/add.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/add.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/add.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/add.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/delete.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/delete.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/delete.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/delete.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/down.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/down.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/down.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/down.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/minus.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/minus.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/minus.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/minus.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/plus.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/plus.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/plus.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/plus.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/up.gif Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/up.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/up.png Binary file src/share/tools/IdealGraphVisualizer/FilterWindow/src/com/sun/hotspot/igv/filterwindow/images/up.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/GraphTextEditor/src/com/sun/hotspot/igv/graphtexteditor/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/GraphTextEditor/src/com/sun/hotspot/igv/graphtexteditor/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/GraphTextEditor/src/com/sun/hotspot/igv/graphtexteditor/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,4 +1,4 @@ CTL_TextAction=Open Text Window -CTL_TextTopComponent=Text Window -HINT_TextTopComponent=This is a Text window +CTL_TextTopComponent=Text +HINT_TextTopComponent=Shows a textual representation of the graph. OpenIDE-Module-Name=GraphTextEditor diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java --- a/src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/ServerCompiler/src/com/sun/hotspot/igv/servercompiler/ServerCompilerScheduler.java Mon Jul 04 18:56:22 2011 +0200 @@ -125,7 +125,7 @@ n = n.preds.get(0); } if (n.block != null) { - graph.addBlockConnection(n.block, block); + graph.addBlockEdge(n.block, block); } } } @@ -136,12 +136,12 @@ for (Node n2 : n.succs) { if (n2 != parent && n2.block != null && n2.block != rootBlock) { - graph.addBlockConnection(block, n2.block); + graph.addBlockEdge(block, n2.block); } } } else { if (n != parent && n.block != null && n.block != rootBlock) { - graph.addBlockConnection(block, n.block); + graph.addBlockEdge(block, n.block); } } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/Bundle.properties --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/Bundle.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/Bundle.properties Mon Jul 04 18:56:22 2011 +0200 @@ -1,4 +1,4 @@ -HINT_EditorTopComponent=This is a Editor window +HINT_EditorTopComponent=Visualizes a graph. OpenIDE-Module-Name=View -CTL_EditorTopComponent=Editor Window +CTL_EditorTopComponent=Graph QuickSearch/Nodes/com-sun-hotspot-igv-view-NodeQuickSearch.instance=Nodes diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ExportAction.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ExportAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ExportAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -103,7 +103,7 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/view/images/export.gif"; + return "com/sun/hotspot/igv/view/images/export.png"; } public HelpCtx getHelpCtx() { diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/OverviewAction.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/OverviewAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/OverviewAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -54,6 +54,6 @@ } protected String iconResource() { - return "com/sun/hotspot/igv/view/images/overview.gif"; + return "com/sun/hotspot/igv/view/images/overview.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomInAction.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomInAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomInAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -64,6 +64,6 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/view/images/zoomin.gif"; + return "com/sun/hotspot/igv/view/images/zoom_in.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomOutAction.java --- a/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomOutAction.java Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/actions/ZoomOutAction.java Mon Jul 04 18:56:22 2011 +0200 @@ -70,6 +70,6 @@ @Override protected String iconResource() { - return "com/sun/hotspot/igv/view/images/zoomout.gif"; + return "com/sun/hotspot/igv/view/images/zoom_out.png"; } } diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/export.gif Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/export.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/export.png Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/export.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/overview.gif Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/overview.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/overview.png Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/overview.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/search.gif Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/search.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoom_in.png Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoom_in.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoom_out.png Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoom_out.png has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoomin.gif Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoomin.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoomout.gif Binary file src/share/tools/IdealGraphVisualizer/View/src/com/sun/hotspot/igv/view/images/zoomout.gif has changed diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/build.xml --- a/src/share/tools/IdealGraphVisualizer/build.xml Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/build.xml Mon Jul 04 18:56:22 2011 +0200 @@ -5,4 +5,12 @@ Builds the module suite IdealGraphVisualizer. + + + + + + + + diff -r a8db5b0e499f -r 92b24e9e7e88 src/share/tools/IdealGraphVisualizer/nbproject/project.properties --- a/src/share/tools/IdealGraphVisualizer/nbproject/project.properties Mon Jul 04 18:54:54 2011 +0200 +++ b/src/share/tools/IdealGraphVisualizer/nbproject/project.properties Mon Jul 04 18:56:22 2011 +0200 @@ -51,5 +51,8 @@ project.com.sun.hotspot.igv.texteditor=TextEditor project.com.sun.hotspot.igv.view=View project.com.sun.hotspot.igv.util=Util -project.test=module1 -run.args = -J-client -J-Xms128m -J-Xmx1g -J-ea + +# Disable assertions for RequestProcessor to prevent annoying messages in case +# of multiple SceneAnimator update tasks in the default RequestProcessor. +run.args.extra = -J-client -J-da:org.openide.util.RequestProcessor +debug.args.extra = -J-client -J-da:org.openide.util.RequestProcessor