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 (6012740) | asked Dec 21 '16, 10:31 a.m.
Hello,
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:
http://help.eclipse.org/neon/topic/org.eclipse.platform.doc.user/tasks/running_eclipse.htm?resultof=%22%65%63%6c%69%70%73%65%22%20%22%65%63%6c%69%70%73%22%20%22%70%61%72%61%6d%65%74%65%72%22%20%22%70%61%72%61%6d%65%74%22%20

2 answers



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

-perspective
com.ibm.magnolia.ui.workItemPerspective

permanent link
Pascal Jean (6012740) | answered Dec 22 '16, 7:47 a.m.
From
http://stackoverflow.com/questions/3383470/how-to-get-an-id-perspective-of-eclipse

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).


Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.