This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | pasting elements into an XML file incorrectly opens code completion | ||
---|---|---|---|
Product: | xml | Reporter: | athompson <athompson> |
Component: | Code | Assignee: | Svata Dedic <sdedic> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | CC opens after pasting "dependency" element |
Description
athompson
2013-04-05 22:08:17 UTC
*** This bug has been marked as a duplicate of bug 152237 *** Incorrectly duplicated; apologies. Please provide a scenario in which the CC open is unwanted: copying an entire element (incl. closing tag) or opened element with some content (even whitespace) trailing does not open CC: CC opens if an opening tag is copied to the document at the end of the pasted string, and CC suggests either a child, or closing tag for it. Created attachment 134310 [details]
CC opens after pasting "dependency" element
You can reproduce this by pasting a complete element in a POM file. In this case, I simply copied and pasted the existing javaee dependency.
Aha, OK. The trouble is that the CC is invoked much context. However I can use a trick: when the user types text into the editor manually, typically chars are entered one by one (event fired for each of them). I noticed that no CC: displays if the pasted text ends with a non-whitespace character (e.g. paste block ends right after closing ">" character). So I am changing the autoquery detection so that it will not pop up completion if the typed text ends with whitespace. Let's see if some other scenarios don't break; (not specific to MacOS X) Integrated into 'main-golden', will be available in build *201305252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/de3d79fc00a5 User: Svata Dedic <sdedic@netbeans.org> Log: #228311: do not open cc: when text with trailing ws is inserted Yup. |