Bug 13087 - PDE schema editor does not correctly handle <> markup tags in text
Summary: PDE schema editor does not correctly handle <> markup tags in text
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M6   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-09 12:39 EDT by Vlad Klicnik CLA
Modified: 2002-04-30 19:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Klicnik CLA 2002-04-09 12:39:56 EDT
20020402 Win2K

I was trying to use the schema editor to create my extension point docs. I was 
trying to enter an example of the markup. If I enter "<example>" into the text 
widget the source page shows it as &lt.example&gt. (which is what I would have 
expected) .... BUT the builder writes it as <example> into the resulting htm l 
and the markup example does not show. Need to be able to distinguish when <> 
tags are entered as formatting information and when they are entered as text.

Also, no matter how hard I tred to insert indentation into my example, when I 
save/ refresh it gets lost. In particulat, for examples, I'd like to be able to 
control the indentation.
Comment 1 Vlad Klicnik CLA 2002-04-09 12:47:36 EDT
To get what I wanted I had to manually enter the following completely unusable 
text:

<code>
&lt;extension<br>
&nbsp;&nbsp;&nbsp;id="packaged"<br>
&nbsp;&nbsp;&nbsp;point="org.eclipse.update.core.featureTypes"&gt;<br>
<br>
&nbsp;&nbsp;&nbsp;&lt;feature-factory<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;class="org.eclipse.update.internal.core.Feat
urePackagedFactory"&gt;<br>
&nbsp;&nbsp;&nbsp;&lt;/feature-factory&gt;<br>
&lt;/extension&gt;<br>
</code>
Comment 2 Vlad Klicnik CLA 2002-04-09 12:49:29 EDT
The other problem was that although the drop menu has cut/ copy/ paste actions, 
they were never enabled. I had to use win keyboard shortcuts (shift-insert, 
control-insert) to get the job done
Comment 3 Dejan Glozic CLA 2002-04-09 12:56:38 EDT
Take a look in some of the *.mxsd files in 'schema/map' directory in PDE. You 
will see a 'trick' - the key is to use <pre></pre> tags.
Comment 4 Dejan Glozic CLA 2002-04-16 17:45:56 EDT
Must fix cut/copy. Code sample is correctly handled for all text between <pre> 
and </pre> tags.
Comment 5 Dejan Glozic CLA 2002-04-30 19:22:39 EDT
Copy/Paste fixed both in the main and Documentation pages.