Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » AbstractTextEditor and quickdiff
AbstractTextEditor and quickdiff [message #443913] Tue, 07 February 2006 04:32 Go to next message
Eclipse UserFriend
Hi,

We would like to make use of the quick diff functionality in our RCP
application. We have dependencies to the org.eclipse.ui.workbench.texteditor
plugin but not to the org.eclipse.ui.editors plugin.

I have implemented a IQuickDiffReferenceProvider and added it into our
plugin manifest as it is described in the extension point documentation. But
it didn't work. I see that the showChangeInformation(boolean show) method of
the AbstractTextEditor class does nothing. When I look at the source code of
the AbstractDecoratedTextEditor class, I think that I need have some kind of
ChangeRuler but I have no idea to implement such a thing.

So my question is: Is it possible at all to make use of the quick diff
functionality via the workbench.texteditor plugin? If yes, can you please
help me with some example code etc.

Thanks in advance,

Yetkin
Re: AbstractTextEditor and quickdiff [message #444025 is a reply to message #443913] Wed, 08 February 2006 10:39 Go to previous messageGo to next message
Eclipse UserFriend
Yetkin,

if it is not possible for you to use AbstractDecoratedTextEditor due to
plug-in dependency constraints, you could try copying the relevant
methods to your own editor implementation.

There are two API implementations of IChangeRuler in the
org.eclipse.jface.text plug-in which you may use (and are used by
AbstractDecoratedTextEditor):

org.eclipse.jface.text.source.ChangeRulerColumn
org.eclipse.jface.text.source.LineNumberChangeRulerColumn

HTH, tom

Yetkin Oezkucur wrote:
> Hi,
>
> We would like to make use of the quick diff functionality in our RCP
> application. We have dependencies to the org.eclipse.ui.workbench.texteditor
> plugin but not to the org.eclipse.ui.editors plugin.
>
> I have implemented a IQuickDiffReferenceProvider and added it into our
> plugin manifest as it is described in the extension point documentation. But
> it didn't work. I see that the showChangeInformation(boolean show) method of
> the AbstractTextEditor class does nothing. When I look at the source code of
> the AbstractDecoratedTextEditor class, I think that I need have some kind of
> ChangeRuler but I have no idea to implement such a thing.
>
> So my question is: Is it possible at all to make use of the quick diff
> functionality via the workbench.texteditor plugin? If yes, can you please
> help me with some example code etc.
>
> Thanks in advance,
>
> Yetkin Özkucur| Software Engineer
> Yetkin.Oezkucur@asg.com
>
> ASG | asg.com
> Straßburger Str. 34
> D-09120 Chemnitz, Germany
>
> Tel: +49 371 52 302-39
> Fax: +49 371 52 302-11
>
> The premier source for understanding,
> managing, and extending existing systems
>
>
Re: AbstractTextEditor and quickdiff [message #444396 is a reply to message #444025] Wed, 15 February 2006 03:42 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tom,

Thank you for your hint. I have now managed to install a ruler, which shows
the deleted, added, changed lines etc.

But what I still couldn't manage is, I can't bring ruler to have hover
showing changed text. I've already copied the TextChangeHover class from
AbstractDecoratedTextEditor but it seems that I miss something.

Thanks in advance,
Yetkin

"Tom Eicher" <eclipse@tom.eicher.name> wrote in message
news:dsd3bo$447$1@utils.eclipse.org...
> Yetkin,
>
> if it is not possible for you to use AbstractDecoratedTextEditor due to
> plug-in dependency constraints, you could try copying the relevant
> methods to your own editor implementation.
>
> There are two API implementations of IChangeRuler in the
> org.eclipse.jface.text plug-in which you may use (and are used by
> AbstractDecoratedTextEditor):
>
> org.eclipse.jface.text.source.ChangeRulerColumn
> org.eclipse.jface.text.source.LineNumberChangeRulerColumn
>
> HTH, tom
>
> Yetkin Oezkucur wrote:
> > Hi,
> >
> > We would like to make use of the quick diff functionality in our RCP
> > application. We have dependencies to the
org.eclipse.ui.workbench.texteditor
> > plugin but not to the org.eclipse.ui.editors plugin.
> >
> > I have implemented a IQuickDiffReferenceProvider and added it into our
> > plugin manifest as it is described in the extension point documentation.
But
> > it didn't work. I see that the showChangeInformation(boolean show)
method of
> > the AbstractTextEditor class does nothing. When I look at the source
code of
> > the AbstractDecoratedTextEditor class, I think that I need have some
kind of
> > ChangeRuler but I have no idea to implement such a thing.
> >
> > So my question is: Is it possible at all to make use of the quick diff
> > functionality via the workbench.texteditor plugin? If yes, can you
please
> > help me with some example code etc.
> >
> > Thanks in advance,
> >
> > Yetkin
Re: AbstractTextEditor and quickdiff [message #444548 is a reply to message #444396] Fri, 17 February 2006 06:51 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

Yetkin Oezkucur wrote:

>Hi Tom,
>
>Thank you for your hint. I have now managed to install a ruler, which shows
>the deleted, added, changed lines etc.
>
>But what I still couldn't manage is, I can't bring ruler to have hover
>showing changed text. I've already copied the TextChangeHover class from
>AbstractDecoratedTextEditor but it seems that I miss something.
>
>
See AbstractDecoratedTextEditor.createChangeHover(...)

Dani

>Thanks in advance,
>Yetkin
>
>"Tom Eicher" <eclipse@tom.eicher.name> wrote in message
>news:dsd3bo$447$1@utils.eclipse.org...
>
>
>>Yetkin,
>>
>>if it is not possible for you to use AbstractDecoratedTextEditor due to
>>plug-in dependency constraints, you could try copying the relevant
>>methods to your own editor implementation.
>>
>>There are two API implementations of IChangeRuler in the
>>org.eclipse.jface.text plug-in which you may use (and are used by
>>AbstractDecoratedTextEditor):
>>
>>org.eclipse.jface.text.source.ChangeRulerColumn
>>org.eclipse.jface.text.source.LineNumberChangeRulerColumn
>>
>>HTH, tom
>>
>>Yetkin Oezkucur wrote:
>>
>>
>>>Hi,
>>>
>>>We would like to make use of the quick diff functionality in our RCP
>>>application. We have dependencies to the
>>>
>>>
>org.eclipse.ui.workbench.texteditor
>
>
>>>plugin but not to the org.eclipse.ui.editors plugin.
>>>
>>>I have implemented a IQuickDiffReferenceProvider and added it into our
>>>plugin manifest as it is described in the extension point documentation.
>>>
>>>
>But
>
>
>>>it didn't work. I see that the showChangeInformation(boolean show)
>>>
>>>
>method of
>
>
>>>the AbstractTextEditor class does nothing. When I look at the source
>>>
>>>
>code of
>
>
>>>the AbstractDecoratedTextEditor class, I think that I need have some
>>>
>>>
>kind of
>
>
>>>ChangeRuler but I have no idea to implement such a thing.
>>>
>>>So my question is: Is it possible at all to make use of the quick diff
>>>functionality via the workbench.texteditor plugin? If yes, can you
>>>
>>>
>please
>
>
>>>help me with some example code etc.
>>>
>>>Thanks in advance,
>>>
>>>Yetkin Özkucur| Software Engineer
>>>Yetkin.Oezkucur@asg.com
>>>
>>>ASG | asg.com
>>>Straßburger Str. 34
>>>D-09120 Chemnitz, Germany
>>>
>>>Tel: +49 371 52 302-39
>>>Fax: +49 371 52 302-11
>>>
>>>The premier source for understanding,
>>>managing, and extending existing systems
>>>
>>>
>>>
>>>
>
>
>
>
Previous Topic:global undo
Next Topic:Repaint Issues in RCP
Goto Forum:
  


Current Time: Sun Aug 31 05:20:37 EDT 2025

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

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

Back to the top