Skip to main content



      Home
Home » Eclipse Projects » Oomph » Setting custom default Eclipse perspective
Setting custom default Eclipse perspective [message #1850508] Mon, 07 March 2022 02:17 Go to next message
Eclipse UserFriend
I am trying to create my own customized perspective, and configure Eclipse to use it from the very first startup, using a project setup.
I tried to create a file using a ResourceCreationTask at <workspace>\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.workbench.prefs which has my own perspective's definition. This runs before the IDE starts, though apparently the perspective is not created then.
Do you have a recommendation on how to do this?
Re: Setting custom default Eclipse perspective [message #1850518 is a reply to message #1850508] Mon, 07 March 2022 09:21 Go to previous messageGo to next message
Eclipse UserFriend
Did you try: https://wiki.eclipse.org/Eclipse_Oomph_Authoring#Open_default_perspective_already_upon_very_first_start
Re: Setting custom default Eclipse perspective [message #1850520 is a reply to message #1850518] Mon, 07 March 2022 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the quick reply, I am looking to configure Eclipse to start with my own custom perspective, and not with a pre-made one. I haven't figured out how to create my own perspective before the IDE starts (As I described, I tried to do so with the ResourceCreationTask). If I will be able to create it before the IDE starts, I'll be able to use the suggested tasks to start Eclipse with this perspective by default.
Re: Setting custom default Eclipse perspective [message #1850541 is a reply to message #1850520] Tue, 08 March 2022 03:41 Go to previous messageGo to next message
Eclipse UserFriend
I don't know if there is a way to create your own perspective without implementing it via plugin's with plugin.xml registrations. Perhaps it's possible to customize an existing perspective, but I'm not sure how/where that's is stored. You'll need to investigate that...
Re: Setting custom default Eclipse perspective [message #1850582 is a reply to message #1850541] Tue, 08 March 2022 20:33 Go to previous message
Eclipse UserFriend
We achieved this in the past by copying a pre-made workbench.xmi (which includes the custom perspective) into the workspace before starting the IDE. This was copied to ${workspace.location|uri}/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi with a ResourceCreationTask at BOOTSTRAP.

We have since dropped this in favour of using a default perspective as there can be changes in the persistence format between Eclipse versions and the cost of maintaining an up-to-date/valid workbench.xmi outweighed the benefits of the custom perspective. Somebody else also recommended to not rely on this file but I'm not sure what the other risks are specifically.
Previous Topic:Error: An internal error occurred during: "Exporting Eclipse Profile"
Next Topic:GitClone tasks and GitHub tokens
Goto Forum:
  


Current Time: Sun Jun 15 21:25:15 EDT 2025

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

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

Back to the top