|
|
Re: Shape, Connection & Properties View [message #1272652 is a reply to message #1272318] |
Tue, 18 March 2014 08:18  |
Eclipse User |
|
|
|
For those who have this problem, I have found a solution.
The mistake I made was in adaptableType. I thought you could declare a adaptableType which was a superclass to both shape and connection such as org.eclipse.gef.editparts.AbstractGraphicalEditPart which does not work.
You need to create two adapters each adapting shape and connection separately like this:
shape adaptableType: org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart
connection adaptableType: org.eclipse.graphiti.ui.internal.parts.FreeFormConnectionEditPart
<extension
point="org.eclipse.core.runtime.adapters">
<factory
adaptableType="org.eclipse.graphiti.ui.internal.parts.ContainerShapeEditPart"
class="se.scania.yset.xmleditor.property.GraphitiEditPartToIPropertySourceAdapterFactory">
<adapter
type="org.eclipse.ui.views.properties.IPropertySource">
</adapter>
</factory>
<factory
adaptableType="org.eclipse.graphiti.ui.internal.parts.FreeFormConnectionEditPart"
class="se.scania.yset.xmleditor.property.GraphitiEditPartToIPropertySourceAdapterFactory">
<adapter
type="org.eclipse.ui.views.properties.IPropertySource">
</adapter>
</factory>factory>
</extension>
These two adapters can still be implemented using the same adapterfactory class.
|
|
|
Powered by
FUDForum. Page generated in 0.03729 seconds