If I'm working on live branch as well as development branch at almost same time,
naturally the code in both the branches is similar,
my two eclipse instances are open at the same time,
I keep swapping between them and tend to commit mistake by adding code in the wrong workspace.
To distinguish between the two instances of eclipse if I could have different themes (colours), it could have been good fool proofing measure.
I would like different theme for the eclipse window than the code font or file background.
I use same eclipse (Helios) .exe for different workspaces.
Any simpler advice could also be helpful.
Thanks in advance.
You can also add a name for each workspace. Open Preferences>General>Workspace and enter a Workspace name. It will be shown at the beginning of the title in the shell and the task bar.
That's how I differentiate my 4.2 and 3.8 workspaces, since I often need them both open to compare behaviour.
You may right mouse click in the background of one of your files > Preferences > Text Editor and change background color.
Related
I recently brought Mac Book Pro and I installed Eclipse Luna. I am facing a problem in viewing the Java projects in "Package Explorer" folders are very small. Is there a way to increase instead of changing the screen resolution?
It should be possible, have a look at this link: http://blog.vogella.com/2013/02/19/css-styling-individual-part-of-the-eclipse-ide/
(Copy of the essential part, in case the above link stops working:
#org-eclipse-jdt-ui-PackageExplorer {
font-size:20;
background:black;
}
)
Remains the question, where to put those lines. Best would be to create your own style, but I never figured out how to do it. So I usually just modify one of the built-in styles. To do this, go to /Applications/eclipse4.4/plugins/org.eclipse.ui.themes_1.0.1.v20140819-1717/css and open the css-file of the style you currently use (probably e4_default_mac.css). Then add the above lines at the end of that css file and restart Eclipse. Note: when updating Eclipse, you might have to repeat those steps.
EDIT: Just realized it was already asked and answered on SO: I cannot change the font size of package explorer in Eclipse Don't look at the accepted answer, but at the next one below.
No, there is no way to change the size of folders or other visual properties of package explorer.
The views, fonts, etc... of general views are set by the system/OS properties. Only the editor view allows customization of sizing, such as, font.
I'm looking for a way to optically mark different projects in the eclipse "Project Explorer".
From time to time I have to work with several opened projects, to copy files and folders from old to new projects. (I know it is possible to compare folders.. but it is not always the best way)
So it would be really convenient to apply a different color for the main project. E.g. having displayed the folders of that project in green instead of yellow - so this would avoid copy-pasting in the wrong 'direction'.
Any ideas? Or other tips?
Edit:
Added image
Eclipse isnt exploded make-up-bag :D
If you have your projects unter Version-Controll, you can specify custom file/folder/project-decorators with markant Text-Labels.
Therefore see Window->Preferences->Team->...->Label Decoration
I'd like to quickly see "hot" positions of the file I have been recently edited, so I can quickly jump between them without inserting manual bookmarks.
Does Aptana offer this kind of feature?
Are there any Eclipse plug-ins doing this?
Eclipse does it (I am running 3.7.1):
Window->Prefs->General->Editors->Text Editors->Quick Diff
(or just type quick diff into the preference page search)
Enable quick diff, show differences in rulers - you can change the colours to make it more visible.
Another possibility is utilizing Mylyn. Just activate a task and a context will automatically be created that tracks changes on a method level, even highlighting important changes in bold. You can switch off the "focusing" (i.e. only showing the active and edited classes / ressources) in the project / explorer view if that annoys you. But Mylyn is a little more intensive, it only shows its full potential with a little bit of familiarisation.
I will need to use multiple workspaces for a recent project. Each workspace might consist of 10 or more projects.
When I'm switching between various applications and different eclipse instances(for the multiple workspaces), I want to be able to distinguish a given workspace easily without having to spend 5 seconds to know from the open file, etc.
What facilities are available to quickly know which workspace I'm in ?
Use the -showlocation command line argument when starting Eclipse. This shows the current workspace name in the window's title. You can also put the argument in the eclipse.ini file.
You can also add your own window title in:
eclipse preferences > workspace > workspace name (shown in window title)
Explained here: http://eclipse.dzone.com/articles/show-workspace-location-title
-showlocation is great, but it only changes the text at the end of the title bar, so it's often not visible in the taskbar.
If you want to change the beginning of the title bar, which shows the current Perspective, you can use Window -> Save Perspective As... and the new title will be visible in the Taskbar.
You could use also the OS for this to setup different workspaces, with diff, background or so. Where you have in each workspace a Eclipse running, with a diff workspace.
You can also create different working sets in the same workspace. The you only need one eclipse and switch between working sets in 1 sec depending on the mouse speed :)
I often end up with lots of empty panes in Eclipse that can only be minimized but not destroyed. How do I close these?
Update:
In this screenshot you can see two minimized on the upper left and several on the right hand side. In the center are four more. They only seem to be restorable in the Debug mode.
http://img406.imageshack.us/img406/9900/eclipse1.png
this happened to me, too. What worked for me (based on FilmJ and douncon's comments) was to open a class file, then drag that tab over the top of the empty pane.
Select Window -> Reset Perspective. That should reset the current perspective (what you call "mode") to its' initial state, (hopefully) closing all irrelevant views.
Something seems terribly wrong with your Eclipse. Maybe you should reinstall it. It is possible that you installed a buggy plugin.
First of all, what do you mean by pane? Eclipse has:
Windows (Eclipse itself, e.g. instance)
Documents (tabs)
Views (properties, tasks, explorer, etc)
If by 'pane' you mean document editors, you have problems either with your Eclipse version or most likely one of the installed plugins.
Each View also can be closed (except maybe some project types (perspectives) of which I'm not aware). For CDT (C/C++) you can close practically everything.
I'll recommend you download latest Eclipse version with no plugins, extract it to different folder, and check if that happens again. If yes, please explain more in details (like Eclipse version, perspective you are using, any side plugins, etc).
Also a good places are Eclipse community forum, mailing list and bugz :-)
I had the same problem. For me it helped to go into the right perspective and activate the functionality that caused the window in the first place. Once I reactivated the functionality, in my case "QNX Memory Analysis perspective", I was able to close all the windows one by one.
The conclusion is you have to refill the empty windows with content and then you will be able to close them properly.
So, it's really very easy for this to happen, if you open an editor that's incompatible with the existing editor, you can often end up having to place it outside of the tab list in one of your editor panes, then you might clear or copy that, typically while trying to add that view to a tab list.
In any case, what it's done is create a new editor, and all you need to do is drag some file to that empty editor window giving it some form of context, then close it.
I had the same issue. I followed #zvikico, but instead of just resetting, I first reset and then closed all the perspectives. Please follow the following to fix the problem. It worked for me:
Window -> Perspective -> Reset perspective..
After resetting follow below:
Window -> Perspective -> Close All Perspectives