Issue #628 changed NCEP PGEN PgenStaticDataProder.java to cause the staticdataprovider Activator to be loaded. in PgenResource.drawGhost() check for dispatch target before drawing.
Former-commit-id: b4229b04a76044a10848460f01b2b500add537e1
This commit is contained in:
parent
50eba2317a
commit
b732df5f1c
4 changed files with 15 additions and 2 deletions
|
@ -40,8 +40,10 @@ Export-Package: gov.noaa.nws.ncep.ui.pgen,
|
|||
gov.noaa.nws.ncep.ui.pgen.tools
|
||||
Import-Package: com.raytheon.edex.meteoLib,
|
||||
gov.noaa.nws.ncep.viz.localization,
|
||||
com.raytheon.uf.viz.remote.graphics,
|
||||
com.raytheon.viz.core.gl,
|
||||
com.raytheon.viz.core.gl.images,
|
||||
gov.noaa.nws.ncep.common.staticdata,
|
||||
gov.noaa.nws.ncep.staticdataprovider,
|
||||
javax.measure.unit
|
||||
Bundle-ClassPath: .
|
||||
|
|
|
@ -510,7 +510,7 @@
|
|||
<view
|
||||
category="gov.noaa.nws.ncep.viz.ui.nmap"
|
||||
allowMultiple="false"
|
||||
restorable="true"
|
||||
restorable="false"
|
||||
class="gov.noaa.nws.ncep.ui.pgen.palette.PgenPaletteWindow"
|
||||
id="gov.noaa.nws.ncep.ui.PGEN"
|
||||
name="PGEN"/>
|
||||
|
|
|
@ -3,6 +3,7 @@ package gov.noaa.nws.ncep.ui.pgen;
|
|||
import org.osgi.framework.ServiceReference;
|
||||
|
||||
import gov.noaa.nws.ncep.common.staticdata.IStaticDataProvider;
|
||||
import gov.noaa.nws.ncep.staticdataprovider.StaticDataProvider;
|
||||
|
||||
public class PgenStaticDataProvider {
|
||||
|
||||
|
@ -13,6 +14,12 @@ public class PgenStaticDataProvider {
|
|||
|
||||
ServiceReference ref = Activator.getDefault().getBundle().getBundleContext().getServiceReference(
|
||||
IStaticDataProvider.class.getName());
|
||||
if (ref == null) {
|
||||
// cause the classloader to load StaticDataProvided and thus to
|
||||
// call the Activator for gov.noaa.nws.ncep.staticdataprovider.
|
||||
StaticDataProvider.getInstance();
|
||||
ref = Activator.getDefault().getBundle().getBundleContext().getServiceReference(IStaticDataProvider.class.getName());
|
||||
}
|
||||
IStaticDataProvider isdp = null;
|
||||
if(ref != null
|
||||
&& (isdp = (IStaticDataProvider)Activator.getDefault().getBundle().getBundleContext().getService(ref) )!= null ) {
|
||||
|
|
|
@ -75,6 +75,7 @@ import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
|||
import com.raytheon.uf.viz.core.rsc.IResourceDataChanged;
|
||||
import com.raytheon.uf.viz.core.rsc.LoadProperties;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceList.RemoveListener;
|
||||
import com.raytheon.uf.viz.remote.graphics.DispatchGraphicsTarget;
|
||||
import com.raytheon.viz.core.gl.IGLTarget;
|
||||
import com.raytheon.viz.ui.editor.AbstractEditor;
|
||||
import com.vividsolutions.jts.geom.Coordinate;
|
||||
|
@ -716,7 +717,10 @@ public class PgenResource extends AbstractVizResource<PgenResourceData,MapDescri
|
|||
*/
|
||||
private void drawGhost( IGraphicsTarget target, PaintProperties paintProps,
|
||||
DisplayElementFactory df ){
|
||||
|
||||
if (target instanceof DispatchGraphicsTarget) {
|
||||
// Ensure ghosting is painted to our own target only
|
||||
target = ((DispatchGraphicsTarget) target).getWrappedObject();
|
||||
}
|
||||
df.setLayerDisplayAttr( false, null, false );
|
||||
|
||||
Iterator<DrawableElement> iterator = ghost.createDEIterator();
|
||||
|
|
Loading…
Add table
Reference in a new issue