It's all about the answers!

Ask a question

How to find the perspectiveID of the "Work Items" eclipse perspective? " eclipse.exe -perspective perspectiveId " command

Pascal Jean (6012340) | asked Dec 21 '16, 10:31 a.m.
I'm using the RTC 6.0.2 plug-in into an Eclipse workbench.
I would like to have always the "Work Items" perspective opened at startup. Eclipse help says to use
eclipse.exe -perspective perspectiveId

My problem here is how to find out the perspectiveId of the "Work Items" perspective?

Eclipse help reference:

2 answers

permanent link
Pascal Jean (6012340) | answered Dec 22 '16, 7:47 a.m.

If you are running Eclipse with PDE (Plugin Development Environment), hit ALT + Shift + F2 to use the Plugin Menu Spy. The cursor will change its' shape, now press the desired perspective button and you will get the perspective ID.

Another option is to run a plug-in search (from Search → Plugin). Look for the string " org.eclipse.ui.perspectives " which is the name of the extension point that defines a perspective.

If you don't have PDE, you can search for the same string in the plugin.xml files which are found inside the plugins JARs. If you have a tool that can search within JARs, that would be helpful. Otherwise, you will need to guess which JAR to open for the search (or open all the JARs).

permanent link
Karthik Krishnan (8805113160) | answered Dec 22 '16, 9:52 a.m.
 Use the below in the Eclipse.ini to open the "Work items" perspective always


Your answer

Register or to post your answer.