UI dependencies in egit core [message #503180] |
Fri, 11 December 2009 10:06 |
|
Hi,
I find a dependency to org.eclipse.ui from the org.eclipse.egit.core. Looking closer I see that some operations
implement the IRunnableWithProgress interface from jface.
Since this makes it hard to use the egit.core in a headless environment, I would suggest you remove that dependency and
instead wrap the affected code in an IRunnableInProgress when using it in the org.eclipse.egit.ui component. An
alternative might be to use the IWorkspaceRunnable instead and then wrap that in a IRunnableWithProgress in the UI. That
way, you free the headless part from the need of a large number of UI bundles that are never needed.
Regards,
Thomas Hallgren
|
|
|
|
Re: UI dependencies in egit core [message #503191 is a reply to message #503185] |
Fri, 11 December 2009 10:43 |
|
On 2009-12-11 11:26, Chris wrote:
> Hi,
>
> if you intend to run in a headless environment wouldn't it be better to
> depend on the jgit only? In jgit we surely don't have this dependency.
>
That would likely mean duplicating a lot of code since I need to find the repositories used in the workspace, check-out
projects and share them, etc.
Regards,
Thomas Hallgren
|
|
|
|
|
Re: UI dependencies in egit core [message #576613 is a reply to message #576585] |
Fri, 11 December 2009 10:43 |
|
On 2009-12-11 11:26, Chris wrote:
> Hi,
>
> if you intend to run in a headless environment wouldn't it be better to
> depend on the jgit only? In jgit we surely don't have this dependency.
>
That would likely mean duplicating a lot of code since I need to find the repositories used in the workspace, check-out
projects and share them, etc.
Regards,
Thomas Hallgren
|
|
|
|
Powered by
FUDForum. Page generated in 0.03874 seconds