Bug 220516 - CA: in <style></style> tags content assist doesn't replace highlighted text
Summary: CA: in <style></style> tags content assist doesn't replace highlighted text
Status: VERIFIED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.html (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.1   Edit
Assignee: Nick Sandonato CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2008-02-27 03:51 EST by Andrei Scherbovich CLA
Modified: 2008-08-19 15:21 EDT (History)
0 users

See Also:
thatnitind: review+


Attachments
Fixes content assist to replace highlighted text (10.95 KB, patch)
2008-03-20 12:21 EDT, Nick Sandonato CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Scherbovich CLA 2008-02-27 03:51:09 EST
Build ID: M20070921-1145

Steps To Reproduce:
1. EXECUTE: create some style in jsp file:
               <style type="text/css">
                 h3 {
                  background: lime;
                  color: red;
                 }
               </style>
2. EXECUTE: highlight "background" and press ctrl+space
3. ASSERT: content assist appears with possible fields
4. EXECUTE: choose any ("font" e.g.)
5. ASSERT: "background" wasn't replaced with "font". We got the next code instead:
               <style type="text/css">
                h3 {
                  font: background: lime;
                  color: red;
                }
               </style>


More information:
Comment 1 Nick Sandonato CLA 2008-03-20 12:21:55 EDT
Created attachment 93039 [details]
Fixes content assist to replace highlighted text

The CSS Content Assist Context is made aware of if a region is selected or not.
Comment 2 Nitin Dahyabhai CLA 2008-07-17 01:18:40 EDT
released
Comment 3 Nick Sandonato CLA 2008-08-19 15:21:24 EDT
Verified in 3.0.1-20080818032401.