Kbase P123556: The .htm file does not behave as .html file in OE Architect after file association with the OpenEdge
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/09/2008 |
|
Status: Verified
SYMPTOM(s):
The .htm file does not behave as .html file in OE Architect after file association with the OpenEdge .p Editor
FACT(s) (Environment):
OpenEdge 10.1B
Windows NT 32 Intel/Windows 2000
CAUSE:
Bug# OE00150218
FIX:
Upgrade to OE10.1B03 or later
Or,
if upgrade is not possible use the following workaround to fix this issue:
In order make the .htm file extension to work like .html file two modifications on two different files are required - one to get the color coding of ABL and the other one to use check syntax and compile options for the .htm files.
1. To get the color coding of ABL:
You need to indicate that the htm is an extension for the document participant and the document provider components that the editor use. This is done in the plugin.xml file in
%DLC%\oeide\architect\eclipse\plugins\com.openedge.pdt.text_10.1.1.00 directory.
The section of the code that needs to be changed:
<extension point="org.eclipse.core.filebuffers.documentSetup">
<participant class="com.openedge.pdt.text.editor.OEDocumentSetupParticipant" extensions="p,w,i,cls,pgen,html"/>
</extension>
<extension point="org.eclipse.ui.editors.documentProviders">
<provider class="com.openedge.pdt.text.editor.OEDocumentProvider" extensions="p,w,i,cls,pgen,html"
id="com.openedge.pdt.text.editor.OEDocumentProvider"
inputTypes="com.openedge.pdt.core.ui.ExternalFileEditorInput"/>
</extension>
After the change it should look like the following:
<extension point="org.eclipse.core.filebuffers.documentSetup">
<participant class="com.openedge.pdt.text.editor.OEDocumentSetupParticipant" extensions="p,w,i,cls,pgen,html,htm"/>
</extension>
<extension point="org.eclipse.ui.editors.documentProviders">
<provider class="com.openedge.pdt.text.editor.OEDocumentProvider" extensions="p,w,i,cls,pgen,html,htm"
id="com.openedge.pdt.text.editor.OEDocumentProvider"
inputTypes="com.openedge.pdt.core.ui.ExternalFileEditorInput"/>
</extension>
2. In order for the Check Syntax and Compile to work for .htm files when associated with the OpenEdge .p Editor as it works for .html files. You need to change the file named "_idecompile101b.p" in the runtime directory under the %DLC%\oeide\architect\eclipse\plugins\com.openedge.pdt.text_10.1.1.00 plugin.
Edit the "_idecompile101b.p" and replace .html by .htm* in the two MATCHES expressions.
3. Save both files
4. Open "OE Architect Clean" from the menu.