From 76f68d8b030088fd848278826f4e7cfc333481a5 Mon Sep 17 00:00:00 2001 From: Max Schenkelberg Date: Wed, 19 Sep 2012 13:12:15 -0500 Subject: [PATCH] Issue #1193 Fixed sampling resource input handler so it is added at higher priority than tools Change-Id: I3818eefaf756f049173664a70286af057bfa33e8 Former-commit-id: cfce157801c13c66c6ec99deb1eac7e7a32de7a9 [formerly a1857c6a433fed1f759d61c841411e6d0c566906] [formerly cfce157801c13c66c6ec99deb1eac7e7a32de7a9 [formerly a1857c6a433fed1f759d61c841411e6d0c566906] [formerly c4e97cfdde0e720751b36ac06f99425bdd740754 [formerly 8914baa18e7a95a999dc56f3eef0496d513e255c]]] Former-commit-id: c4e97cfdde0e720751b36ac06f99425bdd740754 Former-commit-id: f037ea4ed949b56780001fe022ca23fb157f240a [formerly 0335a3e7cf6848828307e3078969dc616744f0bd] Former-commit-id: e60574d9f10903b4168bcb9128cf705ea7c0963e --- .../core/rsc/sampling/SamplingResource.java | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/cave/com.raytheon.uf.viz.core.rsc/src/com/raytheon/uf/viz/core/rsc/sampling/SamplingResource.java b/cave/com.raytheon.uf.viz.core.rsc/src/com/raytheon/uf/viz/core/rsc/sampling/SamplingResource.java index 35be2e99ca..c95df387f9 100644 --- a/cave/com.raytheon.uf.viz.core.rsc/src/com/raytheon/uf/viz/core/rsc/sampling/SamplingResource.java +++ b/cave/com.raytheon.uf.viz.core.rsc/src/com/raytheon/uf/viz/core/rsc/sampling/SamplingResource.java @@ -148,8 +148,8 @@ public class SamplingResource extends protected void initInternal(IGraphicsTarget target) throws VizException { IDisplayPaneContainer container = getResourceContainer(); if (container != null) { - container - .registerMouseHandler(inputAdapter, InputPriority.RESOURCE); + container.registerMouseHandler(inputAdapter, + InputPriority.SYSTEM_RESOURCE); } hoverFont = target.initializeFont(getClass().getName()); } @@ -391,15 +391,13 @@ public class SamplingResource extends while (j < split.length) { String s = split[j]; if (s.length() + line.length() <= approxLenPerStr) { - if (!s.isEmpty()){ - if (j == split.length -1 && split[1].equalsIgnoreCase("=")) - { - line = split[split.length-1]; - } - else - { - line += " " + s; - } + if (!s.isEmpty()) { + if (j == split.length - 1 + && split[1].equalsIgnoreCase("=")) { + line = split[split.length - 1]; + } else { + line += " " + s; + } } else { line += " "; }