Issue #2932 improve compatibility of pop skewT and blended resources.
Former-commit-id:12d5339c48
[formerly14907292da
] [formerly933b172ca0
] [formerly12d5339c48
[formerly14907292da
] [formerly933b172ca0
] [formerlyeffb0bfcd8
[formerly933b172ca0
[formerly 49ffd67e77fef3c76f712cdf0eaa9b5e8ecff737]]]] Former-commit-id:effb0bfcd8
Former-commit-id:4d284e5780
[formerly99d9ba9645
] [formerly 181bf9e15da48dfb7597e793bcef70990b517993 [formerlyee3cb7e69a
]] Former-commit-id: dabcb37bdf912273c1bd4907d33758ae655f4417 [formerlyb8d6663e15
] Former-commit-id:ebd80c4d49
This commit is contained in:
parent
8ad61a23c0
commit
05a5ec1cb9
1 changed files with 22 additions and 6 deletions
|
@ -26,14 +26,15 @@ import java.util.Set;
|
|||
|
||||
import com.raytheon.uf.viz.cloudheight.rsc.CloudHeightResource;
|
||||
import com.raytheon.uf.viz.cloudheight.rsc.CloudHeightResourceData;
|
||||
import com.raytheon.uf.viz.core.IDisplayPaneContainer;
|
||||
import com.raytheon.uf.viz.core.drawables.IDescriptor;
|
||||
import com.raytheon.uf.viz.core.drawables.IRenderableDisplay;
|
||||
import com.raytheon.uf.viz.core.drawables.ResourcePair;
|
||||
import com.raytheon.uf.viz.core.exception.VizException;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractResourceData;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractVizResource;
|
||||
import com.raytheon.uf.viz.core.rsc.AbstractVizResource.ResourceStatus;
|
||||
import com.raytheon.uf.viz.core.rsc.IInitListener;
|
||||
import com.raytheon.uf.viz.core.rsc.IResourceGroup;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceList;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceList.AddListener;
|
||||
import com.raytheon.uf.viz.core.rsc.ResourceList.RemoveListener;
|
||||
|
@ -53,9 +54,10 @@ import com.raytheon.viz.ui.perspectives.IRenderableDisplayCustomizer;
|
|||
*
|
||||
* SOFTWARE HISTORY
|
||||
*
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Jul 31, 2013 2190 mschenke Initial creation
|
||||
* Date Ticket# Engineer Description
|
||||
* ------------- -------- ----------- --------------------------
|
||||
* Jul 31, 2013 2190 mschenke Initial creation
|
||||
* Mar 20, 2014 2932 bsteffen Better support of blended resources.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -198,8 +200,22 @@ public class D2DPopupSkewTDisplayCustomizer implements
|
|||
}
|
||||
|
||||
private boolean isCompatibleResource(ResourcePair rp) {
|
||||
return COMPATIBLE_CLASSES.contains(rp.getResourceData().getClass())
|
||||
&& CloudHeightResource.isValidContributor(rp.getResource());
|
||||
AbstractResourceData resourceData = rp.getResourceData();
|
||||
if (resourceData != null) {
|
||||
if (COMPATIBLE_CLASSES
|
||||
.contains(rp.getResourceData().getClass())) {
|
||||
return CloudHeightResource.isValidContributor(rp
|
||||
.getResource());
|
||||
} else if (resourceData instanceof IResourceGroup) {
|
||||
IResourceGroup group = (IResourceGroup) resourceData;
|
||||
for (ResourcePair internalPair : group.getResourceList()) {
|
||||
if (isCompatibleResource(internalPair)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private synchronized void addResources(IDescriptor descriptor) {
|
||||
|
|
Loading…
Add table
Reference in a new issue