Often a value needed in an expression exists inside another object rather
than in the current scope.
It'd be good to have another code completion shortcut for a "deep"
SmartType code completion.
It would look into any attributes or local variables in the current scope
for public attributes or methods that are of the correct type for the
expression, and list the full expression.
E.g.
class ClassOne
{
public String stringOne;
public String stringTwo;
public int testInteger;
}
class ClassTwo
{
public String stringThree;
public void testCompletion(ClassOne co)
{
testMethod( _
}
public void testMethod(String stringArg)
{
throw new SillyExampleException();
}
}
With the cursor after "testMethod(", pressing
ctrl-shift-alt-Windows-Key(tm)-tab-tab-percent (or some other shortcut
combination - suggestions welcome), would bring up a list containing:
co.stringOne
co.stringTwo
stringThree
stringThree.concat(String)
stringThree.intern()
stringThree.replace(char, char)
stringThree.substring(int)
stringThree.substring(int, int)
stringThree.toLowerCase(Locale)
stringThree.toLowerCase()
stringThree.toString()
stringThree.toUpperCase(Locale)
stringThree.toUpperCase()
stringThree.trim()
The fact that this is a different shortcut is important, as you wouldn't
want it seraching every attribute every time you were trying to complete
the name of a local string.
Graham Lea
--
Software Engineer
Forge Research Pty Ltd
Suite 116, Bay 9, Locomotive Workshop
Australian Technology Park, Cornwallis Street
Eveleigh NSW 1430 Australia
Phone: +61 2 9209 4152 Fax: +61 2 9209 4172
www.forge.com.au
----------------------------------------------------------------------
This message contains privileged and confidential information intended
only for the use of the addressee named above. If you are not the
intended recipient of this message you must not disseminate, copy or
take any action in reliance on it. If you have received this message
in error please notify the sender immediately. Any views expressed in
this message are those of the individual sender, except where the
sender specifically states them to be the views of another (including
a Body Corporate).
----------------------------------------------------------------------
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features