Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » org.eclipse.emf.databinding problem(Adding org.eclipse.emf.databinding seems to cause plugin with view to not display)
org.eclipse.emf.databinding problem [message #1156338] Sat, 26 October 2013 13:34 Go to next message
Greg Dart is currently offline Greg DartFriend
Messages: 17
Registered: September 2013
Junior Member
Hi,

I'm attempting to following this tutorial:

www.vogella.com/articles/EclipseDataBindingEMF/article.html

i.e. EMF & Databinding.

In order to satisfy this code:

DataBindingContext bindingContext = new DataBindingContext();
    bindingContext.bindValue(WidgetProperties.text(SWT.Modify).observe(Description),
        EMFProperties.value(OisContractTemplatePackage.Literals.STATEMENT__ITEM)
            .observe(stmnt));


I need to add this dependency:

org.eclipse.emf.databinding

As soon as I add that dependency in my plugin.xml, even if I still have ONLY the template generated code (so the above code is commented out), when I run the application the view is not available from the list.

As soon as I remove the dependency, the view is back in the list!

What's going on!

Thanks,
Greg
Re: org.eclipse.emf.databinding problem [message #1156349 is a reply to message #1156338] Sat, 26 October 2013 13:43 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
Just validate your run configuration's plugins, i.e. most probably you are missing other dependencies.
Also have a look at the console log...
Re: org.eclipse.emf.databinding problem [message #1156439 is a reply to message #1156338] Sat, 26 October 2013 15:07 Go to previous messageGo to next message
Greg Dart is currently offline Greg DartFriend
Messages: 17
Registered: September 2013
Junior Member
OK - so I figured out a little more...

The reason mine doesn't work and the tutorial does is because I'm trying to do mine as a custom view plugin to an existing set of EMF/GMF based projects. So my databinding project is not an RCP (as per the tutorial).

So why does it matter if it's an RCP App? And how do I get this to work...?

Thanks,
Greg
Re: org.eclipse.emf.databinding problem [message #1156770 is a reply to message #1156349] Sat, 26 October 2013 20:33 Go to previous message
Greg Dart is currently offline Greg DartFriend
Messages: 17
Registered: September 2013
Junior Member
Thanks for the response.

Found it in the end - missing bundle in my Run Config. Grrrr.....
Previous Topic:[CDO]How the Ecore dynamic model with cdos, saved to the database, thank you????
Next Topic:[CDO] How to make sure cdoLockState().isLocked is up to date ?
Goto Forum:
  


Current Time: Fri Aug 23 13:39:21 GMT 2019

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

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

Back to the top