Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Moving a part opened by Eclipse's Open View menu
Moving a part opened by Eclipse's Open View menu [message #1772786] Fri, 15 September 2017 08:46 Go to next message
Ovidiu Tomuta is currently offline Ovidiu TomutaFriend
Messages: 12
Registered: September 2017
Junior Member
When opening a part using the default "Window-Open View-Other.." menu, the newly created part acts as a top window, so it contains no parent. Because of this I can't move it using the EModelService move() method. I want to move it a specific partstack. Is there any other way I can do this programmatically ?
Re: Moving a part opened by Eclipse's Open View menu [message #1772970 is a reply to message #1772786] Tue, 19 September 2017 15:14 Go to previous messageGo to next message
Eclipse UserFriend
I'm not sure what you mean by "as a top window", but if you look at the implementation of EModelService#move() you'll see that it's really just two simple operations:


  • newParent.getChildren().add(partToMove);
  • leave a placeholder in the original location, if requested


You don't want to leave a placeholder, so all you need to do is the first bit.
Re: Moving a part opened by Eclipse's Open View menu [message #1775053 is a reply to message #1772970] Tue, 24 October 2017 08:54 Go to previous message
Ovidiu Tomuta is currently offline Ovidiu TomutaFriend
Messages: 12
Registered: September 2017
Junior Member
I understand. Thank you
Previous Topic:PropertySheet setDisable
Next Topic:Remove Perspectives
Goto Forum:
  


Current Time: Fri Apr 26 16:26:17 GMT 2024

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top