[EMF Forms] Custom controls are not working [message #1696412] |
Tue, 26 May 2015 07:07  |
Eclipse User |
|
|
|
Hey,
i tried your tutorial about custom controls in the view model (eclipsesource: blogs/tutorials/emf-forms-custom-control-areas/) but i am not able to get it to work.
I created all the files as mentioned and in the view model editor i also added a custom control with the bundle+class name. It is not showing any errors but i guess it is not validating anywhere if the class file can be found? Because if i use an arbitrary class name it is also not showing any errors.
The Domain model reference value is not shown, only a little linked-icon is displayed and again, no error messages anywhere.
The view model part as text:
<children xsi:type="org.eclipse.emf.ecp.view.custom.model:CustomControl" name="custom" bundleName="org.eclipse.emf.ecp.view.custom.ui.swt.example" className="org.eclipse.emf.ecp.view.custom.ui.swt.example.MyCustomControl">
<domainModelReference xsi:type="org.eclipse.emf.ecp.view.custom.model:CustomDomainModelReference" bundleName="org.eclipse.emf.ecp.view.custom.ui.swt.example" className="org.eclipse.emf.ecp.view.custom.ui.swt.example.MyCustomDomainModelReference"/>
</children>
The custom control is not shown in the preview editor nor in the launched application and my debug-messages inserted in the renderControl and getNeededDomainModelReferences methods are not shown in the console either.
Is the tutorial outdated? (SWTControl.class is marked as deprecated for example)
Any ideas or hints why it is not working?
Greetings,
Tobi
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07917 seconds