summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorCamilo Bernal2013-06-07 17:06:58 (EDT)
committer Roland Grunberg2013-06-11 12:36:21 (EDT)
commit1b5b4726aa48b6cfd4094636ca896b6018a5ed5e (patch)
treed5764f60542a9841047f48583419aa4004ce96d7
parentd20eefcd63bfbb4f56527d6591eefb28d028c25f (diff)
downloadorg.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.zip
org.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.tar.gz
org.eclipse.linuxtools-1b5b4726aa48b6cfd4094636ca896b6018a5ed5e.tar.bz2
Perf: Do not wrap text in stat views.refs/changes/62/13662/2
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 1281224..fbfb3c9 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 c07cf0d..5b3b702 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();