Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: how to change into the correct perspective automatically when editing a file?

Tags:

eclipse

I want to configure Eclipse to change into the appropriate perspective automatically when I open a file for editing. For example if I am in Java perspective and open a MXML or ActionScript file then I want the perspective to change automatically to the FlashBuilder perspective . Then if I reopen the Java file for editing it should switch back to the Java perspective .

I think I remember seeing a prompt asking if this should be the default behavior when I first installed Eclipse, and now I wish I had accepted that. I can't find anything in the settings which allow me to configure this behavior. Is it possible, and if so how?

I am running Eclipse Helios Release 2 on a Windows machine.

like image 930
James Adams Avatar asked Aug 25 '11 13:08

James Adams


People also ask

How do I change project perspective in Eclipse?

You may switch perspectives by choosing Window, Open Perspective from the main menu, as shown below. Close the Welcome window and you will see the Eclipse user interface. The current perspective is displayed on the title bar.

How do I turn off perspective in Eclipse?

To close a perspective, right click on the perspective name in toolbar and select the Close menu item.

What is use perspective in Eclipse?

In the Eclipse Platform a Perspective determines the visible actions and views within a window. Perspectives also go well beyond this by providing mechanisms for task oriented interaction with resources in the Eclipse Platform, multi-tasking and information filtering.

What is Java EE perspective in Eclipse?

Definition. The Java EE perspective provides tools for creating Java EE applications. The development process involves modular development of application components: enterprise beans, servlets, JavaServer Pages (JSP), persistent entities, connector components, and so on. Use.


2 Answers

I just want to help @Piotr Dobrogost and @Tom Brito,
But I can not write the reply cause don't have enough reputation.
Then I write down on new comment:
1. You can access link http://www.richinternet.de/blog/
2. Then select Menu "Plugins", and roll down util to the title "New Perspective Switcher Plugin version" enter image description here

Or you can access the link: http://www.richinternet.de/blog/index0d2c.html?mode=cat&catid=79CCCF13-928B-FB2B-96BD8FE9AFA1FC47

File name: de.richinternet.plugins.perspectiveswitcher_0.1.1.jar
After download, I extract to dropins folder of eclipse (Version: 4.3.2)
This is capture of result:
enter image description here

Hope it usefull, thanks !

like image 162
nguyen Avatar answered Oct 06 '22 17:10

nguyen


Go to Preferences -> General -> Perspectives and then you have the option to "Open the associated perspective when creating a new project" set it to "Always open".

like image 30
Paulo Fidalgo Avatar answered Oct 06 '22 17:10

Paulo Fidalgo