Bug 562814 - Postfix template to negate the condition of an if statement
Summary: Postfix template to negate the condition of an if statement
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: usability
Depends on:
Blocks:
 
Reported: 2020-05-05 04:56 EDT by Lars Vogel CLA
Modified: 2022-11-02 03:56 EDT (History)
5 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 2020-05-05 04:56:05 EDT
Would be nice to have a postfix completion template to negotiate an if statement. Example:

if (pers.equals(perspective)).not -> if (!pers.equals(perspective))
Comment 1 Stephan Herrmann CLA 2020-05-05 07:04:55 EDT
negotiation != negation

Perhaps we should use the terminology of the "Invert 'if' statement" quick assist?
Comment 2 Lars Vogel CLA 2020-08-18 04:37:49 EDT
Would be really useful, e.g., 

list.isEmpty().not -> !list.isEmpty()
Comment 3 Eclipse Genie CLA 2022-11-01 11:45:16 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 4 Lars Vogel CLA 2022-11-02 03:56:51 EDT
Project moved to Github