can "tpyeMapper" return a EObject? [message #187057] |
Wed, 14 May 2008 23:31 |
Eclipse User |
|
|
|
Originally posted by: hufangjian31.hotmail.com
Hi, all
I am not good at programming and new to GMF tab View and I have tried to
solve this problem for several days.
I want to crete a new tab in the GMF property view(which is realy
importment to my project), but when you select a figure node in GMF, you
select the EditPart of it. If I want to change the EditPart to Semantic
Model(like when you select a node in EMF editor), I try to use the
typeMapper of the contributor. but if I let the class implement
ITypeMapper, is it must return a class? I think I can get the EObject
using:
EditPart actor_editpart = (EditPart)((IStructuredSelection)
object).getFirstElement();
eObject = (EObject)
((org.eclipse.gmf.runtime.notation.View)
actor_editpart.getModel()).getElement();
So how can I let the typeMapper return a EObject?
Thanks in advance!
|
|
|
|
Powered by
FUDForum. Page generated in 0.01476 seconds