Custom properties Editor with EEF [message #1700207] |
Tue, 30 June 2015 13:49  |
Eclipse User |
|
|
|
Hi,
I need a custom properties editor for my Sirius diagram. This should be possible using EEF.
I'm using Eclipse Kepler with Sirius 2 and I'm doing everything exactly as described here: https://www.eclipse.org/sirius/doc/viewpoint-eef.html but the EEF properties editor is not visualized, I see again the standart properties editor. What am I doing wrong? I've also installed EEF Integration for Sirius, EEF Integration for Sirius Developer Resources, EEF Runtime, EEF Development Tools. I don't understand what's wrong. When I set value of the Leaf Components Super Class to org.eclipse.sirius.eef.components.SiriusAwarePropertiesEditingComponent, there is a compilation error because the class SiriusAwarePropertiesEditingComponent is unknown. Any suggestions?
|
|
|
Re: Custom properties Editor with EEF [message #1700240 is a reply to message #1700207] |
Wed, 01 July 2015 03:09   |
Eclipse User |
|
|
|
Le 30/06/2015 19:49, qwer qwer a écrit :
> Hi,
>
> I need a custom properties editor for my Sirius diagram. This should be
> possible using EEF.
> I'm using Eclipse Kepler with Sirius 2 and I'm doing everything exactly
> as described here: https://www.eclipse.org/sirius/doc/viewpoint-eef.html
This the main doc entry for Sirius 3.0.0, which was recently released
with Mars and whose the minimum supported EEF version is EEF 1.5.
If you are still using Sirius 2.0.x and EEF 1.2, please look for the
corresponding documentation in
https://www.eclipse.org/sirius/doc/2.0.x/viewpoint-eef.html
> but the EEF properties editor is not visualized, I see again the
> standart properties editor. What am I doing wrong? I've also installed
> EEF Integration for Sirius, EEF Integration for Sirius Developer
> Resources, EEF Runtime, EEF Development Tools.
Which version of EEF Runtime and Development tools do you have ?
I don't understand what's
> wrong. When I set value of the Leaf Components Super Class to
> org.eclipse.sirius.eef.components.SiriusAwarePropertiesEditingComponent,
> there is a compilation error because the class
> SiriusAwarePropertiesEditingComponent is unknown. Any suggestions?
SiriusAwarePropertiesEditingComponent has been introduced for Sirius
3.0.0 / EEF 1.5 (See Bug 436833 [2])
Regards
--
Maxime - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1] https://www.eclipse.org/sirius/doc/2.0.x/viewpoint-eef.html
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=436833
|
|
|
|
Re: Custom properties Editor with EEF [message #1700616 is a reply to message #1700487] |
Sun, 05 July 2015 11:23  |
Eclipse User |
|
|
|
So the problem is that EEF generates me the GUI code and I have to implement the data binding and I don't have any idea how. For my meta modell component MyObject, I have a EMFComboViewer. In this EMFComboViewer a list of all created objects in the model of type AnotherObject has to be vizualized and the user has to be able to choose one of them. In the generated class MyObjectPropertiesEditionPartImpl I have the method createAnotherObjectEMFComboViewer(Composite parent) where the EMFComboViewer is created, the content provider is an ArrayContentProvider and here I have to set the Content of the EMFComboViewer in this way: comboViewer.setInput(input); When I create a list of AnotherObject manually and set it as Input for the EMFComboViewer, the list is visualized but there is a ClassCastException - AnotherObjectImpl cannot be cast to org.eclipse.emf.common.util.Enumerator - how should I solve this problem? And the biggest problem is: how to load the list of all created AnotherObject from the model (I don't have to create the list manually). Can you help me, please, it's urgent.
|
|
|
Powered by
FUDForum. Page generated in 0.04029 seconds