|Re: Get the editPart from an Impl [message #206350 is a reply to message #206333]
||Tue, 23 September 2008 01:23
Registered: July 2009
You can always run your code in a debug environment, set up a |
watchpoint, and backtrace until you find the actual getElement()
> Can somebody say me, where i find the code(not the interface) for the
> getElement() Methode?
> Jörg schrieb:
>> Thank you for your reply. But i have the workbench. My problem is,
>> that i don't get the real semantiv object with getChildren() and then
>> getModel() and getElement(). This objects seems to be copies of the
>> current impl, because these objects references(a structual feature) to
>> other objects than expected.
>> Ugo Sangiorgi schrieb:
>>> Hi Jörg,
>>> do you have the editor up on your workbench?
>>> I use to do this:
>>> XXXDiagramEditor editor =
>>> (XXXDiagramEditor)PlatformUI.getWorkbench().getActiveWorkben chWindow().getActivePage().getActiveEditor();
>>> RootEditPart p = (RootEditPart) editor.getDiagramEditPart();
>>> then with
>>> p.getChildren() you have all the editparts of the diagram :)
>>> Hope it helps,
>>> Jörg wrote:
>>>> is this possible? I load the Object over the xmi file. Now i want to
>>>> get the EditPart from some Objects. It must be the way from the impl
>>>> to an editpart. Maybe its possible if i have the model and graphical
>>>> definition in one file?
Powered by FUDForum
. Page generated in 0.02049 seconds