Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Resources and File Scope
Resources and File Scope [message #1862980] Tue, 09 January 2024 19:12 Go to next message
Ray Martin is currently offline Ray MartinFriend
Messages: 22
Registered: May 2023
Junior Member
Below is an excerpt from the EGit help for "Resources".

Resources is a collective term for the projects, folders, and files that exist in the Workbench. The navigation views provide a hierarchical view of resources and allows you to open them for editing. Other tools may display and handle these resources differently.
There are three basic types of resources that exist in the Workbench:
Files
Comparable to files as you see them in the file system.
Folders
Comparable to directories on a file system. In the Workbench, folders are contained in projects or other folders. Folders can contain files and other folders.
Projects
Contain folders and files. Projects are used for builds, version management, sharing, and resource organization. Like folders, projects map to directories in the file system. (When you create a project, you specify a location for it in the file system.)


The reason the term "Resources" caught my attention is because "Resource" appears in the File Scope menu (Fig 1a and 1b) in the History view (Fig 2) shown in the image below. That menu affects which commits are shown in that view. Do the "Files" and "Folders" definitions above apply only to items within the Working Tree in the Git Repositories perspective (Fig 3)? Does the "Projects" definition above refer to the Project Explorer perspective (Fig 4)? I'm confused how those EGit help definitions apply to selections in those perspectives and to items listed in the File Scope menu.

"All Changes in Project" Menu Item Enable Behavior
It seems this menu is only enabled if it detects the same file is selected after each perspective was exited (switching from Git Repositories to Project Explorer and vice versa). This makes it awkward to use.
index.php/fa/43899/0/
Re: Resources and File Scope [message #1863003 is a reply to message #1862980] Wed, 10 January 2024 20:37 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1269
Registered: July 2009
Senior Member
Eclipse IDE defines this resource model consisting of projects, folders and files which can be nested in a hierarchy.

If you select scope
- "All changes of resource" it will show all commits which affected the currently selected resource and resources under the selected resource (if the selected resource is a project or folder)
- "All changes in parent folder" it will show all commits which affected any resource under the parent folder above the selected resource
- "All changes in project" it will show all commits which affected any resource located under the same project as the selected resource
- "All changes in repository" it will show all commits
Previous Topic:"Clean" Included Tracked Files
Next Topic:Track File Location Change
Goto Forum:
  


Current Time: Sun May 05 14:18:23 GMT 2024

Powered by FUDForum. Page generated in 0.03681 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top