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: pavan_kg.yahoo.com

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
Member
Hello,

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:Indigo update sites and dependencies
Next Topic:How would I update the JSch supplied with Eclipse
Goto Forum:
  


Current Time: Thu Nov 27 00:21:32 GMT 2014

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

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