Properties view doesn't work for DnD element [message #1486753] |
Tue, 25 November 2014 09:06 |
Djordje Stanojevic Messages: 14 Registered: February 2014 |
Junior Member |
|
|
Hi everyone,
I'm newbie in modeling world and Graphiti, and I am trying to create simple RCP application with Graphiti Diagram.
All of my business objects are saved into one xmi file, which I can see and edit from the tree view.
I have implemented properties view for all my elements, and it works as I expected, but when I DnD business element from the tree view into diagram, and change any of its attributes through properties view, I'm getting Null Pointer Exception for my TransactionalEditingDomain.
Here is my part of code:
if (m_componentDescription.isFocusControl()) {
final PictogramElement pictogramElement = getSelectedPictogramElement();
final Component component = (Component) Graphiti.getLinkService().getBusinessObjectForLinkedPictogramElement(pictogramElement);
final TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(component); //here I'm getting exception
editingDomain.getCommandStack().execute(new RecordingCommand(editingDomain) {...
Can anyone help me with this ?
Thanks in advance...
Djordje
Djordje Stanojevic
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05292 seconds