Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Removing tree nodes from Git Repositories view
Removing tree nodes from Git Repositories view [message #1734961] Tue, 14 June 2016 08:14
Vlad Acretoaie is currently offline Vlad AcretoaieFriend
Messages: 95
Registered: April 2014
Member
Hi,

I am including the EGit plug-in as part of an RCP application I am developing. However, I would like to hide some parts of the EGit UI.

The aspect I am looking at now is removing some nodes from the containment tree (CommonViewer) displayed in the Git Repositories view. By default, every repository shown in this view has the "Tags" and "References" sub-nodes. How could I prevent these nodes from being shown?

I had some success hiding other UI elements using Activities, but I think this approach does not work in this case (Activities can only hide UI elements declared in a plugin.xml file).

Another approach I have looked into is programmatically adding a ViewerFilter to the CommonViewer. However, it seems this will only allow me to filter an entire repository from the view, not the sub-nodes displayed for each repository.

Thanks in advance!

Cheers,
Vlad
Previous Topic:Unable to connect repository
Next Topic: Bundle Exception - Error when launching Eclipse Application
Goto Forum:
  


Current Time: Fri Apr 19 02:06:22 GMT 2024

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

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

Back to the top