Bug 536175 - Add cleanup action for using static import
Summary: Add cleanup action for using static import
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC All
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on: 197850
Blocks:
  Show dependency tree
 
Reported: 2018-06-22 05:25 EDT by Lars Vogel CLA
Modified: 2024-05-01 19:51 EDT (History)
3 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 2018-06-22 05:25:41 EDT
Based on Bug 197850, we should also offer a cleanup action to convert code to use static imports.
Comment 1 Lars Vogel CLA 2018-06-22 05:27:25 EDT
Fabian, please provide a Gerrit for providing a cleanup action for the conversion to static imports.
Comment 2 Fabian Pfaff CLA 2018-07-02 07:40:18 EDT
Should it be possible to trigger this cleanup only for method invocations or only for variable/constant access (QualifiedName)?
Comment 3 Lars Vogel CLA 2018-07-02 07:50:55 EDT
(In reply to Fabian Pfaff from comment #2)
> Should it be possible to trigger this cleanup only for method invocations or
> only for variable/constant access (QualifiedName)?

I think it would be "nice-to-have" to have two options, something like:

[ ] Use static imports
 - [X] For static method invocations
 - [X] For static field access

While X indicates the suggested default values.
Comment 4 Eclipse Genie CLA 2018-07-02 08:34:58 EDT
New Gerrit change created: https://git.eclipse.org/r/125335
Comment 5 Eclipse Genie CLA 2018-09-12 01:32:27 EDT
New Gerrit change created: https://git.eclipse.org/r/125335
Comment 6 Lars Vogel CLA 2020-05-19 04:35:31 EDT
Fabrice, can you take this one over?
Comment 7 Eclipse Genie CLA 2022-05-11 17:56:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 8 Eclipse Genie CLA 2024-05-01 19:51:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.