BPMN2 validator for custom file extensions [message #1625541] |
Fri, 20 February 2015 08:06  |
Eclipse User |
|
|
|
Hi,
I want the BPMN2 validator run for BPMN2 files with my custom file extension. For some reason this is not working. I successfully associated an editor that extends the BPMN2 editor with my file extension.
I also registered an extension for the extension point "org.eclipse.core.contenttype.contentTypes" for my file extension.
However, the BPMN2 builder/project validator is either not called at all or doesn´t recognize my file extension as valid BPMN2 file.
BPMN2 builder not called at all:
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type base-type="org.eclipse.core.runtime.xml"
id="org.eclipse.bpmn2.content-type.xml"
name="%content-type.name"
file-extensions="myextension"
priority="normal">
<describer class="org.eclipse.bpmn2.modeler.ui.BPMN2ContentDescriber">
</describer>
</content-type>
</extension>
Not recognized as BPMN2 file in BPMN2 builder:
<extension point="org.eclipse.core.contenttype.contentTypes">
<content-type base-type="org.eclipse.bpmn2.content-type.xml"
id="myid"
name="%content-type.name"
file-extensions="myextension"
priority="normal">
<describer class="org.eclipse.bpmn2.modeler.ui.BPMN2ContentDescriber">
</describer>
</content-type>
</extension>
I figured out that method BPMN2ProjectValidator.isBPMN2File is only checking for the content type id, but does not take the base type id into account which might help here.
Is there any other suggestion how I can make the validator run for custom extensions of BPMN2 files?
Best regards,
Stefan
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04388 seconds