Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Properties don´t show up in properties view
Properties don´t show up in properties view [message #84826] Tue, 12 December 2006 17:46 Go to next message
Eclipse UserFriend
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 #84857 is a reply to message #84826] Tue, 12 December 2006 18:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

I forgot to say that in the ...ItemProvider classes the generated code
is equal to the one before the restructuring concerning the
add...PropertyDescriptor methods. This really bugs me.

Greetings,
Christian Dänekas

Christian Dänekas schrieb:
> 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 =?iso-8859-1?b?ZG9utHQ [message #84872 is a reply to message #84826] Tue, 12 December 2006 18:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

did you regenerate the .edit plugins?
Re: Properties don´t show up in properties view [message #85051 is a reply to message #84872] Wed, 13 December 2006 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

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.
Re: Properties =?iso-8859-1?b?ZG9utHQ [message #85281 is a reply to message #85051] Wed, 13 December 2006 17:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

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)

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.
Re: Properties don´t show up in properties view [message #85542 is a reply to message #85281] Thu, 14 December 2006 16:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.daenekas.informatik.uni-oldenburg.de

Vlad Ciubotariu schrieb:
> 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)
>
> 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.
>

Because of some additional problems and some changes in my semantic
model I decided to start all over again. The editor is working (for teh
most part) and I can focus on my old problems with GMF again. Thank you
for your response.
Re: Properties don?t show up in properties view [message #155023 is a reply to message #85281] Fri, 12 October 2007 11:53 Go to previous message
Eclipse UserFriend
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.
>
Previous Topic:method instead of property for child ref
Next Topic:newbie GMF question
Goto Forum:
  


Current Time: Fri Jul 19 05:19:26 GMT 2024

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

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

Back to the top