Swiching between different perspective in Eclipse? - eclipse

What is the difference between 'Java Perspective', 'J2EE Perspective' and 'JPA Perspective' in Eclipse ?
Will it hamper anything to the code if i switch between perspectives?
Thanks,
Sudhansu.

"A perspective is a visual container for a set of views and editors (parts)" eclipse.org/.../PerspectiveArticle.html
As an example, in the "J2EE Perspective" is the "Server"-view already added. This view does not make any sense at "Java Perspective".
So perspecitves (and views, editors) are only about the User-Interface. The perspectives do not have any effect on the code.

No changes in code result if you switch between perspectives which are layouts in Eclipse
Check out these links
Eclipse - Perspectives(http://www.tutorialspoint.com/eclipse/eclipse_perspectives.htm),
Java Perspectives(http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Fconcepts%2Fconcept-java-perspective.htm)

A perspective in Eclipse is the way it will show you code and tools. Every perspective is made for an individual workflow. "Java" e.g. is for simple coding in Java and focusses on the Code in the middle. "Debug" e.g. perspective does not focus on the code but instead shows you tools which help you to analyze you actual problem (Thread Monitor, Variable Monitor etc.)

Related

Undo “Remember my decision” in Eclipse for QuickDiff

When choosing "Show annotation" in Eclipse I was asked if I want to use the QuickDiff feature and I said "no". Moreover, I checked "Remember my decision", and now I profoundly regret it. Now Eclipse goes to the "SVN Repository Exploring" perspective, instead of staying in the Java perspective and just show me the changes in the left vertical bar (the one with the line numbers).
Does anybody know how to re-enable QuickDiff? I went to the QuickDiff preferences page and tried to do it, but in vain.
I have an Eclipse EE Mars.2 Release (4.5.2).
If you type "diff" into the filter box of the Preferences dialog, you'll find it. In this case you also want to change the reference source to whatever version control system you are using.
Finally, a colleague helped me to find the right option. See the image.

Display and Expressions views disappearing on Debug perspective

On Eclipse's Debug perspective, if I pin the Display and Expressions views on the panels, they just disappear some time after the debugging - apparently when Eclipse switches the perspectives again from Java/Java EE to Debug.
Is this really a Bug (or a Feature I didn't get it) or is it some configuration issue? Is there any directions or workaround to make it work? Pinning them again everytime I get into debug is annoying.
I've been having this issue from quite some time on different distributions of Eclipse (right now on JBoss Developer Studio 4.0.0.GA) and on different machines (Windows).
You can save a perspective. I would open debug perspective and pin Expressions and Display views to it and save it(Windows->Save Perspective as) as MyDebug .
And it would get added to the perspective's list and if you use it often you should be able to see it on the top right corner all the time.

Adding/removing menus in Eclipse 4.1 (Customize Perspective not implemented)

According to the Eclipse wiki, Eclipse 4.x does not have the "customize perspective" option:
Given the increased flexibility allowed by a modeled UI, we have not put effort in the 4.x release into modeling the same perspective functionality as in Eclipse 3.x.
My question, of course is: how, then, do I add or remove menus from a perspective when I need to?
For example, I need the "Team" menu visible in order to use source control (I still have access via the context menu, but for some reason key shortcuts do not work). Also, I'd like to jettison menus I never use, like "Commands", "Run" and "Navigate"

Show default editors in perspective?

When open a perspective, i want to show two editors in different floders.
But i don't know how to open editor in folder.
Anybody can help me?
Editors cannot be opened in folders; and perspective changes does not affect the list of opened editors. This is a basic constraint of the Eclipse GUI in the 3.x series. It might be possible to create a listener to perspective changes, and register it to the workbench sites, but it is a flaky solution, and in some cases it might not work. If you need to display some information, I suggest opening two views (which views can be used to refer some files from the workspace; and even open them as standard editors in the editor area).
In the Eclipse 4.x series, this constraint is limited, and editors and views are considered as equals wrt positioning.

IntelliJ IDEA Scala plugin turning off

I'm using Scala plugin for IntelliJ IDEA and my project has a few thousands lines of source code.
Unfortunatelly, when I'm typing the code IDE freezes frequently(i.e. on code completion etc.). I tried to switch off inspection, but there was no effect.
Is there a way to turning off all plugin's features for using it just as syntax highlighter and build tool?
Try closing or reconfiguring all views that show detail at the level of individual class members (methods, vals and vars, basically). Specifically, that's the Structure view and the Project view when the "Show Members" option (in the "cogwheel" menu at the top right) is enabled. It is reported that maintaining these views slows the Scala plug-in appreciably.
You should also get the 9.0.4 EAP of IDEA (currently #95.538) and stay up-to-date with the Scala plug-in nightly releases. There sometimes bugs, but as a rule, quality is good and progress is sufficient to warrant doing this.
Edit:
The two views that do (or can) present information at the class member level of detail and which can slow the plug-in substantially are:
The Structure tool window (Window -> Tool Windows -> Structure / Alt+7)
The Project tool window (Window -> Tools Windows -> Project / Alt+1)
The Structure tool window always shows the class member level of detail, so if it's open, you're susceptible to this slow-down. The Project tool window only shows class members if you configure it to do so. The way this option is controlled is in the menu that is attached to the "cog wheel" or "gear" icon in that window's upper-right corner. The option to disable in that menu is "Show Members."
Try IDEA X EAP plugin version. It's much faster.