Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » associate a file type with perspective
associate a file type with perspective [message #300439] Thu, 09 March 2006 05:46 Go to next message
Eclipse UserFriend
Originally posted by:

Is it possible to associate a file type to perspective??? So that when the
file is opened the related perspective will come.
Re: associate a file type with perspective [message #671291 is a reply to message #300439] Tue, 17 May 2011 11:57 Go to previous message
Mostafa ElShafei is currently offline Mostafa ElShafeiFriend
Messages: 39
Registered: October 2010

Sure, you can.

1-Add a Selection Listener to the project explorer.
2-Check if the file clicked have the same type that you want to associate with a perspective.
3-Open the perspective. - workbench.openWorkbenchWindow(perspId, input); -

I hope I helped you. Smile

Don't Hesitate to ask Questions.

Regards, Mostafa.
Previous Topic:Getting workspace from within a program
Next Topic:how to associate the editor with the property page?
Goto Forum:

Current Time: Fri Feb 23 03:18:53 GMT 2018

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

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