Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Subversive » Using subversive plugin in another plugin
Using subversive plugin in another plugin [message #484323] Sun, 06 September 2009 14:28 Go to next message
Eclipse User
Originally posted by: e0628060.student.tuwien.ac.at

Hi!

I am currently developing an eclipse plugin, which is using features of
subversive.

My problem: I am opening the compare editor for two revisions of a file via
the subversive plugin. Now my problem is, that I want to use markers to
display important information. The resources I am working with are derived
from IRepositoryResource. In Eclipse markers can only be applied to
resources, which are derived from IResource (like IFile). So I don't know
how to display the markers in the compare editor using
IRespositoryResourceS.

Does anyone have an example for me, how this can work? Maybe someone can
explain, how the subversive plugin displays those markers (code examples
from svn would be very good).

If you need more information, please tell me!

Thanks!

regards,
Christian.
Re: Using subversive plugin in another plugin [message #487711 is a reply to message #484323] Thu, 24 September 2009 04:27 Go to previous message
Igor Burilo is currently offline Igor Burilo
Messages: 435
Registered: July 2009
Senior Member
Hello Christian,

In order to show differences between 2 repository resources, Subversive uses
Eclipse compare framework:
CompareUI.openCompareEditor(CompareEditorInput input), for examples how
Subversive implements CompareEditorInput you can see its hierarchy.
I don't know whether compare framework allows to show custom markers or not,
so refer to its documentation for more details.

> Hi!
>
> I am currently developing an eclipse plugin, which is using features of
> subversive.
>
> My problem: I am opening the compare editor for two revisions of a file
> via
> the subversive plugin. Now my problem is, that I want to use markers to
> display important information. The resources I am working with are derived
> from IRepositoryResource. In Eclipse markers can only be applied to
> resources, which are derived from IResource (like IFile). So I don't know
> how to display the markers in the compare editor using
> IRespositoryResourceS.
>
> Does anyone have an example for me, how this can work? Maybe someone can
> explain, how the subversive plugin displays those markers (code examples
> from svn would be very good).
>
> If you need more information, please tell me!
>
> Thanks!
>
> regards,
> Christian.
>
Previous Topic:Show tags in history
Next Topic:Subversive in RCP app
Goto Forum:
  


Current Time: Fri Aug 01 12:04:05 EDT 2014

Powered by FUDForum. Page generated in 0.01473 seconds