[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-team-dev] Accessing TextMergeViewer Document contents
|
Hi again
On Tue, 20 Mar 2007 10:28:16 -0400
Michael Valenta <Michael_Valenta@xxxxxxxxxx> wrote:
> I would need to know more about your scenario to say whether the
> SourceViewerConfiguration would be of any use to you. Basically, if you
> are creating a subclass of TextMergeViewer, it may have helped you. It
> sounds more like you are using an existing TextMergeViewer embedded in a
> CompareViewerSwithcingPane,
yes that is exactly what I would like to do
> in which case, it will not be of any help. I
> think the best course of action is to log an enhancement request.
Ok I will do this
Thanks
Max
> Michael
>
>
>
>
> Max Weninger <max.weninger@xxxxxxxxxxxxx>
> Sent by: platform-team-dev-bounces@xxxxxxxxxxx
> 20/03/2007 10:19 AM
> Please respond to
> Generic team support framework <platform-team-dev@xxxxxxxxxxx>
>
>
> To
> Generic team support framework <platform-team-dev@xxxxxxxxxxx>
> cc
>
> Subject
> Re: [platform-team-dev] Accessing TextMergeViewer Document contents
>
>
>
>
>
>
> Hi
>
> Thank you for the quick answer.
> But I dont know if I understand this correct :-)
>
> All I have at the moment is a CompareViewerSwitchingPane where
> I can access the TextMergeViewer (or a subclass of it) over
> the getViewer method.
>
> How can I use the SourceViewerConfiguration in this case?
>
> Max
>
> On Tue, 20 Mar 2007 08:55:29 -0400
> Michael Valenta <Michael_Valenta@xxxxxxxxxx> wrote:
>
> > Max,
> >
> > There is no API on TextMergeViewer for accessing the documents of the
> > left, right or ancestor. The only access is provided indirectly through
> > the SourceViewerConfiguration that subclasses provide through the
> > configureTextViewer method. If that mechanism does not meet your needs,
> I
> > would ask you to log an enhancement request against Platform Compare
> > describing your requirments.
> >
> > Michael
> >
> >
> >
> >
> > Max Weninger <max.weninger@xxxxxxxxxxxxx>
> > Sent by: platform-team-dev-bounces@xxxxxxxxxxx
> > 20/03/2007 06:51 AM
> > Please respond to
> > Generic team support framework <platform-team-dev@xxxxxxxxxxx>
> >
> >
> > To
> > platform-team-dev@xxxxxxxxxxx
> > cc
> >
> > Subject
> > [platform-team-dev] Accessing TextMergeViewer Document contents
> >
> >
> >
> >
> >
> >
> > Hi
> >
> > I've been searching for a way to access the actual contents
> > of the Document contained in a TextMergeViewer (left, right)
> >
> > I can of course use IMergeViewerContentProvider.getLeftContent to access
>
> > the contents from ICompareInput but this is updated only on save.
> >
> > But I want to access the contents before saving it e.g. during editing.
> >
> > There is a getContents method and also some getDocument methods
> > in TextMergeViewer but none of them is accessible from the outside.
> >
> > Is there another way I didnt found :-)
> >
> > Thanks
> >
> > Max
> >
> > --
> > _______________________________________________________________
> > \
> > o/\_ DI Max Weninger (Orgulas Sandybanks)
> > <\__,\ Email (max.weninger@xxxxxxxxxxxxx)
> > ">. |
> > ` .-| Jakob-Haringer-Str. 8
> > . \ A-5020 Salzburg - AUSTRIA
> > . \ Tel: +43 662 4579150 - Fax: +43 662 4579156
> > .-|
> > _________._|____________________________________________________
> > _______________________________________________
> > platform-team-dev mailing list
> > platform-team-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/platform-team-dev
> >
>
>
> --
> _______________________________________________________________
> \
> o/\_ DI Max Weninger (Orgulas Sandybanks)
> <\__,\ Email (max.weninger@xxxxxxxxxxxxx)
> ">. |
> ` .-| Jakob-Haringer-Str. 8
> . \ A-5020 Salzburg - AUSTRIA
> . \ Tel: +43 662 4579150 - Fax: +43 662 4579156
> .-|
> _________._|____________________________________________________
> _______________________________________________
> platform-team-dev mailing list
> platform-team-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/platform-team-dev
>
--
_______________________________________________________________
\
o/\_ DI Max Weninger (Orgulas Sandybanks)
<\__,\ Email (max.weninger@xxxxxxxxxxxxx)
">. |
` .-| Jakob-Haringer-Str. 8
. \ A-5020 Salzburg - AUSTRIA
. \ Tel: +43 662 4579150 - Fax: +43 662 4579156
.-|
_________._|____________________________________________________
Attachment:
signature.asc
Description: PGP signature