Issue #590 Fix rsc so it can be recycled

Change-Id: I3cddf5d67c2e5dfb52380529f703a0d9558d8916

Former-commit-id: 798463a4cf [formerly 798463a4cf [formerly cd52bfbeb593a4b1891f4df7f7ae73c7193504d0]]
Former-commit-id: 78c1298085
Former-commit-id: 7be5ef8528
This commit is contained in:
Nate Jensen 2012-05-11 10:04:36 -05:00
parent fc471eb557
commit 814be4f5c8

View file

@ -161,6 +161,7 @@ import com.vividsolutions.jts.geom.Envelope;
* 03/01/2008 chammack Initial Creation.
* Aug 20, 2008 dglazesk Update for the ColorMap interface change
* Nov 23, 2011 mli set vector lineStyle
* May 11, 2012 njensen Allow rsc to be recycled
*
* </pre>
*
@ -369,7 +370,11 @@ public class GFEResource extends
* @return Returns the parm associated with the GFE Resource
*/
public Parm getParm() {
return this.parm;
Parm retVal = null;
if (this.getStatus() != ResourceStatus.DISPOSED) {
retVal = this.parm;
}
return retVal;
}
/*
@ -416,8 +421,6 @@ public class GFEResource extends
}
clearVectorDisplays();
this.parm = null;
}
private void clearVectorDisplays() {