Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346238

Summary: [Xtend] Avoid cutting the "is" prefix in case of extensions
Product: [Tools] Xtend Reporter: Markus Voelter <voelter>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow, st.oehme, sven.efftinge
Version: 2.2.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: v2.7

Description Markus Voelter CLA 2011-05-18 09:27:15 EDT
I create an Xtend 2 method isXXXX(Metaclass) in an Xtend class and inject this this class as an extension into another one. The isXXX method is now available as XXXX on the Metaclass instances However, I suggest the "is" should not be removed, because that removes the "hint" that XXXX is a predicate. Removing a "get" makes sense, but removing the "is" doesn't.
Comment 1 Sebastian Zarnekow CLA 2011-07-29 18:10:49 EDT
ContentAssist should prefer the #isSomething version over #something or #isSomething(). However, the *SugarDescriptionProvider should still be conformant to the JavaBeans conventions.
Comment 2 Sven Efftinge CLA 2011-10-25 02:50:39 EDT
no more features in 2.1
Comment 3 Stefan Oehme CLA 2014-08-21 14:45:34 EDT
CA now keeps isXXX if you typed the is prefix.