Refreshing quickdiff markers [message #325137] |
Sun, 10 February 2008 16:21 |
Eclipse User |
|
|
|
Originally posted by: robin.rosenberg.lists.dewire.com
Hi,
How can my plugin make quickdiff refresh the display. The content of the
editor has not changed, but the reference against which the diff
shall be computed has.
-- robin
|
|
|
|
Re: Refreshing quickdiff markers [message #325339 is a reply to message #325160] |
Thu, 14 February 2008 21:08 |
Eclipse User |
|
|
|
Originally posted by: robin.rosenberg.lists.dewire.com
Daniel Megert wrote:
> Robin Rosenberg wrote:
>
>>Hi,
>>
>>How can my plugin make quickdiff refresh the display. The content of the
>>editor has not changed, but the reference against which the diff
>>shall be computed has.
>>
>>
> If you have a reference to the line differ you can call suspend() and
> then resume().
My quickdiff provider doesn't have that. How can I get a reference to it?
-- robin
|
|
|
|
Re: Refreshing quickdiff markers [message #325393 is a reply to message #325350] |
Sat, 16 February 2008 22:50 |
Eclipse User |
|
|
|
Originally posted by: robin.rosenberg.lists.dewire.com
Daniel Megert wrote:
> Robin Rosenberg wrote:
>> Daniel Megert wrote:
>>> Robin Rosenberg wrote:
>>>> How can my plugin make quickdiff refresh the display. The content of
>>>> the editor has not changed, but the reference against which the diff
>>>> shall be computed has.
>>> If you have a reference to the line differ you can call suspend() and
>>> then resume().
>> My quickdiff provider doesn't have that. How can I get a reference to it?
> Doesn't have what? What is "your" provider?
This one
http://repo.or.cz/w/egit.git?a=blob ;f=org.spearce.egit.ui/src/org/spearce/egit/ui/internal/deco rators/GitQuickDiffProvider.java;h=a9eb1bcb7ee10f43110936da5 5a0dbff5ec8c49a;hb=3d8ae50fe0b2a3dd77d73c76cd53b4045dd50362
for the Eclipse Git plugin. The top of the repository is at
http://repo.or.cz/w/egit.git
-- robin
|
|
|
|
Re: Refreshing quickdiff markers [message #325605 is a reply to message #325413] |
Fri, 22 February 2008 23:49 |
Eclipse User |
|
|
|
Originally posted by: robin.rosenberg.lists.dewire.com
Daniel Megert wrote:
> You need to get the line differ and not the provider. Take a look at
> this example code:
>
org.eclipse.ui.internal.texteditor.quickdiff.QuickDiffRestor eAction.getDiffer()
>
That looks very interesting. Thanks.
-- robin
|
|
|
Powered by
FUDForum. Page generated in 0.04263 seconds