| 
| Properties don´t show up in properties view [message #84826] | Tue, 12 December 2006 12:46  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: christian.daenekas.informatik.uni-oldenburg.de 
 Hello!
 
 I´ve got a really strange problem with my GMF editor. I was forced to
 restructure my project to fit into another one. So I´ve changed the name
 in the ecore package properties and altered the base package of the
 genmodel. The code creation worked flawlessly. But as i tried to create
 a new diagram at Runtime I got a NullPointerException and the whole
 Diagram View couldn´t be displayed. This problem solved itself (very
 strange). Now I can create Diagrams as I used to but the strange thing
 is that the property views of the Nodes are empty. The models the
 generated code is based on seem to be exactly the same up to the name
 changes. Does someone have a clue what´s the problem in this case?
 
 Greetings,
 Christian Dänekas
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: Properties don?t show up in properties view [message #155023 is a reply to message #85281] | Fri, 12 October 2007 07:53  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: r.c.ladan.tue.nl 
 Vlad Ciubotariu wrote:
 > Which properties are you referring to? Is it both notational and semantic,
 > or just semantic ones?
 >
 > If so I would look into your generated XXXPropertyProvider. Take a look at
 > the generated
 > protected EObject getSemanticElement(Object object) to see whether it
 > returns null for your nodes (it shouldn't)
 >
 I'm having the same problem here (GMF 1.0.100 20070921-0000, build id 2.0.1).
 The appearance properties show up fine, but the model properties don't.
 
 The genmodel file shows that all properties are set to editable, except those
 which are both references and container/contained (i.e. the nodes which are
 treated as child nodes in the EMF editor).  I've also regenerated the edit code,
 but the only changes were removals of unused imports and some whitespace changes.
 
 Adding a System.out.println() to the getSemanticElement() method in
 diagram/edit/policies/XXXBaseItemSemanticEditPolicy.java doesn't show anything
 on the console?
 
 I tried overriding the getAdapter() method as suggested in another thread on this
 topic ("Re: SOLVED EMF properties view, with EMF attributes"), but that gave this
 backtrace (after resolving all those imports...) :
 
 java.lang.NullPointerException
 at  org.eclipse.emf.edit.ui.provider.PropertySource.getEditableV alue(PropertySource.java:61)
 at  org.eclipse.ui.views.properties.PropertySheetEntry.setValues (PropertySheetEntry.java:754)
 at  org.eclipse.ui.views.properties.PropertySheetViewer.setInput (PropertySheetViewer.java:974)
 at  org.eclipse.ui.views.properties.PropertySheetPage.selectionC hanged(PropertySheetPage.java:473)
 at  org.eclipse.ui.views.properties.PropertySheet.partActivated( PropertySheet.java:195)
 at  org.eclipse.ui.part.PageBookView.showBootstrapPart(PageBookV iew.java:907)
 at  org.eclipse.ui.part.PageBookView.createPartControl(PageBookV iew.java:482)
 at  org.eclipse.ui.views.properties.PropertySheet.createPartCont rol(PropertySheet.java:96)
 at  org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:372)
 at  org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:229)
 at  org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
 at  org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:30 0)
 at  org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:53 1)
 at  org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
 at  org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
 at  org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
 at  org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:472)
 at  org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
 at  org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
 at  org.eclipse.ui.internal.PartStack.presentationSelectionChang ed(PartStack.java:843)
 at  org.eclipse.ui.internal.PartStack.access$1(PartStack.java:82 9)
 at  org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.jav a:139)
 at  org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation$1.handleEvent(TabbedStackPresentation.java:133)
 at  org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:267)
 at  org.eclipse.ui.internal.presentations.util.AbstractTabFolder .fireEvent(AbstractTabFolder.java:276)
 at  org.eclipse.ui.internal.presentations.r33.DefaultTabFolder.a ccess$1(DefaultTabFolder.java:1)
 at  org.eclipse.ui.internal.presentations.r33.DefaultTabFolder$2 .handleEvent(DefaultTabFolder.java:84)
 at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:947)
 at  org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:7 06)
 at  org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.ja va:3230)
 at  org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:20 05)
 at  org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.j ava:316)
 at  org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
 at  org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3742)
 at  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3353)
 at  org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
 at  org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
 at  org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
 at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
 at  org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
 at  org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
 at  org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
 at  org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
 at  org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
 at  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
 at  org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
 at  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
 at  org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
 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: 515)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
 
 So what to do now?
 
 Regards,
 Rene
 
 > vlad
 >
 > On Wed, 13 Dec 2006 10:36:51 +0100, Christian Dänekas wrote:
 >
 >> Vlad Ciubotariu schrieb:
 >>> did you regenerate the .edit plugins?
 >>>
 >>>
 >> Yes, I did. Thats the confusing part about this. The code looks like it
 >> should work. But whatever Node I insert into the diagram and click on,
 >> nothing appears in the properties view.
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05510 seconds