Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » text copy/paste background annoying problem
text copy/paste background annoying problem [message #231462] Mon, 18 May 2009 07:57 Go to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_0039_01C9D79F.135131F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all, I have a question on editor (StructuredTextEditor) COPY/PASTE

I have extended this editor to use it in my rcp application ... honestly =
I have seen the same problem around eclipse ...

=20

The problem is

=20

Let's say that this editor have got the following text displayed:

=20

<?xml version=3D"1.0" encoding=3D"utf-8"?>

<privileges/>

=20

When u copy and paste this text (SELECT ALL) in an editor that support =
colors and formatting it keeps the right colors and formatting. Perfect.

=20

The question is. why if I just select a piece of this text and copy it =
somewhere else it will come out with a dark blue background?

=20

encoding=3D"utf-8"



=20

Ciao=20

Kar

------=_NextPart_000_0039_01C9D79F.135131F0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o =3D "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dunicode">
<META content=3D"MSHTML 6.00.6001.18226" name=3DGENERATOR></HEAD>
<BODY id=3DMailContainerBody=20
style=3D"PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" =
leftMargin=3D0=20
topMargin=3D0 CanvasTabStop=3D"true" name=3D"Compose message area">
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><FONT =
face=3DCalibri>Hi all, I have=20
a question on editor (</FONT><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: silver; COLOR: black; FONT-FAMILY: =
'Courier New'; mso-highlight: silver">StructuredTextEditor</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">)=20
COPY/PASTE<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">I =
have=20
extended this editor to use it in my rcp application ... honestly I have =
seen=20
the same problem around eclipse ...<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">The =
problem=20
is<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">Let's say that=20
this editor have got the following text displayed:<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal=20
style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">&lt;?</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier =
New'">xml=20
</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier =
New'">version</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">"1.0"=20
</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #7f007f; FONT-FAMILY: 'Courier =
New'">encoding</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">"utf-8"</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">?&gt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal=20
style=3D"MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">&lt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #3f7f7f; FONT-FAMILY: 'Courier =
New'">privileges</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: teal; FONT-FAMILY: 'Courier =
New'">/&gt;</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">When =
u copy=20
and paste this text (SELECT ALL) in an editor that support colors and =
formatting=20
it keeps the right colors and formatting. Perfect.<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">The =
question=20
is. why if I just select a piece of this text and copy it somewhere else =
it will=20
come out with a dark blue background?<o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier =
New'"><o:p>&nbsp;</o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: #7f007f; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">encoding</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: black; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">=3D</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; BACKGROUND: blue; COLOR: #2a00ff; FONT-FAMILY: =
'Courier New'; mso-highlight: blue">"utf-8"</SPAN><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p></o:p></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt">
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p><FONT=20
face=3DCalibri color=3D#000000 size=3D3></FONT></o:p></SPAN></P><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'"><o:p><FONT=20
face=3DCalibri color=3D#000000 size=3D3></FONT></o:p></SPAN>&nbsp;
<P></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">Ciao=20
</SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN: 0in 0in 0pt"><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: #2a00ff; FONT-FAMILY: 'Courier =
New'">Kar<o:p></o:p></SPAN></P></BODY></HTML>

------=_NextPart_000_0039_01C9D79F.135131F0--
Re: text copy/paste background annoying problem [message #231753 is a reply to message #231462] Thu, 21 May 2009 21:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2310
Registered: July 2009
Senior Member
Kar wrote:
> Hi all, I have a question on editor (StructuredTextEditor) COPY/PASTE
>
> I have extended this editor to use it in my rcp application ... honestly
> I have seen the same problem around eclipse ...

If there is an answer, it will be to your original post in
eclipse.platform 4 days earlier. My guess is it's partially related
to where you're pasting it, and how i interprets the type of data
it's pulling off the clipboard.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: text copy/paste background annoying problem [message #231770 is a reply to message #231753] Fri, 22 May 2009 09:03 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Sorry if I have bothered anyone ...
the point is that I have extended an editor from the wtp plug-in and just
because I did not get any answer from the platform I was hoping to get more
from here.

about the target editor ... this is actually any editor ... from Microsoft
word editor to any editor that deal with rich text formatting.

sorry again
Kar


"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:gv4fdj$7im$1@build.eclipse.org...
> Kar wrote:
>> Hi all, I have a question on editor (StructuredTextEditor) COPY/PASTE
>>
>> I have extended this editor to use it in my rcp application ... honestly
>> I have seen the same problem around eclipse ...
>
> If there is an answer, it will be to your original post in
> eclipse.platform 4 days earlier. My guess is it's partially related to
> where you're pasting it, and how i interprets the type of data it's
> pulling off the clipboard.
>
> --
> ---
> Nitin Dahyabhai
> Eclipse WTP Source Editing
> IBM Rational
Re: text copy/paste background annoying problem [message #231834 is a reply to message #231770] Mon, 25 May 2009 15:32 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
Kar wrote:
> Sorry if I have bothered anyone ...
> the point is that I have extended an editor from the wtp plug-in and
> just because I did not get any answer from the platform I was hoping
> to get more from here.
>
> about the target editor ... this is actually any editor ... from
> Microsoft word editor to any editor that deal with rich text formatting.
This is a known issue (see bugzilla for details) when using
folding/projection: copy also needs to copy the folded text but there's
currently no API to build the RTF for that which is normally done by the
StyledText widget. We've added special code to handle the case when
everything is selected.

Dani
>
> sorry again
> Kar
>
>
> "Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
> news:gv4fdj$7im$1@build.eclipse.org...
>> Kar wrote:
>>> Hi all, I have a question on editor (StructuredTextEditor) COPY/PASTE
>>>
>>> I have extended this editor to use it in my rcp application ...
>>> honestly I have seen the same problem around eclipse ...
>>
>> If there is an answer, it will be to your original post in
>> eclipse.platform 4 days earlier. My guess is it's partially related
>> to where you're pasting it, and how i interprets the type of data
>> it's pulling off the clipboard.
>>
>> --
>> ---
>> Nitin Dahyabhai
>> Eclipse WTP Source Editing
>> IBM Rational
>
Previous Topic:Apache Http Server Integration
Next Topic:How to set focus in org.eclipse.wst.xml.xpath2.processor.jar
Goto Forum:
  


Current Time: Thu Oct 23 00:57:00 GMT 2014

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

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