Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Item checklist based on EMF
Item checklist based on EMF [message #896959] Fri, 20 July 2012 14:23 Go to next message
Yumin Zhou is currently offline Yumin ZhouFriend
Messages: 21
Registered: July 2012
Junior Member
Hello experts,

now I have the EMF metamodel (.ecore file) and also some test xml files which were created through this EMF model. I want to find some method that can transform this EMF model to GUI. When I load the XML file through this GUI, I can get a checklist which lists the whole content of this XML file. Further I can use this checklist to filter the content I want.

I have looked into the RCP and RAP. But I think those are not what I need, am I right? And Wazzabi, I have also studied on it. It seems to be the way to transform the EMF into the User Interface. But I have some trouble with importing the project sets. Could anybody give some advice, how I can go further? To fix the trouble with wazaabi or there is another way to realize my purpose?

Best Regards
YM
Re: Item checklist based on EMF [message #896970 is a reply to message #896959] Fri, 20 July 2012 15:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
The best I can suggest is you generate the editor for your model (as
described in the tutorials), look at how the existing views work, and
derive something else from that basis.


On 20/07/2012 4:24 PM, Yumin Zhou wrote:
> Hello experts,
>
> now I have the EMF metamodel (.ecore file) and also some test xml
> files which were created through this EMF model. I want to find some
> method that can transform this EMF model to GUI. When I load the XML
> file through this GUI, I can get a checklist which lists the whole
> content of this XML file. Further I can use this checklist to filter
> the content I want.
>
> I have looked into the RCP and RAP. But I think those are not what I
> need, am I right? And Wazzabi, I have also studied on it. It seems to
> be the way to transform the EMF into the User Interface. But I have
> some trouble with importing the project sets. Could anybody give some
> advice, how I can go further? To fix the trouble with wazaabi or there
> is another way to realize my purpose?
>
> Best Regards
> YM


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Item checklist based on EMF [message #897278 is a reply to message #896970] Mon, 23 July 2012 13:34 Go to previous messageGo to next message
Yumin Zhou is currently offline Yumin ZhouFriend
Messages: 21
Registered: July 2012
Junior Member
Hi ED,

thank you for your advice. I just looked at the editor. But it mostly seems to create the xml file not filter. Is there any simple example for loading and filtering a xml file? Until now I didn't find any.

Best Regards
YM

Re: Item checklist based on EMF [message #897285 is a reply to message #897278] Mon, 23 July 2012 13:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Maybe the fact that a TreeViewer is a StructuredViewer which as an
addFilter method will help.


On 23/07/2012 3:34 PM, Yumin Zhou wrote:
> Hi ED,
>
> thank you for your advice. I just looked at the editor. But it mostly
> seems to create the xml file not filter. Is there any simple example
> for loading and filtering a xml file? Until now I didn't find any.
>
> Best Regards
> YM
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Item checklist based on EMF [message #897350 is a reply to message #897285] Mon, 23 July 2012 16:58 Go to previous messageGo to next message
Yumin Zhou is currently offline Yumin ZhouFriend
Messages: 21
Registered: July 2012
Junior Member
Hi ED,

http://www.eclipse.org/articles/Article-Using%20EMF/using-emf.html
The TreeViewer really looks like what I want. I will try on it first. Thank you!
Re: Item checklist based on EMF [message #901031 is a reply to message #897350] Thu, 09 August 2012 13:28 Go to previous message
Yumin Zhou is currently offline Yumin ZhouFriend
Messages: 21
Registered: July 2012
Junior Member
Hi Ed,

thank you for your help. I just want to give you some feedback. There is some trick in .Edit Provider. What I did was just to create two class in the edit project "ContentProvider" and "LabelProvider" which can be combined to JFace TreeViewer.

BR
YM
Previous Topic:Teneo/Hibernate QuickStart can't create table
Next Topic:[CDO] conflict merging
Goto Forum:
  


Current Time: Fri Apr 19 11:11:17 GMT 2024

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

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

Back to the top