Why show annotation and compare with another revision is not available in Team and Compare With menu for oxygen eclipse - eclipse

I have updated Eclipse to latest Version: Oxygen.3a Release (4.7.3a).
Now i can't see option in Team -> Show Annotation and also Compare With -> Another Revision.
I am using Mercurial plugin.

The issue was with the mercurial plugin I believe. I've just upgraded to v2.5.1.201805100452 of the plugin and the contextual menus are back and working.

For a work around if you go to Windows > Preferences > General > Keys and filter using 'Show Annotation' (make sure the category is Mercurial) you can bind a hot key to the command. I'm not sure why its not showing the context menu though.

Related

Compare not working in Eclipse Neon

I am (finally) trying to upgrade to Eclipse Neon from Mars.2. After installing SVN support and the SVNKit (1.8.14) connector, I am able to access my repository. However Compare is not working.
If I right click a file that I have modified, and choose Compare with Base from Working Copy a dialog is displayed saying There are no differences between the selected inputs. If I choose Team-> Synchronize with Repository, the differences are shown in the Synchronization view. Differences are also shown when comparing to Local History.
If I use Tortise SVN from File Explorer the differences from the current version to the Base Working version are shown.
Anyone have a solution / suggestion to restore this critical function?
Resolved with the Subversion provider 4.0 update :
Help -> Install new software -> Add
"http://download.eclipse.org/technology/subversive/4.0/update-site/" -> Select Subversion provider and update it.
Source :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=492534

How to flatten packages in eclipse?

I'm trying to create a flattened project hierarchy in eclipse 4.2 Juno - this is the latest version at time of writing.
I've enabled Package Presentation -> Flat in Package Explorer yet this has made no difference, the view is still hierarchical.
I cannot find any plugins which offer an improved package navigation experience. I simply desire the most productive configuration, i.e. a layout with no unnecessary clicking of expand/collapse arrows!
Any suggestions?
Turns out the 'Flat' option wasn't working because the project wasn't a Java project in eclipse's eyes.
I'd just checked out a Maven project from our SCM (svn). I noticed there was no 'J' on the project folder icon in Package Explorer. I then did Right-Click -> Configure -> Convert to Maven Project to fix.

Eclipse Indigo "Save Actions" are not being applied

I'm new to Eclipse and downloaded the following version:
Eclipse Java EE IDE for Web Developers.
Version: Indigo Release
Build id: 20110615-0604
[edit] Eclipse Platform Version 3.7
I have edited Java > Editor > Save Actions to do the following: Remove trailing white spaces on all lines, Correct indentation
When I save the .java file, those actions are not applied... is this a bug?
Found this that might be related: https://bugs.eclipse.org/bugs/show_bug.cgi?id=350475
Assuming that this relates to JavaScript files, then the related Eclipse bug could be helpful.
The problem (as I've just experienced) is that you can edit the JavaScript -> Save Actions preferences via the context menu when editing a JavaScript file, but the actions will not be run.
The solution is to right click on the project containing the .js file, and select Configure -> Convert to JavaScript project.
The bad news is that this will then will also enable Eclipse's not-so-great JavaScript validation, therefore telling you that libraries such as moment.min.js are broken.
Well for those of you who have found this topic... I did find 2 solutions, no thanks to Eclipse, other than the fact that it is open source and people can write plugins.
Eclipse Platform Version 3.7
AnyEdit - plugin that does it for you when you Save file (I believe this is what eclipse SHOULD be doing)
Go to: Window > Preferences. Then under General > Keys. Make sure drop down for Scheme: is Default and enter 'remove trailing' in the filter. You should then see "Remove Trailing Whitespace" under the command column. Bind it to your own key command.
The only drawback to #2 is that you have to actually press the key binding while editing the file, kindof like a cleanup action.
Too bad Eclipse hasn't taken the approach that ALL file types should be configurable in this way... sometimes I miss TextPad.
Old question, but at least for newer Eclipse versions there's a better solution: Go to the project properties, then to Project Facets. If it tells you that your project isn't in faceted form yet, then convert it. Afterwards (or if it already was faceted), just enable the JavaScript checkbox.
I had the same issue with Eclipse 4.4 (Luna) and this fixed it for me, the save actions are now executed on save.
Adding to jlh's answer, I also had to configure the JavaScript include path of the project to enable save actions. Before that even a manual "Clean Up ..." from the source menu wouldn't work.

Eclipse: How to show project's SVN repository?

I have quite a few Java projects on Eclipse and i use different SVN repositories.
When a project is Shared, i would like to know which SVN repository it uses. (appended in front of the project name?...)
Is there a simple way to do it?
NOTE: I use the "Package Explorer" View.
If you are using SVN plugin then go to windows -> preferences -> Team -> SVN ->Label Decorations
In the text tab, for project format add variable 'url_short' that should do.
Also, you might need to enable 'SVN' in General>Appearance>Label Decorations
I use the subversive plugin for eclipse and it's shown by default.

How to set key binding for 'Team|Show history' in Eclipse with MercurialEclipse in PyDev perspective?

I'm trying to set a key binding for showing Mercurial history of active file (Team|Show History in context menu) in PyDev perspective. All I see in Mercurial category in Window|Preferences|General|Keys pertaining to history is Show Root History command. After setting a key binding for this command and pressing appropriate keys nothing happens. Also I don't see any command of interest pertaining to history in Team category in the same window.
This problem seems to be very similar to the one with SVN key bindings described in SVN key bindings not working in Eclipse question. However, in the Customize Perspective dialog for PyDev perspective, on Command Groups Availability tab there's no Mercurial entry analogues to SVN entry mentioned in the above question.
I'm using Eclipse Indigo, Version: 3.7.0, Build id: I20110310-1119, PyDev 2.0.1 and MercurialEclipse 1.8.1
This might have been solved in the meantime, but in my current Indigo version (Eclipse for PHP developers 3.0.2 with MercurialEclipse 1.9.1) a Show History command is available in the Mercurial category of key shortcuts. Setting a binding to this one will work as expected, aka showing the hg history for the currently selected file.
That's a pity that the Show Root History does not work at all, I'd need that one :)