Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] - Custom Control Area(Unable to create Custom Control Areas)
[EMF Forms] - Custom Control Area [message #1759991] Fri, 21 April 2017 02:26 Go to next message
sri pamarti is currently offline sri pamartiFriend
Messages: 9
Registered: August 2015
Junior Member
Hi,
I'm having an issue while creating CCAs based on the example.
I'm getting the following exception

!ENTRY org.eclipse.emf.ecp.view.model 2 0 2017-04-20 18:25:27.633
!MESSAGE Databinding not possible due to: The provided ECPHardcodedReferences from Bundle xxxx Class null cannot be resolved..


Anything specific that should be done for the view model to recognize the plugin

Eclipse oxygen/EMF Forms 1.12
Thanks
Sri

[Updated on: Fri, 21 April 2017 03:41]

Report message to a moderator

Re: [EMF Forms] - Custom Control Area [message #1760073 is a reply to message #1759991] Fri, 21 April 2017 19:29 Go to previous messageGo to next message
sri pamarti is currently offline sri pamartiFriend
Messages: 9
Registered: August 2015
Junior Member
I was able to fix the above issue by redifining the target definitions. However I'm getting the similar error to below.

org.eclipse.emfforms.spi.core.services.databinding.DatabindingFailedException: The provided ECPHardcodedReferences from Bundle org.eclipse.emf.ecp.view.custom.ui.swt.example Class org.eclipse.emf.ecp.view.custom.ui.swt.example.MyCustomControl cannot be resolved.
	at org.eclipse.emf.ecp.view.spi.custom.model.impl.CustomDMRConverter.convertToValueProperty(CustomDMRConverter.java:128)
	at org.eclipse.emfforms.internal.core.services.databinding.EMFFormsDatabindingImpl.getValueProperty(EMFFormsDatabindingImpl.java:83)
	at org.eclipse.emfforms.internal.core.services.databinding.EMFFormsDatabindingImpl.getValueProperty(EMFFormsDatabindingImpl.java:1)
	at org.eclipse.emf.ecp.view.internal.editor.handler.CreateDomainModelReferenceWizard$CustomizeDomainModelReferencePage.isValueSet(CreateDomainModelReferenceWizard.java:379)
	at org.eclipse.emf.ecp.view.internal.editor.handler.CreateDomainModelReferenceWizard$CustomizeDomainModelReferencePage.access$0(CreateDomainModelReferenceWizard.java:362)
	at org.eclipse.emf.ecp.view.internal.editor.handler.CreateDomainModelReferenceWizard$CustomizeDomainModelReferencePage$1.notifyChanged(CreateDomainModelReferenceWizard.java:281)
	at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
	at org.eclipse.emf.ecp.view.spi.custom.model.impl.VCustomDomainModelReferenceImpl.setClassName(VCustomDomainModelReferenceImpl.java:261)
	at org.eclipse.emf.ecp.view.spi.custom.model.impl.VCustomDomainModelReferenceImpl.eSet(VCustomDomainModelReferenceImpl.java:353)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071)
	at org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand.java:726)
	at org.eclipse.emf.edit.command.AbstractOverrideableCommand.execute(AbstractOverrideableCommand.java:125)
	at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
	at org.eclipse.emf.databinding.edit.internal.EMFEditValueProperty.doSetValue(EMFEditValueProperty.java:45)
	at org.eclipse.core.databinding.property.value.ValueProperty.setValue(ValueProperty.java:89)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.doSetValue(SimplePropertyObservableValue.java:110)
	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:66)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:115)
	at org.eclipse.core.databinding.UpdateValueStrategy.doSet(UpdateValueStrategy.java:469)
	at org.eclipse.core.databinding.ValueBinding$3$1.run(ValueBinding.java:210)
	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
	at org.eclipse.core.databinding.ValueBinding$3.run(ValueBinding.java:200)
	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
	at org.eclipse.core.databinding.ValueBinding.doUpdate(ValueBinding.java:162)
	at org.eclipse.core.databinding.ValueBinding.access$4(ValueBinding.java:151)
	at org.eclipse.core.databinding.ValueBinding$1.handleValueChange(ValueBinding.java:46)
	at org.eclipse.core.databinding.observable.value.ValueChangeEvent.dispatch(ValueChangeEvent.java:70)
	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:117)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.fireValueChange(DecoratingObservableValue.java:61)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.handleValueChange(DecoratingObservableValue.java:103)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue$1.handleValueChange(DecoratingObservableValue.java:76)
	at org.eclipse.core.databinding.observable.value.ValueChangeEvent.dispatch(ValueChangeEvent.java:70)
	at org.eclipse.core.databinding.observable.ChangeManager.fireEvent(ChangeManager.java:117)
	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.fireValueChange(AbstractObservableValue.java:82)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.notifyIfChanged(SimplePropertyObservableValue.java:126)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.access$3(SimplePropertyObservableValue.java:118)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue$1$1.run(SimplePropertyObservableValue.java:70)
	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:149)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:153)
	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:171)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue$1.handleEvent(SimplePropertyObservableValue.java:66)
	at org.eclipse.core.databinding.property.NativePropertyListener.fireChange(NativePropertyListener.java:69)
	at org.eclipse.jface.internal.databinding.swt.WidgetListener.handleEvent(WidgetListener.java:56)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4431)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
	at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2979)
	at org.eclipse.swt.widgets.Widget.wmKillFocus(Widget.java:1961)
	at org.eclipse.swt.widgets.Control.WM_KILLFOCUS(Control.java:5224)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4877)
	at org.eclipse.swt.widgets.Text.windowProc(Text.java:2704)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5194)
	at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
	at org.eclipse.swt.widgets.Control.forceFocus(Control.java:1114)
	at org.eclipse.swt.widgets.Control.setTabItemFocus(Control.java:3865)
	at org.eclipse.swt.widgets.Widget.setTabGroupFocus(Widget.java:1451)
	at org.eclipse.swt.widgets.Control.traverseGroup(Control.java:4574)
	at org.eclipse.swt.widgets.Control.traverse(Control.java:4338)
	at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:4313)
	at org.eclipse.swt.widgets.Display.translateTraversal(Display.java:4999)
	at org.eclipse.swt.widgets.Display.filterMessage(Display.java:1292)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
	at org.eclipse.jface.window.Window.open(Window.java:794)
	at org.eclipse.emf.ecp.view.internal.editor.controls.DomainModelReferenceControlSWTRenderer$SelectionAdapterExtension.widgetSelected(DomainModelReferenceControlSWTRenderer.java:432)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4431)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4241)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1145)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1034)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)

[Updated on: Fri, 21 April 2017 19:32]

Report message to a moderator

Re: [EMF Forms] - Custom Control Area [message #1760165 is a reply to message #1760073] Mon, 24 April 2017 07:15 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 135
Registered: May 2015
Senior Member
Hi Sri,

could you post the relevant portion with the custom control definition of your view model?
Could you also include the corresponding referenced part of your domain ecore?

Could you also explain what you are trying to achieve and why you are using a CustromControl Element for this?

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] - Custom Control Area [message #1760204 is a reply to message #1760165] Mon, 24 April 2017 14:16 Go to previous messageGo to next message
sri pamarti is currently offline sri pamartiFriend
Messages: 9
Registered: August 2015
Junior Member
Hi Eugen,
Thanks for the reply.

I'm trying the examples provided by ECP in eclipse.

I'm getting the above error when I was trying to associate a new Custom Domain Model reference as described in the
tutorial.

The error only occurs during the association of model reference. If you ignore errors and try to run the example it works.

Not sure if the view model project couldn't find the new CCA model reference.

My use case was to create a new tree control based on the emf model.
The emf model only contains paths but I need to display a tree with checkboxes.

Thanks
Sri

[Updated on: Mon, 24 April 2017 14:24]

Report message to a moderator

Re: [EMF Forms] - Custom Control Area [message #1760343 is a reply to message #1760204] Wed, 26 April 2017 07:51 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 135
Registered: May 2015
Senior Member
Hi Sri,

Do I understand correctly that you get this error in the Preview?
This is an expected error then, we already have a bug open to fix this: Bug 484106
The problem is that the bundles are not on the class path so we cannot find them.

Cheers,
Eugen


--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF Forms] - Custom Control Area [message #1760398 is a reply to message #1760343] Wed, 26 April 2017 15:34 Go to previous message
sri pamarti is currently offline sri pamartiFriend
Messages: 9
Registered: August 2015
Junior Member
That is correct. Thanks so much. Its a development issue NOT runtime.
Previous Topic:[Edapt] Creating history from existing metamodel versions
Next Topic:[EMFStore] Sharing same EditingDomain between Eclipse Workspace and EMFStore Workspace
Goto Forum:
  


Current Time: Thu Jun 21 22:15:19 GMT 2018

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

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

Back to the top