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: 93
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:How to Create a Note for a BLOB Object?
Next Topic: Bundle Exception - Error when launching Eclipse Application
Goto Forum:
  


Current Time: Sat May 27 17:38:48 GMT 2017

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

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