Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 496173

Summary: [Docs] command line option -perspective
Product: [Eclipse Project] Platform Reporter: py e4 <py.foucou>
Component: UIAssignee: Patrik Suzzi <psuzzi>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: psuzzi
Version: 4.5.2   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/75550
https://git.eclipse.org/c/platform/eclipse.platform.common.git/commit/?id=2a3c6f1849e162e9732fb62a7adbb7a699eae787
Whiteboard:

Description py e4 CLA 2016-06-15 08:39:26 EDT
doesn't seem to work properly.

the only effect seems to switch to "Java (default)"
  eclipse -perspective xx

and for example the following don't switch to Debug perspective :(
  eclipse -perspective Debug
  eclipse -perspective debug

(no errr msg)
(tested on Luna or Mars linux 64b)
Comment 1 py e4 CLA 2016-06-20 04:55:45 EDT
after more tries, ended up to have it working with the proper ids,
thanks to https://imranfanaswala.wordpress.com/2010/03/17/getting-the-perspectiveid-for-perspectives-in-eclipse/

so, would suggest to add a note in the command line args documentation, and also an error/warning msg if the perspective id does not exist.
Comment 2 Patrik Suzzi CLA 2016-06-20 05:56:50 EDT
Closing as worksforme, as this info is in API docs.

As example, If you search for "Eclipse API ID for the JDT perspective", 
in the first results, you'll find the API Page that shows the ID_PERSPECTIVE

http://help.eclipse.org/mars/topic/org.eclipse.jdt.doc.isv/reference/api/org/eclipse/jdt/ui/JavaUI.html

Please, re-open if you think this information can be conveniently summarized into a specific wiki page. 

Thanks for reporting
Comment 3 py e4 CLA 2016-06-20 06:58:33 EDT
thanks for the tips.

from a user pt of view, should be also explict there, no ?
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html
Comment 4 Patrik Suzzi CLA 2016-06-20 09:19:43 EDT
Thanks, good point! Let me try to fix this.
Comment 5 Eclipse Genie CLA 2016-06-20 09:21:18 EDT
New Gerrit change created: https://git.eclipse.org/r/75550