Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Egit library ( get repository name by project)
Egit library ( get repository name by project) [message #990690] Thu, 13 December 2012 19:53 Go to next message
Floriano Fauzzi is currently offline Floriano FauzziFriend
Messages: 6
Registered: August 2012
Junior Member
Hi all,
I have a project (IProject variable) that is a project on package explorer.
Thanks of getPersistentProperties() methods, I know that this a project with Git provider imported from GitHub.
Now I need to know how can i find the repository name associated of project.
I try to imported the following package:
1. org.eclipse.team
2. org.eglipse.egit (because egit is istalled on eclipse)

but without javadoc and example I dont find the correct methods.
Is there anyone that can help me?

Re: Egit library ( get repository name by project) [message #991387 is a reply to message #990690] Tue, 18 December 2012 20:36 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Floriano Fauzzi skrev 2012-12-13 20.53:
> Hi all,
> I have a project (IProject variable) that is a project on package explorer.
> Thanks of getPersistentProperties() methods, I know that this a project with Git provider imported from GitHub. Now I need to know how can i find the repository name
> associated of project.
> I try to imported the following package:
> 1. org.eclipse.team
> 2. org.eglipse.egit (because egit is istalled on eclipse)
>
> but without javadoc and example I dont find the correct methods.
> Is there anyone that can help me?

Use the RepositoryMapping class for this, specifically you want to use the getMapping() method.

-- robin
Previous Topic:How to use Egit by code
Next Topic:Synchronize View remains empty despite lots of unstaged changes?
Goto Forum:
  


Current Time: Tue Apr 23 17:45:42 GMT 2024

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

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

Back to the top