Thomas DeWeese <[EMAIL PROTECTED]> schrieb am 26.12.2004 18:19:56:
> [EMAIL PROTECTED] wrote:
>
> >
> > Bj�rn Stenersen/sinw schrieb am 15.12.2004 15:56:54:
> >
> > > Thomas DeWeese <[EMAIL PROTECTED]> schrieb am 15.12.200413:05:30:
> > >
> > > > [EMAIL PROTECTED] wrote:
> > > >
> > > > > i am trying to implement 'copy&paste' in my application. First i
> > thought
> > > > > everything works great, when i pressed ctrl-c the selected text was
> > > > > copied to the clibboard. Then i realized i do not have press
> > > > > ctrl-c, the text always gets copied to clipboard when a selection
> > > > > is made
>
> > You can look at ConcreteTextSelector, line 272, getSelection() always
> > returns null:-(
>
> Not in my copy of Batik. I did some cleanup of selection to support
> the SVG DOM text selection methods, so perhaps this was done after
> 1.5.1 (getting to be time for a new release huh?). Perhaps if I can
> track down the large memory leak George was talking about... ;)
I also tried a nightly build and debugged it. I thought this was the reason why
a selection made by a double-click is not copied to clipboard.
>
> > > I already had this idea, but won�t work cause copyToClipboard() is
> > > private, same
> > > problem I had with other functions in ConcreteTextSelector.
>
> Well you have access to the source, so you can 'fix' anything you
> want. I'll probably change this and any other private methods to be
> protected.
>
> > I still have the same problem, everything I tried did not work. Does
> > anyone have another idea?
> > Anyway, i think this problem will bother more people than me, what do
> > you think about adding a function like
> >
> > public void setTextSelectionManager(TextSelectionManagerAdapter a);
> >
> > to JGVTComponent in a future release?
>
> Sure, I'd be happy to. Anyone want to write the patch and submit
> it? You might want to open a bugzilla bug on this.
I opened a bug on this. Perhaps i will write the patch if my boss thinks we need this feature :-)
Is there a readme how to contribute a patch?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
- Textselection always copied to clipboard? Bjoern . Stenersen
- Re: Textselection always copied to clipboard? Thomas DeWeese
- Antwort: Re: Textselection always copied to... Bjoern . Stenersen
- Re: Textselection always copied to clipboard? Bjoern . Stenersen
- Re: Textselection always copied to clipboar... Tonny Kohar
- Re: Textselection always copied to clipboar... Thomas DeWeese
- Re: Textselection always copied to clip... Bjoern . Stenersen
- Re: Textselection always copied to ... Thomas DeWeese
- Textselection always copied to... Bjoern . Stenersen
- Re: Textselection always c... Thomas DeWeese
- Re: Textselection alwa... Bjoern . Stenersen
- SVGDocument - Differen... Glenn Thomas Hvidsten
- Re: SVGDocument - Diff... Tonny Kohar
- Re: SVGDocument - Diff... Thomas DeWeese
- Re: SVGDocument - Diff... Glenn Thomas Hvidsten
- Re: Textselection alwa... Thomas DeWeese
