1

I'm creating Eclipse product and would like to set my own perspective by default opening after workspace launching. I saw that it can be solved via setting this parameter:

-perspective ID

but I can't understand where to set this parameter. I tried to set it into VM arguments and to Program Arguments, but it didn't help me at all. I saw these questions on the SO : 1, 2, 3, article_1 and article_2. Maybe I did smth wrong? But I still can't find any solution for this problem.

Andrew
  • 1,947
  • 2
  • 23
  • 61
  • 1
    Most of those links are about setting the default perspective which is used the first time the workspace is used. `-perspective id` would go in the Program Arguments. The doc seems to say it only works for a RCP using org.eclipse.ui.workbench - so not an e4 RCP. – greg-449 Oct 04 '21 at 14:38
  • 1
    The recommended way to set the default perspective is via the `plugin_customization.ini` file with `org.eclipse.ui/defaultPerspectiveId=...`, see e.g. [here](https://git.eclipse.org/c/epp/org.eclipse.epp.packages.git/tree/packages/org.eclipse.epp.package.java/plugin_customization.ini#n11) – howlger Oct 04 '21 at 14:40

1 Answers1

2

-perspective <id> should work in Program Arguments, but the recommended way to set the default perspective is via the plugin_customization.ini file with

org.eclipse.ui/defaultPerspectiveId=...

See for example, how it is done in the Java IDE package.

howlger
  • 31,050
  • 11
  • 59
  • 99