Page 1 of 1

Autocompletion "eats" the following character

Posted: Mon Aug 08, 2011 12:22 pm
by dma_k
Dear oXygen XML editor support,

I wonder if the following behaviour is one that is really expected by you.

Suppose I have a text node "This was year 2006." and I want to surround the text "2006" with tag "<date>".
  • I type: "This was year <date>2006." [OK] and place the caret before "."
  • I type "</" (so it is "This was year <date>2006</.") and now oXygen suggests me to close the tag [OK]
  • I confirm closing the tag. The tag is closed, but dot "." is removed (not it is "This was year <date>2006</date>") [WRONG]
More over, oXygen seems to remove all punctuation characters until the next space:
"This was year <date>2006</.,: " → "This was year <date>2006</date> "

That is a bit annoying, as I destroys the original text while making XML annotations.

Also I suppose that oXygen should close the tag without asking, as characters ".,:" are not likely to start the XML tag :)

Additional info:
oXygen XML Editor and XSLT Debugger v12.1.0.v2011031114
Eclipse Helios SR2 v3.6.2.r362_v20110210

Re: Autocompletion "eats" the following character

Posted: Tue Aug 09, 2011 2:50 pm
by dma_k
Works fine in oXygen v12.2.0.v2011080114.

Re: Autocompletion "eats" the following character

Posted: Tue Aug 09, 2011 4:06 pm
by adrian
Hello,

Actually, I managed to reproduce this problem(or something very similar) on v12.2.0.v2011080114. I've logged it to our issue tracking tool and we'll resolve it in the next version of Oxygen.

Regards,
Adrian