Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Verify if a project come from repository (get it programmatically)
Verify if a project come from repository (get it programmatically) [message #990261] Tue, 11 December 2012 16:10 Go to next message
Floriano Fauzzi is currently offline Floriano Fauzzi
Messages: 6
Registered: August 2012
Junior Member
Hi all,
with this method

ResourcesPlugin.getWorkspace().getRoot().getProjects();

I can obtain all project that are in the project explorer view.
I need to know if there is a way to verify if one project was imported from a repository ( with Egit plugin, for example).

If, in the project explorer view, I can see more than one project, how can I filter to have only project that came back from GitHub ? (for example).
Thanks for your time.
Re: Verify if a project come from repository (get it programmatically) [message #990266 is a reply to message #990261] Tue, 11 December 2012 16:28 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 565
Registered: July 2009
Senior Member
Floriano,

you may want to use Team API to find out whether a project is _shared_
with a source code repository. See
org.eclipse.team.core.RepositoryProvider.isShared() for example.

Most things beyond that are specific to the respective team provider
implementation (e.g. EGit, CVS Team Support, ...)

HTH
Rüdiger

On 11.12.2012 17:10, Floriano Fauzzi wrote:
> Hi all,
> with this method
> ResourcesPlugin.getWorkspace().getRoot().getProjects();
>
> I can obtain all project that are in the project explorer view. I need
> to know if there is a way to verify if one project was imported from a
> repository ( with Egit plugin, for example).
>
> If, in the project explorer view, I can see more than one project, how
> can I filter to have only project that came back from GitHub ? (for
> example).
> Thanks for your time.
>
--
Rüdiger Herrmann
http://codeaffine.com
Re: Verify if a project come from repository (get it programmatically) [message #990602 is a reply to message #990266] Thu, 13 December 2012 11:51 Go to previous messageGo to next message
Floriano Fauzzi is currently offline Floriano Fauzzi
Messages: 6
Registered: August 2012
Junior Member
Hi Rüdiger,
thanks for the answer. I can try to import org.eclipse.team.core but eclipse(juno) can't find it?
Where can I download that package?
Thanks for your time.
Floriano
Re: Verify if a project come from repository (get it programmatically) [message #990643 is a reply to message #990602] Thu, 13 December 2012 14:58 Go to previous message
Floriano Fauzzi is currently offline Floriano Fauzzi
Messages: 6
Registered: August 2012
Junior Member
Ok, i found the library, but I can't try to get, from a shared project, the name of a repository that is linked to it.
Please help me.
Previous Topic:Missing Jar Files
Next Topic:Class extending WorkbenchWindowControlContribution not invoking isVisible() method in Juno
Goto Forum:
  


Current Time: Sat Oct 25 07:11:45 GMT 2014

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

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