Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EEF liveEditingDomain issue
EEF liveEditingDomain issue [message #654978] Thu, 17 February 2011 20:52 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Hi,

When I edit from within a custom EMF Editor page my generated EEF works fine. But when I try to edit from a properties view, I get the error below because liveEditingDomain is null. Am I perhaps doing something wrong in the setup or configuration?

java.lang.NullPointerException
at org.eclipse.emf.eef.runtime.impl.components.StandardProperti esEditionComponent.firePropertiesChanged(StandardPropertiesE ditionComponent.java:184)
at com.butterflyzer.parts.forms.LeafTermPropertiesEditionPartFo rm$2.focusLost(LeafTermPropertiesEditionPartForm.java:137)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:143)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4054)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1435)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1439)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java: 3244)
at org.eclipse.swt.widgets.Display.checkFocus(Display.java:645)
at org.eclipse.swt.widgets.Shell.makeFirstResponder(Shell.java: 1217)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5500 )
Re: EEF liveEditingDomain issue [message #654979 is a reply to message #654978] Thu, 17 February 2011 20:55 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Also, is there any way to not use the tabbed property sheet or at least hide the tabs? I'm trying to gain back valuable screen real estate. Smile

Miles Parker wrote on Thu, 17 February 2011 15:52
Hi,

When I edit from within a custom EMF Editor page my generated EEF works fine. But when I try to edit from a properties view, I get the error below because liveEditingDomain is null. Am I perhaps doing something wrong in the setup or configuration?

java.lang.NullPointerException
at org.eclipse.emf.eef.runtime.impl.components.StandardProperti esEditionComponent.firePropertiesChanged(StandardPropertiesE ditionComponent.java:184)
at com.butterflyzer.parts.forms.LeafTermPropertiesEditionPartFo rm$2.focusLost(LeafTermPropertiesEditionPartForm.java:137)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:143)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4054)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1435)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1439)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java: 3244)
at org.eclipse.swt.widgets.Display.checkFocus(Display.java:645)
at org.eclipse.swt.widgets.Shell.makeFirstResponder(Shell.java: 1217)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5500 )

Re: EEF liveEditingDomain issue [message #655069 is a reply to message #654978] Fri, 18 February 2011 08:59 Go to previous messageGo to next message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Hi Miles,

It means that the EditingDomain you're using is null. The method to find
the EditingDomain is :

org.eclipse.emf.eef.runtime.ui.utils.EditingUtils.getResourc eSetFromEditor(IWorkbenchPart)

Can you check the behaviour of this method in your case ?

--
Goulwen

Le 17/02/2011 21:52, Miles Parker a écrit :
> Hi,
>
> When I edit from within a custom EMF Editor page my generated EEF works
> fine. But when I try to edit from a properties view, I get the error
> below because liveEditingDomain is null. Am I perhaps doing something
> wrong in the setup or configuration?
>
> java.lang.NullPointerException
> at org.eclipse.emf.eef.runtime.impl.components.StandardProperti
> esEditionComponent.firePropertiesChanged(StandardPropertiesE
> ditionComponent.java:184)
> at com.butterflyzer.parts.forms.LeafTermPropertiesEditionPartFo
> rm$2.focusLost(LeafTermPropertiesEditionPartForm.java:137)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe
> ner.java:143)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4054)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1435)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1439)
> at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java: 3244)
> at org.eclipse.swt.widgets.Display.checkFocus(Display.java:645)
> at org.eclipse.swt.widgets.Shell.makeFirstResponder(Shell.java: 1217)
> at org.eclipse.swt.widgets.Display.windowProc(Display.java:5500 )
Re: EEF liveEditingDomain issue [message #655070 is a reply to message #654979] Fri, 18 February 2011 09:01 Go to previous message
Goulwen Le Fur is currently offline Goulwen Le FurFriend
Messages: 125
Registered: July 2009
Senior Member
Not sure to understand Miles but you can set an PropertiesEditingViewer
in any JFace part you want ;)

--
Goulwen

Le 17/02/2011 21:55, Miles Parker a écrit :
> Also, is there any way to not use the tabbed property sheet or at least
> hide the tabs? I'm trying to gain back valuable screen real estate. :)
Previous Topic:[Henshin] Loading a model from an Xtext resource
Next Topic:[EEF] Caching model artifacts?
Goto Forum:
  


Current Time: Tue Mar 19 11:25:37 GMT 2024

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

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

Back to the top