问题
I'm creating some plugins for Eclipse, and I have selected as Target Platform another Eclipse installation, when I run the plugin it launch the Eclipse instance successfully but it always is opened on the Resources perspective, anyone knows how to specify the default for example Java EE perspective when launching another instance of Eclipse selected as target platform?
回答1:
You can set the default perspective in the plugin_customization.ini
file in the target platform plugins/org.eclipse.sdk
(or it might be plugins/org.eclipse.platform
depending on your launch configuration). Add the line:
org.eclipse.ui/defaultPerspectiveId=perspective id
来源:https://stackoverflow.com/questions/22868050/setting-default-perspective-in-eclipse-for-plugin-development