Bug 495369 - Project Explorer - Rename Java files should be inline
Summary: Project Explorer - Rename Java files should be inline
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 549873 (view as bug list)
Depends on: 74892
Blocks:
  Show dependency tree
 
Reported: 2016-06-03 05:48 EDT by Lars Vogel CLA
Modified: 2020-05-13 04:17 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Vogel CLA 2016-06-03 05:48:55 EDT
I'm currently migrating a lot of Documents from DocBook to Asciidoc and have to rename them from .xml to .adoc.

Doing this in the Package Explorer always brings the 
RefactoringWizardDialog2 up. It would be IMHO nicer for the user if simple renames can be done inline and if such popups are only used if necessary, e.g., for refactoring operations.
Comment 1 Dani Megert CLA 2016-06-03 06:42:25 EDT
(In reply to Lars Vogel from comment #0)
> I'm currently migrating a lot of Documents from DocBook to Asciidoc and have
> to rename them from .xml to .adoc.
> 
> Doing this in the Package Explorer always brings the 
> RefactoringWizardDialog2 up. It would be IMHO nicer for the user if simple
> renames can be done inline and if such popups are only used if necessary,
> e.g., for refactoring operations.

Rename is *the* refactoring operation ;-).

Even if you rename a simple file, it will be a refactoring because there can be rename participants. For example, if that simple file is in a 'build.properties' file, then it will also change that file.

Having said that, we also use inline rename inside the Java editor and this can also cause changes in other files.

Note that we would first have to fix bug 74892.
Comment 2 Andrew Obuchowicz CLA 2019-06-24 12:02:21 EDT
I wanted to reopen the discussion of this bug with regards to Lars recent request for me to address this issue.

To begin:
- How should inline renaming be activated? Double clicking on a project/package currently expands it.

- If we make the context menu option (Refactor -> Rename) activate inline editing, how should the user access the (current) refactor wizard?
Comment 3 Andrey Loskutov CLA 2019-06-24 12:03:12 EDT
F2
Comment 4 Andrew Obuchowicz CLA 2019-06-24 12:11:24 EDT
(In reply to Andrey Loskutov from comment #3)
> F2

Sounds good, thanks.
Comment 5 Noopur Gupta CLA 2019-09-16 05:57:55 EDT
*** Bug 549873 has been marked as a duplicate of this bug. ***
Comment 6 Lars Vogel CLA 2019-12-05 05:53:14 EST
I change that to "Project Explorer" which current does not use inline renaming for Java files (at least for me). I think the master plan is to enhance Project Explorer and remove Package Explorer at some point.