Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Custom properties Editor with EEF
Custom properties Editor with EEF [message #1700207] Tue, 30 June 2015 17:49 Go to next message
qwer qwer is currently offline qwer qwerFriend
Messages: 9
Registered: June 2015
Junior Member
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 07:09 Go to previous messageGo to next message
Maxime Porhel is currently offline Maxime PorhelFriend
Messages: 516
Registered: July 2009
Location: Nantes, France
Senior Member
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


Maxime Porhel - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Custom properties Editor with EEF [message #1700487 is a reply to message #1700240] Thu, 02 July 2015 21:37 Go to previous messageGo to next message
qwer qwer is currently offline qwer qwerFriend
Messages: 9
Registered: June 2015
Junior Member
Hi,

thank you! It works with Eclipse Mars, Sirius 3.0.0 and EEF 1.5. I can see the EEF property tabs. Now I have another probem: the data from my model file is not loaded properly. When I click on (1) a dialog with a list of elements should appear and the user should be able to chooce elements from this list but the list is always empty and I don't understand why. I tried with all widgets - combo, table ... and all variations but it doesn't work. The list is loaded properly in the standard semantic property tab. How should I solve this problem? And this problem appears everywhere a list of elements should be shown.

http://dl.dropboxusercontent.com/u/51877953/1.PNG
http://dl.dropboxusercontent.com/u/51877953/2.PNG

[Updated on: Sun, 05 July 2015 15:27]

Report message to a moderator

Re: Custom properties Editor with EEF [message #1700616 is a reply to message #1700487] Sun, 05 July 2015 15:23 Go to previous message
qwer qwer is currently offline qwer qwerFriend
Messages: 9
Registered: June 2015
Junior Member
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.
Previous Topic:Problem with copy and paste node in diagram
Next Topic:Using types from additional MetaModels
Goto Forum:
  


Current Time: Fri Apr 26 14:20:50 GMT 2024

Powered by FUDForum. Page generated in 0.03782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top