Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » XML Perspective Target ID
XML Perspective Target ID [message #1830542] Tue, 28 July 2020 21:33 Go to next message
Katya Doersam is currently offline Katya DoersamFriend
Messages: 26
Registered: June 2020
Junior Member
I am creating an eclipse PDE plugin with multiple views. I want my views to be available only when the XML perspective is chosen. I know I can specify this by changing the target ID of the view in the plugin.xml file, but I cannot find the target ID for the XML perspective. Does anyone know the target ID for the XML perspective?
Re: XML Perspective Target ID [message #1830553 is a reply to message #1830542] Wed, 29 July 2020 05:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31624
Registered: July 2009
Senior Member
PDE's plug-in spy is very helpful for answering questions like this yourself:

https://stackoverflow.com/questions/6209033/how-to-determine-which-eclipse-plugins-are-contributing-to-menus-and-toolbars-an


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: XML Perspective Target ID [message #1830601 is a reply to message #1830553] Wed, 29 July 2020 15:04 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3905
Registered: July 2009
Senior Member

The ID you're looking for is "org.eclipse.wst.xml.ui.perspective". You can find where it's declared at https://github.com/eclipse/webtools.sourceediting/blob/9a52e4d9b40b6340b0e2c72ee523bf603881cfb1/xml/bundles/org.eclipse.wst.xml.ui/plugin.xml#L1489 .
The perspectiveExtension adds your view to the layout when someone first opens or resets the perspective, but there's no restriction on your view only being opened in
one particular perspective. Every view can be opened in any perspective the user chooses.


Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Having problem with Classpath, lead to more problem
Next Topic:Eclipse install
Goto Forum:
  


Current Time: Sun Nov 29 08:39:10 GMT 2020

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

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

Back to the top