@VICTUS thank you for the discussion, if you open your devtools you should see errors as to why you’re infinitely loading. My guess is something is wrong with your binding.
@VICTUS you mentioned that your frontend is infinitely loading, so you should check the devtools console as I mentioned to see errors, not the backend terminal from which you started the application. I suspect you should see errors regarding your bindings.
Keeping an eye on devtools when I get an error in Theia can give me a big hint!
I fixed the bind error in ApplicationShell with the rebind you mentioned, thank you.
Also, if you have extended the ApplicationShell in your contribution, you can use the
Is it possible to use this.activeWidget to get the id of the currently clicked widget?
Also, if you have extended the ApplicationShell in your contribution, you can use the
Is it possible to use this.activeWidget to get the id of the currently clicked widget?
I assume you mean if you extend ApplicationShell can you still use activeWidget?
Given you did not override the implementation for activeWidget it should work as before, and if a widget is active you should be able to obtain it’s id.
The reason i used this.activeWidget because I want to prevent that when the user try to drag and drop,
So i try it like my Contribution code I provided above, it would prevent drag and drop as I expected, but it fails because this.activeWidget returns undefined.
@VICTUS to actually disable drag-and-drop it may be a little more difficult, the behavior as far as I am aware comes from phosphorjs, more notably the DockPanel.
There are the following options which enable the feature:
If you were to override these properties in theia-dock-panel.ts then you could disable dnd, but you’ll need to find a way to only do so for your widget (which may be difficult as this disables dnd in the panel itself).
The 3 features of DockPanel you mentioned are declared as private in the class, so I can’t override them.
In theia-dock-panel.ts, I don’t see any methods related to the three drag features you mentioned. Can you tell me which methods you are asking me to override?