Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Name of java perspective?
Name of java perspective? [message #1078028] Fri, 02 August 2013 12:52 Go to next message
jonas b is currently offline jonas bFriend
Messages: 23
Registered: July 2013
Junior Member
Hello,
What's the ID of the Java Perspective? When I launch my plugin as an Eclipse Application, I want to pass to the program arguments in run configurations the option -perspective org.eclipse.[Java Perspective]. But I can't find the name of the perspective. Please tell me!
Re: Name of java perspective? [message #1078246 is a reply to message #1078028] Fri, 02 August 2013 18:47 Go to previous messageGo to next message
jonas b is currently offline jonas bFriend
Messages: 23
Registered: July 2013
Junior Member
Or is there another way to launch Eclipse with the Java perspective? Because when I debug my plugin, Eclipse always opens in Resource perspective and I don't want to do the extra mouseclicks to switch to Java.
Re: Name of java perspective? [message #1079367 is a reply to message #1078246] Sun, 04 August 2013 13:10 Go to previous messageGo to next message
Tanmay Wani is currently offline Tanmay WaniFriend
Messages: 4
Registered: August 2013
Junior Member
Hi Jonas,

There is another way to launch your eclipse plugin in Java perspective by default. If your plugin is contributing to the base eclipse extension point, for instance, for a new wizard, eclipse provides org.eclipse.ui.newWizards extension point, and when you contribute to this point via plugin.xml, you'll find that in the new wizard entry you are contributing, there is a field named 'finalPerspective' in which you can add the plugin id/symbolic name of java perspective plugin. I provide the sample code below which shows how to add this.

<extension
point="org.eclipse.ui.newWizards">
<wizard
class="com.clazz.template.wizard.controller.NewWizardMainPage"
descriptionImage="META-INF/icons/character_map.png"
finalPerspective="org.eclipse.jdt.ui.JavaPerspective"
hasPages="true"
icon="META-INF/icons/character_map.png"
id="com.clazz.template.wizard.JavaClassWizard"
name="Java Class"
project="false">
<description>
Wizard to create a new java class.
</description>
<selection
class="org.eclipse.core.resources.IResource">
</selection>
</wizard>

</extension>


Thanks and Regards,
Tanmay Wani
Re: Name of java perspective? [message #1079602 is a reply to message #1078246] Sun, 04 August 2013 21:26 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Find file org.eclipse.jdt.ui/plugin.xml and look at the extensions tab:
Under org.eclipse.ui.perspectives it lists the Java perspective and two others.
In the details you find id: org.eclipse.jdt.ui.JavaPerspective.

HTH,
Stephan
Previous Topic:out of heap while building large workspace - fixed with increased heap
Next Topic:Eclipse Java Compiler for on-fly java compilation is slow
Goto Forum:
  


Current Time: Fri Apr 26 00:53:54 GMT 2024

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

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

Back to the top