|BPMN2 validator for custom file extensions [message #1625541]
||Fri, 20 February 2015 13:06
| Stefan Henke
Registered: July 2009
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:
Not recognized as BPMN2 file in BPMN2 builder:
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?
|Re: BPMN2 validator for custom file extensions [message #1634952 is a reply to message #1634783]
||Wed, 25 February 2015 14:45
The reason the validator is not being called is because the BPMN2 project builder (which does the validation) has not been added to your .project file. Your .project file should look something like this:
<?xml version="1.0" encoding="UTF-8"?>
You can have the editor automatically configure the .project by setting a Project property User Preference: right-click on the project, then Properties->BPMN2 and enable "Check if project is configured for BPMN2 Project Nature".
BTW, any chance you could migrate to version 1.0.4.Final? This is the latest version of the editor for Kepler and includes many bug fixes.
Powered by FUDForum
. Page generated in 0.02278 seconds