Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-core-dev] Flexible Resource Model use case


Exclusion is definitely an interesting area to explore. Note that IResource#setHidden is not the best mechanism for implementing this though. setHidden will hide the resource from the UI, but under the covers it will still create the entire subtree and much of the cost will be the same.  You can actually exclude subtrees today using a linked resource pointing to the null file system, but there is no UI for doing it. I think with a bit of UI work, exclusion support could be added with very little effort even in 3.5 if there was interest in doing it.

John



"Terence Parker" <eclipse.tparker@xxxxxxxxx>
Sent by: platform-core-dev-bounces@xxxxxxxxxxx

05/20/2008 01:20 PM

Please respond to
"Eclipse Platform Core component developers list."        <platform-core-dev@xxxxxxxxxxx>

To
platform-core-dev@xxxxxxxxxxx
cc
Subject
[platform-core-dev] Flexible Resource Model use case





I haven't seen the following use case yet so I want to add it to the discussion.
  • A project needs to pull in code that is rooted in folder "A1"
  • A1 is outside the user's workspace
  • A1 contains many subfolders
  • Only a handful of A1's subfolders are a part of the project
  • IFolder.createLink() is called, linking the project to folder A1
  • IFolder.createLink() starts a refresh that traverses _everything_ under A1
  • The cost of traversing all of A1's subfolders is too high--IResource.setHidden() can only be called on subfolders after they have been pulled into the workspace
We need a way to hook into the resource delta creation so that any nested subfolder can be hidden _before_ that subfolder is traversed.

--Terry Parker
_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev


Back to the top