Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Setting my own perspective
Setting my own perspective [message #542485] Fri, 25 June 2010 05:07 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 26
Registered: May 2010
Junior Member
Hi,

I have created my own perspective for my plug-in. Whenever I launch Eclipse, Java perspective is getting opened by default. I need to set manually my perspective after launching of Eclipse.

Is there any way by which I can set my perspective as default, so that only my perspective will be opened during launching of eclipse.


Regards,
Akash Mahakode
Re: Setting my own perspective [message #542603 is a reply to message #542485] Fri, 25 June 2010 12:04 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

For your install, you can add the command line to eclipse.ini, one token
per line:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.isv/reference/misc/runtime-options.html

If you are creating your own RCP/Product, you can include a
plugin_customization.ini (similar to the one in
eclipse/plugins/org.eclipse.sdk_3.6.0.v201006080911

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Setting my own perspective [message #542846 is a reply to message #542603] Sat, 26 June 2010 17:38 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 26
Registered: May 2010
Junior Member
Thanks Paul.



-akash mahakode
Re: Setting my own perspective [message #542938 is a reply to message #542603] Sun, 27 June 2010 17:21 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 26
Registered: May 2010
Junior Member
Hi Paul,

My eclipse.ini file has folllowing contents..

-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v 20090520
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=512m
-Xms40m
-Xmx512m
-perspective
plugins/com.akki.akkide_0.5.0.beta/com/akki/akkide/perspecti ves/AkkidePerspective


I have added -perspective option in last and my perspective is AkkidePerspective.
Please let me know whether its correct or not? If not what I do need to modify?


Regards,
akash mahakode

[Updated on: Sun, 27 June 2010 17:22]

Report message to a moderator

Re: Setting my own perspective [message #542939 is a reply to message #542938] Sun, 27 June 2010 17:44 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Akash Mahakode wrote:

> -perspective
> plugins/com.akki.akkide_0.5.0.beta/com/akki/akkide/perspecti ves/AkkidePerspective
>
>

>
>
> I have added -perspective option in last and my perspective is
> AkkidePerspective.
> Please let me know whether its correct or not? If not what I do need to
> modify?

Does it come up? :-)

It should be the perspective ID as defined in your plugin.xml. The 2
lines (one for -perspective and one for the perspective ID) need to be
before -vmargs


PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Setting my own perspective [message #542980 is a reply to message #542939] Mon, 28 June 2010 05:40 Go to previous messageGo to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 26
Registered: May 2010
Junior Member
Thanks a lot Paul, Its working.....

But There is one more thing that I need to do.

I would like to remove the Welcome page that is being displayed whenever Eclips eis launched.

Is there a way to remove Welcome page?


Regards,
Akash Mahakode
Re: Setting my own perspective [message #543103 is a reply to message #542980] Mon, 28 June 2010 12:11 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

to do that you need to provide a plugin_customization.ini (similar to
the one in eclipse/plugins/org.eclipse.sdk_3.6.0.v201006080911). You
can set the default perspective in that one:

org.eclipse.ui/defaultPerspectiveId=org.eclipse.jdt.ui.JavaP erspective

Normally one is provided with the product, but there's a runtime option
to specify one.

See org.eclipse.ui.IWorkbenchPreferenceConstants

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:interactive splash not working on the final product
Next Topic:Plugin from Jar
Goto Forum:
  


Current Time: Wed Dec 01 04:27:12 GMT 2021

Powered by FUDForum. Page generated in 0.01973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top