Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Refreshing quickdiff markers
Refreshing quickdiff markers [message #325137] Sun, 10 February 2008 16:21 Go to next message
Eclipse UserFriend
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 #325160 is a reply to message #325137] Mon, 11 February 2008 16:01 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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().

Dani

>-- robin
>
>
>
Re: Refreshing quickdiff markers [message #325339 is a reply to message #325160] Thu, 14 February 2008 21:08 Go to previous messageGo to next message
Eclipse UserFriend
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 #325350 is a reply to message #325339] Fri, 15 February 2008 08:45 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Robin Rosenberg wrote:
> 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?
>
Doesn't have what? What is "your" provider?

Dani
> -- robin
>
Re: Refreshing quickdiff markers [message #325393 is a reply to message #325350] Sat, 16 February 2008 22:50 Go to previous messageGo to next message
Eclipse UserFriend
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 #325413 is a reply to message #325393] Mon, 18 February 2008 11:03 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Robin Rosenberg wrote:
> 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
>
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()

Dani
>
> -- robin
>
>
Re: Refreshing quickdiff markers [message #325605 is a reply to message #325413] Fri, 22 February 2008 23:49 Go to previous message
Eclipse UserFriend
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
Previous Topic:Import as a project
Next Topic:Problem with .target file
Goto Forum:
  


Current Time: Fri Jul 19 14:31:22 GMT 2024

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

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

Back to the top