Skip to main content



      Home
Home » Newcomers » Newcomers » Associate file with a perspective
Associate file with a perspective [message #262687] Thu, 07 August 2008 12:54 Go to next message
Eclipse UserFriend
Originally posted by: reto.huber.alabus.com

Hi

Is there a way to associate a perspective with a file type? I would like to
open the database development perspective automatically if I double click on
a SQL file.

Thank you for any hints.


Kindest regards,
Reto
Re: Associate file with a perspective [message #262693 is a reply to message #262687] Thu, 07 August 2008 13:19 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Reto Huber wrote:
> Hi
>
> Is there a way to associate a perspective with a file type? I would like to
> open the database development perspective automatically if I double click on
> a SQL file.
>

There's no way to do that as a user (through the Eclipse UI). It might
be possible if you wrote a plugin and used the proper extension
point(s), but I'm not even sure of that. The only similar feature I've
seen is that taking certain actions (such as hitting a breakpoint or
creating a Java project) will prompt the user if he wants to change
perspectives.
In general, I'd say that automatically switching perspectives when a
particular file is opened would be pretty annoying to the user; it
should at least ask the user and offer a checkbox to stop nagging them
about it.

Hope this helps,
Eric
Previous Topic:always add modifier "final" does not work in version 3.4
Next Topic:Any way to pick/block update mirrors?
Goto Forum:
  


Current Time: Sat Jul 19 17:28:05 EDT 2025

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

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

Back to the top