Issue #1362 create a new resource handler when nsharp is created in a side pane.
Former-commit-id:0eb454f0d4
[formerly52497f5630
[formerly 62cb0df39d0c24edc80d635f3bf90d2abc564b04]] Former-commit-id:52497f5630
Former-commit-id:50ff73809f
This commit is contained in:
parent
88a5c6b8ae
commit
2e1d72fd12
1 changed files with 8 additions and 1 deletions
|
@ -41,6 +41,7 @@ import org.eclipse.core.runtime.jobs.Job;
|
||||||
import com.raytheon.uf.common.time.DataTime;
|
import com.raytheon.uf.common.time.DataTime;
|
||||||
import com.raytheon.uf.viz.core.IGraphicsTarget;
|
import com.raytheon.uf.viz.core.IGraphicsTarget;
|
||||||
import com.raytheon.uf.viz.core.drawables.AbstractDescriptor;
|
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.drawables.PaintProperties;
|
||||||
import com.raytheon.uf.viz.core.exception.VizException;
|
import com.raytheon.uf.viz.core.exception.VizException;
|
||||||
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
||||||
|
@ -188,7 +189,13 @@ public class D2DNSharpResource extends
|
||||||
return handler;
|
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
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue