Issue #427 renamed data provider rsc

Change-Id: I05b417c3f7d65908a52910f9d847cc188c7c4a9c

Former-commit-id: 35ef9c2c228ac97ef623edd1e50800495d9ab8f7
This commit is contained in:
Nate Jensen 2012-04-25 14:41:37 -05:00
parent 7d870434f6
commit 069f809596
2 changed files with 8 additions and 7 deletions

View file

@ -31,7 +31,7 @@ import com.raytheon.uf.viz.collaboration.comm.identity.ISharedDisplaySession;
import com.raytheon.uf.viz.collaboration.comm.identity.IVenueSession; import com.raytheon.uf.viz.collaboration.comm.identity.IVenueSession;
import com.raytheon.uf.viz.collaboration.data.CollaborationDataManager; import com.raytheon.uf.viz.collaboration.data.CollaborationDataManager;
import com.raytheon.uf.viz.collaboration.ui.rsc.CollaborationWrapperResource; import com.raytheon.uf.viz.collaboration.ui.rsc.CollaborationWrapperResource;
import com.raytheon.uf.viz.collaboration.ui.rsc.SharedEditorIndicatorRsc; import com.raytheon.uf.viz.collaboration.ui.rsc.DataProviderRsc;
import com.raytheon.uf.viz.core.IExtent; import com.raytheon.uf.viz.core.IExtent;
import com.raytheon.uf.viz.core.PixelExtent; import com.raytheon.uf.viz.core.PixelExtent;
import com.raytheon.uf.viz.core.drawables.AbstractRenderableDisplay; import com.raytheon.uf.viz.core.drawables.AbstractRenderableDisplay;
@ -175,12 +175,12 @@ public class EditorSetup {
IDescriptor desc = editor.getActiveDisplayPane().getRenderableDisplay() IDescriptor desc = editor.getActiveDisplayPane().getRenderableDisplay()
.getDescriptor(); .getDescriptor();
GenericResourceData grd = new GenericResourceData( GenericResourceData grd = new GenericResourceData(
SharedEditorIndicatorRsc.class); DataProviderRsc.class);
ResourcePair rp = new ResourcePair(); ResourcePair rp = new ResourcePair();
rp.setResourceData(grd); rp.setResourceData(grd);
desc.getResourceList().add(rp); desc.getResourceList().add(rp);
desc.getResourceList().instantiateResources(desc, true); desc.getResourceList().instantiateResources(desc, true);
SharedEditorIndicatorRsc rsc = (SharedEditorIndicatorRsc) rp DataProviderRsc rsc = (DataProviderRsc) rp
.getResource(); .getResource();
rsc.setRoomName(((IVenueSession) session).getVenue().getInfo() rsc.setRoomName(((IVenueSession) session).getVenue().getInfo()
.getVenueDescription()); .getVenueDescription());

View file

@ -35,8 +35,9 @@ import com.raytheon.uf.viz.core.rsc.GenericResourceData;
import com.raytheon.uf.viz.core.rsc.LoadProperties; import com.raytheon.uf.viz.core.rsc.LoadProperties;
/** /**
* A resource for displaying to the user that they are currently sharing this * A resource that is added to an editor that the Data Provider is sharing. It
* editor with a particular session. * captures some events and also displays to the Data Provider that the editor
* is currently shared.
* *
* <pre> * <pre>
* *
@ -52,7 +53,7 @@ import com.raytheon.uf.viz.core.rsc.LoadProperties;
* @version 1.0 * @version 1.0
*/ */
public class SharedEditorIndicatorRsc extends public class DataProviderRsc extends
AbstractVizResource<GenericResourceData, IDescriptor> { AbstractVizResource<GenericResourceData, IDescriptor> {
protected String roomName; protected String roomName;
@ -61,7 +62,7 @@ public class SharedEditorIndicatorRsc extends
protected ISharedDisplaySession session; protected ISharedDisplaySession session;
public SharedEditorIndicatorRsc(GenericResourceData resourceData, public DataProviderRsc(GenericResourceData resourceData,
LoadProperties loadProperties) { LoadProperties loadProperties) {
super(resourceData, loadProperties); super(resourceData, loadProperties);
} }