platform-vcm-home/docs/online/team3.1/logical-physical-mappings.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5, Mon Feb 14 20:08:31 2005 UTC revision 1.6, Tue Feb 15 14:57:47 2005 UTC
# Line 228  Line 228 
228        return new ResourceTraversal(resources, IResource.DEPTH_ZERO);        return new ResourceTraversal(resources, IResource.DEPTH_ZERO);
229    
230     }<br>}</pre>     }<br>}</pre>
231    <p>Notice that there are two sets of resources included in the model: those derived
232      from the local contents of the HTML file in the worspace and the contents of
233      the file remotely. In either of these two sets, there may be resources that
234      do not exist in the workspace. For instance, the local HTML file may contain
235      a relative link to an image that does not exist in the workspace. This resource
236      should be included so that it will be fetched if it exists remotely. As for
237      the remote file, it may contain a new copy that references additional images
238      that should be fetched when the new remote contents are downloaded.</p>
239  <h4>When does a client need to provide a ResourceMappingContext?</h4>  <h4>When does a client need to provide a ResourceMappingContext?</h4>
240  <p>Any client that is providing the ability of sharing workspace resources through  <p>Any client that is providing the ability of sharing workspace resources through
241    a repository and is supporting ResourceMappings should provide an appropriate    a repository and is supporting ResourceMappings should provide an appropriate
# Line 251  Line 259 
259  </ul>  </ul>
260  <p>The Eclipse Team API includes a <code>Subcriber</code> class that defines an  <p>The Eclipse Team API includes a <code>Subcriber</code> class that defines an
261    API for providing the synchronization state between the local workspace and    API for providing the synchronization state between the local workspace and
262    a remote server. A <code>SubscriberResourceMappingContext</code> has been created    a remote server. A <code><a href="http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.team.core/src/org/eclipse/team/core/subscribers/SubscriberResourceMappingContext.java?rev=HEAD&content-type=text/vnd.viewcvs-markup">SubscriberResourceMappingContext</a></code>
263    that uses a <code>Subscriber</code> to access the necessary remote state. Clients    has been created that uses a <code>Subscriber</code> to access the necessary
264    that have a <code>Subscriber</code> do not need to do any additional work to    remote state. Clients that have a <code>Subscriber</code> do not need to do
265    get a resource mapping context.</p>    any additional work to get a resource mapping context.</p>
266  <h2>EMF Library Example</h2>  <h2>EMF Library Example</h2>
267  <p>This example, available <a href="../../../plugins/library.zip">here</a>, is  <p>This example, available <a href="../../../plugins/library.zip">here</a>, is
268    built on a model that consists of libraries, books and writers. The code is    built on a model that consists of libraries, books and writers. The code is
# Line 318  Line 326 
326      showing the mappings. For instance you could show the logical model at the      showing the mappings. For instance you could show the logical model at the
327      top and in a details part the physical files/folders that will be affected      top and in a details part the physical files/folders that will be affected
328      by the operation.</li>      by the operation.</li>
   <li>Would it be possible to add a workbench adapter to specific implementations  
     IModelElement in order to get an image and label for a model element?</li>  
329    <li>Can the user benefit from resource mappings in cases where the repository    <li>Can the user benefit from resource mappings in cases where the repository
330      provider isn't mapping aware?</li>      provider isn't mapping aware?</li>
331    <li>What about reposiory providers that cannot provide a remote mapping context?</li>    <li>What about reposiory providers that cannot provide a remote mapping context?</li>
332    <li>What should a model provider do if they canno reliably determine the remote    <li>What should a model provider do if they cannot reliably determine the remote
333      model state?<br>      model state?<br>
334    </li>    </li>
335  </ul>  </ul>

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6