Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] "MpartElement add" resets context

Hi Sighba,

I suggest that you debug the IDE to see how we handle it internally. It is not very difficult (debugging I mean ;)

* Download the latest nightly sdk build
* Go to the plugins view and right-click the bundle that you want to debug
* Import source from repo
* Make a new run config with only this bundle from the workspace
* set breakpoints and run the ide in debug mode

Let me know if you have any questions

Cheers. 

Wim

On Thu, Feb 6, 2020, 9:17 PM Sibgha Nazir <sibgha360@xxxxxxxxx> wrote:
Hi E4 Dev,

I am doing the following to attach my tab back to the window:

mPartStack.getChildren().add(mStackElement);

Where mStackElement is the detached tab. And mPartStack is the List of main window tabs. 

It works fine except for one problem. After the line executes, the context value of mStackElement is reset to Anonymous Context. I want to be able to add the mStackElement to mPartStack children without any modification to its context. (mStackElement.getContext()).

I have been stuck on this problem for 2 days and havent figured out a way to persist the context. A little hint would be very helpful.

Thanks and Best Regards,
Sibgha Nazir
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/e4-dev

Back to the top