Bug 562814

Summary: Postfix template to negate the condition of an if statement
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: gayanper, kalyan_prasad, Lars.Vogel, rgrunber, stephan.herrmann
Version: 4.14Keywords: usability
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

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