Issue #1362 create a new resource handler when nsharp is created in a side pane.

Former-commit-id: 50ff73809f [formerly 52497f5630] [formerly 0eb454f0d4 [formerly 62cb0df39d0c24edc80d635f3bf90d2abc564b04]]
Former-commit-id: 0eb454f0d4
Former-commit-id: 84fa621b55
This commit is contained in:
Ben Steffensmeier 2012-12-10 17:57:49 -06:00
parent 15b3a61287
commit d2f5643093

View file

@ -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