Community
Participate
Working Groups
I20080812-0800 - enable Content Assist pref 'Insert common prefixes automatically' public class Snippet { void m(CharSequence cs) { String lower= null; if (cs instanceof String) { cs.tol // content assist } } } Content Assist where indicated changes 'cs.tol' to 'toLowerCase'. Should complete to '((String) cs).toLowerCase' (and then show proposals list like when invoked after 'cs.to'). In the general case where the same method prefix can be completed from multiple supertypes, no cast should be inserted while the prefix is completed, e.g. ... Object al= null; if (al instanceof ArrayList) al.rem // content assist ... should be completed to 'al.remove' (and then offer proposals list).
Not sure any more what I wanted here. Current behavior looks fine.