Subclipse label decorations not synchronizing - eclipse

I use the SpringSourceToolSuite (v2.9.2.201205071000-RELEASE) version of Eclipse along with Subclipse (v1.8.13). When checking in code I use Tortoise and then return to eclipse where I run a full project clean, which resets the subversion decorations (i.e asterisk, cross, question mark etc) to their correct status.
This is usually all I need to do, but lately the decorations do not get reset even though I have (say) just checked in the file and comparing with the repository shows no differences.
I can edit a file by adding and deleting a space and then the decorations reset correctly. This is proving to be a pain, and now I have a package which is decorated with a + sign and I can't get rid of it.
Anybody else getting this problem or managed to resolve it? Thanks.

Please try: right click on project, Team-> Refresh/Cleanup

I had to change {label_decoration} to {resource_url} in Preferences / Team / SVN / Label Decorations / Text Decorations / Project.
So my Project entry is: {outgoing_flag} {name} {revision} [{resource_url}{root_prefix}: {first_branchOrTag_child}]

Related

IntelliJ IDEA's counterpart to Eclipse's Quick Diff

I just moved to IntelliJ IDEA after spending years working in Eclipse. Eclipse has "Quick Diff" option that allows me to choose color for each type of modification (new line added, line deleted and line modified). It compares my local changes and Git / SVN / CVS code, depending on what you choose. Does IntelliJ has this option or some plugin that does the same thing?
I'm sorry if this question has already been asked before. I tried to find it on IntelliJ's page, on Google and Stack-overflow.
IntelliJ will by default diff with the VCS that's set up for the project/module, but you can also diff two files by right-clicking on one of them and selecting Compare With....
To change the colors go to Settings > Editor > Color Scheme > Diff & Merge. The important color is the highlighting of the line in the diff view, the Error stripe mark color is the color shown in the gutter.

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.

Show annotations not working

I use Eclipse with egit plugin. When I click Team -> Show Annotations, it shows up nothing. But I could view annotations by going to the history and then right clicking on the desired change set.
Shouldn't the first way show annotations from the latest version of that file I am working on?
I found eclipse bug 394161 that says the show annotations functionality won't work unless you set your EGit preferences to ignore whitespace changes. You can do that by going to Window -> Preferences -> Team -> Git and checking the box that says "Ignore whitespace changes". That fixed the problem for me.
I was having the same problem and this worked for me (in two different computers):
Make sure annotations are well set up, for example, if you want to see errors on the vertical ruler, you must have that option activated. Preferences > General > Editors > Text Editors > Annotations > Errors > Show in > Vertical ruler
Make sure your project is marked as a PyDev project. Right-click on your project > PyDev > Set as PyDev Project (if you see Remove PyDev Project config it is already marked as one)
Lastly, make sure your source folder is correctly identified. Right-click on your source folder > PyDev > Set as source folder (add to PYTHONPATH)
In the last step, if you see Set as non-source folder (remove from PYTHONPATH) it is already marked as one and, in that case, this solution shouldn't work for you, but you can try to undo and redo steps 2 and 3.
I'm using Eclipse Kepler, PyDev 3.2 and EGit 3.2.
I banged my head on this for a bit today. Right-clicking a file in Project Explorer or Package Explorer, then selecting "Team" > "Show Annotations" does not work (at least in version 4.5.1). So don't do that. I found the easiest way to show annotations is just click on the vertical ruler then select "Show Annotations" from there.
By the way, the ignore whitespace bug that #Derek mentions has been fixed. From the bug ticket,
After updating to the 3.4.0.201405071430 showing the annotations worked also without setting the property "Ignore whitespace changes"
So the bug seems to be fixed.
I verified that I am not impacted by the bug in 4.5.1

Eclipse code line change

I often switch from Eclipse to Netbeans and back. There is a feature in Netbeans that allows you to see changed lines in code due to repository.
Example:
Is there something similar in Eclipse?
Yes, right click the file Team -> Show Annotation... When you hover over the colored line numbers you see the committing user and the commit message. If it is a local change it is just white.

How do I make eclipse (Indigo) collapse empty (parent) packages?

What I want to do is simply use the eclipse package explorer in hierarchical view but with empty packages being collapsed so I don't have to open 5+ packages to find the first Java file.
I'm not even sure how I did it in previous versions, but I've never had any trouble finding it before, it just seems to be gone now. I have a feeling there was a "flatten hierarchy" tick-box somewhere.
To clarify I get this:
com
example
etc
file1.java
Rather than:
com.example.etc
file1.java
I'm using Eclipse Indigo (v. 3.7.1)
Open the View menu (small triangle in top right corner), open filters and check Empty parent packages.
In most cases it works, but in case of existing projects it does not always work as expected. If you seem to have troubles, try to export the project, remove it, then re-add the exported version (or re-checkout from your VCS).
Assuming the view filter is engaged properly, perhaps your source folders are not as "empty" as you think.
For example, on Apple OS X, Eclipse will detect .DS_STORE entires along your src/package/hierarchy, making the parent packages technically non-empty.
Delete any such hidden files and refresh your project.
Window - Preferences - Java - Appearance - Abbreviate package names
And enter the following rule:
com.example.etc={cee}
I don't know what the problem actually was, but I couldn't get it fixed until I gave up altogether and reinstalled the OS (it was a fresh install anyway), and eclipse. It was completely fine after that. :\
Click on the arrow at the top right of the "Package explorer" and choose "Package presentation -> flat"
Try to restart Eclipse once in a while. I had trouble getting it to work, and after an Eclipse restart it suddenly was working again.