Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamilo Bernal2013-06-07 21:06:58 +0000
committerRoland Grunberg2013-06-11 16:36:21 +0000
commit1b5b4726aa48b6cfd4094636ca896b6018a5ed5e (patch)
treed5764f60542a9841047f48583419aa4004ce96d7
parentd20eefcd63bfbb4f56527d6591eefb28d028c25f (diff)
downloadorg.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.tar.gz
org.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.tar.xz
org.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.zip
Perf: Do not wrap text in stat views.
Wrapped text makes the stat results hard to read, instead these views should be horizontally scrollable. Change-Id: If2cfe5c87a5bde117184400b117a73c762764429 Reviewed-on: https://git.eclipse.org/r/13662 Tested-by: Hudson CI Reviewed-by: Roland Grunberg <rgrunber@redhat.com> IP-Clean: Roland Grunberg <rgrunber@redhat.com> Tested-by: Roland Grunberg <rgrunber@redhat.com>
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java2
-rw-r--r--perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatView.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
index 12812242ac..fbfb3c9d9d 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatComparisonView.java
@@ -57,7 +57,7 @@ public class StatComparisonView extends ViewPart {
public void createPartControl(Composite parent) {
parent.setLayoutData(new GridLayout(1, true));
- text = new StyledText(parent, SWT.WRAP | SWT.V_SCROLL);
+ text = new StyledText(parent, SWT.H_SCROLL | SWT.V_SCROLL);
text.setEditable(false);
IPerfData statsDiff = PerfPlugin.getDefault()
diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatView.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatView.java
index c07cf0df96..5b3b702a26 100644
--- a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatView.java
+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/StatView.java
@@ -38,7 +38,7 @@ public class StatView extends ViewPart {
public void createPartControl(Composite parent) {
parent.setLayoutData(new GridLayout(1, true));
- text = new StyledText(parent, SWT.WRAP | SWT.V_SCROLL);
+ text = new StyledText(parent, SWT.H_SCROLL | SWT.V_SCROLL);
text.setEditable(false);
IPerfData data = PerfPlugin.getDefault().getStatData();

Back to the top