Mercurial > hg > graal-compiler
changeset 4574:ab4a47b6a187
Visualizer: Fix range slider scrollbar. Change app.name to graalvisualizer.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Sun, 12 Feb 2012 23:37:47 +0100 |
parents | 24d9f3310ed6 |
children | ccb5369481a2 |
files | visualizer/SnapshotsView/src/com/oracle/graal/visualizer/snapshots/SnapshotTopComponent.java visualizer/Util/src/com/sun/hotspot/igv/util/RangeSlider.java visualizer/build.xml visualizer/nbproject/build-impl.xml visualizer/nbproject/genfiles.properties visualizer/nbproject/project.properties |
diffstat | 6 files changed, 12 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/visualizer/SnapshotsView/src/com/oracle/graal/visualizer/snapshots/SnapshotTopComponent.java Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/SnapshotsView/src/com/oracle/graal/visualizer/snapshots/SnapshotTopComponent.java Sun Feb 12 23:37:47 2012 +0100 @@ -57,7 +57,7 @@ update(); } }; - + private final ChangedListener<RangeSliderModel> rangeSliderChangedListener = new ChangedListener<RangeSliderModel>(){ @Override @@ -75,7 +75,9 @@ result.addLookupListener(lookupListener); this.rangeSlider = new RangeSlider(null); this.setLayout(new BorderLayout()); - this.add(new JScrollPane(rangeSlider), BorderLayout.CENTER); + final JScrollPane scrollPane = new JScrollPane(rangeSlider); + scrollPane.getVerticalScrollBar().setUnitIncrement(RangeSlider.ITEM_HEIGHT); + this.add(scrollPane, BorderLayout.CENTER); update(); }
--- a/visualizer/Util/src/com/sun/hotspot/igv/util/RangeSlider.java Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/Util/src/com/sun/hotspot/igv/util/RangeSlider.java Sun Feb 12 23:37:47 2012 +0100 @@ -88,6 +88,7 @@ }; private void update() { + this.revalidate(); this.repaint(); }
--- a/visualizer/build.xml Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/build.xml Sun Feb 12 23:37:47 2012 +0100 @@ -3,12 +3,12 @@ <!-- for some information on what you could do (e.g. targets to override). --> <!-- If you delete this file and reopen the project it will be recreated. --> <project name="Graal Visualizer" basedir="."> - <description>Builds the module suite IdealGraphVisualizer.</description> + <description>Builds the module suite Graal Visualizer.</description> <import file="nbproject/build-impl.xml"/> <target name="build-launchers" depends="suite.build-launchers"> <!-- Drop memory presets (-Xms, -Xmx) from default_options of packaged builds and let the executing VM choose reasonable defaults --> - <replaceregexp file="${build.launcher.dir}/etc/${app.name}.conf" byline="true" match="^default_options=.*" replace='default_options="--branding idealgraphvisualizer"' /> + <replaceregexp file="${build.launcher.dir}/etc/${app.name}.conf" byline="true" match="^default_options=.*" replace='default_options="--branding graalvisualizer"' /> </target> <!-- Local (environment-specific) extensions/modifications to the build -->
--- a/visualizer/nbproject/build-impl.xml Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/nbproject/build-impl.xml Sun Feb 12 23:37:47 2012 +0100 @@ -3,7 +3,7 @@ *** GENERATED FROM project.xml - DO NOT EDIT *** *** EDIT ../build.xml INSTEAD *** --> -<project name="IdealGraphVisualizer-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1"> +<project name="Graal Visualizer-impl" basedir=".." xmlns:sproject="http://www.netbeans.org/ns/nb-module-suite-project/1"> <fail message="Please build using Ant 1.7.1 or higher."> <condition> <not>
--- a/visualizer/nbproject/genfiles.properties Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/nbproject/genfiles.properties Sun Feb 12 23:37:47 2012 +0100 @@ -3,9 +3,9 @@ build.xml.stylesheet.CRC32=eaf9f76a@1.45.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=3c2c6126 -nbproject/build-impl.xml.script.CRC32=b26e57e5 +nbproject/build-impl.xml.data.CRC32=3077accc +nbproject/build-impl.xml.script.CRC32=17b494f7 nbproject/build-impl.xml.stylesheet.CRC32=0f381476@2.47.1 -nbproject/platform.xml.data.CRC32=3c2c6126 +nbproject/platform.xml.data.CRC32=3077accc nbproject/platform.xml.script.CRC32=db9e1f43 nbproject/platform.xml.stylesheet.CRC32=df8ac4dd@2.47.1
--- a/visualizer/nbproject/project.properties Sun Feb 12 23:21:54 2012 +0100 +++ b/visualizer/nbproject/project.properties Sun Feb 12 23:37:47 2012 +0100 @@ -1,5 +1,5 @@ app.icon=branding/core/core.jar/org/netbeans/core/startup/frame48.gif -app.name=idealgraphvisualizer +app.name=graalvisualizer app.title=Graal Visualizer branding.token=${app.name} modules=\