[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Problem with EditPart and Impl
|
I'm not if this can help if the View of EObject B is invisible, but the
simples method to get from an EObject to a View Object is by calling:
ViewUtil.getViewContainer(EObject)
Something similar is possible to get an editpart (if the editor is open
and focussed by calling
.findEditPart(EditPart epToBegin,EObject theElement)
this must be called on any parent of the editpart your're looking for
which then is the first argument as well (I always take the
DiagramEditPart).theElement corresponds to the semantic element for
which you search the editpart.
I'm not sure if they work if the editpart is hidden, but I can't imagine
why not :)
Hope that helps,
Daniel
Giordano schrieb:
Can anyone help me?