At 11:35 AM +0000 2/5/02, [EMAIL PROTECTED] wrote:
>This may have already been suggested, but never mind.
>
>Suppose I have code:
>
> Vector v = new Vector();
> v.add(new VeryLongClassNameIndeed(foo, bar));
> VeryLongClassNameIndeed val = v.lastElement();
>
>Then the last line is an error, underlined with a wiggly line, because I've
>forgotten to cast the result of v.lastElement(). I'd like a feature to
>automatically add the appropriate cast. Maybe an 'Cast Expression To X?'
>Alt-Enter pop-up in the manner of 'delare final?' or 'add import?'. The
Place your cursor after the equals sign, type a '(' and press control-space.
--
------------------------------------------------------------------------
Russell Gold | "... society is tradition and order
[EMAIL PROTECTED] | and reverence, not a series of cheap
| bargains between selfish interests."
http://www.httpunit.org | - Poul Anderson, "Iron"
_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features