Create new CSS file
press right mouse button to get a popup menu
use Rename action -> it cannot be performed anywhere
use goto Declaration -> nothing happens
these actions should be removed
Goto Declaration action is not there, but Rename is still present.
Marek Fukala agreed that he would review and integrate a patch for this issue contributed by the NetFIX  team.
I observed that the context menu on the CSS file node in project panel works and correctly shows a dialog box asking for
new name and then renames it.
Please tell me in which module's layer file is this Popup context menu for CSS Rename, so I can work on it. I tried to
find but it is not in css.editor module according to my observation.
Tushar Joshi, Nagpur
Looks like the action is added dynamically by CSL engine, no layer declaration anywhere...
I've made a bit of progress. The key is the refactoring module. This has the RSMEditorAction class which in turn is composed of a RefactoringSubMenuAction. RefactoringSubMenuAction constructs the entries in the Refactor sub-menu by looking through the Menu/Refactoring folder and loading the contained Actions (including RenameAction). Menu/Refactoring is populated from the refactoring modules layer.xml.
This is all confirmed by putting into the css-editor modules layer.xml
And the Rename sub-menu item disappears. Alas of course it also disappears from the Refactor sub-menu of all files, but this at least proves that I've found where the entry comes from.
Is there a recommended means of making classes such as RefactoringSubMenuAction aware of the current files file-type?
I'm sorry dynamite, that I haven't closed the issue and let you work on it. I've already resolved the issue when implementing refactorings for css files in Netbeans 6.9 Milestone 1.
OK, can you please at least confirm that Daniel's intention was correct? Thanks.
As for the proposed dynamite's solution - the findings and the proposed fix was basically correct.
The final solution is quite different though - the CSL's instant rename action is not automatically registered into the languages' popup menu, and the module must do it explicitly if it wants. For most file types (css, html, jsp, php...) this is not necessary because there's the default refactoring popup action generated by the RSMEditorAction. The original instant rename action is accessible only via a shortcut and delegates to the default rename refactoring if there is nothing to instant rename.
So as for the proposed fix, it was basically correct given the 6.8 state of code if the rename action instance hiding was done only for css mimetype and not generally.
OK, thanks Marku. I consider Daniel's solution as accepted then.