From 2e1d72fd128574dd5484802dbe658e97a229ab2c Mon Sep 17 00:00:00 2001 From: Ben Steffensmeier Date: Mon, 10 Dec 2012 17:57:49 -0600 Subject: [PATCH] Issue #1362 create a new resource handler when nsharp is created in a side pane. Former-commit-id: 0eb454f0d4685bc81665177e2e1b9094dd867549 [formerly 52497f563048ce10289c757eec1dcccafd30d756 [formerly 62cb0df39d0c24edc80d635f3bf90d2abc564b04]] Former-commit-id: 52497f563048ce10289c757eec1dcccafd30d756 Former-commit-id: 50ff73809f77e9f22a37e8324734294438f20d7f --- .../uf/viz/d2d/nsharp/rsc/D2DNSharpResource.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResource.java b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResource.java index b6330b7810..bdea75c8f7 100644 --- a/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResource.java +++ b/cave/com.raytheon.uf.viz.d2d.nsharp/src/com/raytheon/uf/viz/d2d/nsharp/rsc/D2DNSharpResource.java @@ -41,6 +41,7 @@ import org.eclipse.core.runtime.jobs.Job; import com.raytheon.uf.common.time.DataTime; import com.raytheon.uf.viz.core.IGraphicsTarget; import com.raytheon.uf.viz.core.drawables.AbstractDescriptor; +import com.raytheon.uf.viz.core.drawables.IRenderableDisplay; import com.raytheon.uf.viz.core.drawables.PaintProperties; import com.raytheon.uf.viz.core.exception.VizException; import com.raytheon.uf.viz.core.rsc.AbstractVizResource; @@ -188,7 +189,13 @@ public class D2DNSharpResource extends return handler; } } - throw new VizException("Unable to find a NsharpResourceHandler."); + NsharpResourceHandler handler = new NsharpResourceHandler( + new IRenderableDisplay[] { descriptor.getRenderableDisplay() }, + null); + for (NsharpAbstractPaneResource paneRsc : paneRscs) { + paneRsc.setRscHandler(handler); + } + return handler; } @Override