I get the follwing exception and an "internal error" dialog when i do this... it still 
seems to work though... 

[7418510]  ERROR -       com.intellij.command.a.b - 
java.lang.StringIndexOutOfBoundsException: String index out of range: -70
        at java.lang.String.<init>(String.java:246)
        at com.intellij.codeInsight.completion.j.a(j.java:3)
        at com.intellij.codeInsight.template.impl.bm.p(bm.java:207)
        at com.intellij.codeInsight.template.impl.bm.l(bm.java:71)
        at com.intellij.codeInsight.template.impl.bm.b(bm.java:372)
        at com.intellij.codeInsight.template.impl.bm.a(bm.java:331)
        at com.intellij.codeInsight.template.impl.bz.a(bz.java:23)
        at com.intellij.codeInsight.completion.i.a(i.java:119)
        at com.intellij.codeInsight.completion.c.run(c.java)
        at com.intellij.psi.impl.o.run(o.java:0)
        at com.intellij.vfs.VirtualFileManager.b(VirtualFileManager.java:89)
        at com.intellij.psi.impl.v.c(v.java:308)
        at com.intellij.codeInsight.completion.b.a(b.java:69)
        at com.intellij.codeInsight.completion.b.a(b.java:51)
        at com.intellij.codeInsight.completion.q.a(q.java)
        at com.intellij.codeInsight.c.a.q.a(q.java:135)
        at com.intellij.codeInsight.c.a.q.a(q.java:254)
        at com.intellij.codeInsight.c.a.e.run(e.java:11)
        at com.intellij.command.a.b.a(b.java:10)
        at com.intellij.codeInsight.c.a.q.b(q.java:289)
        at com.intellij.codeInsight.c.a.q.a(q.java:232)
        at com.intellij.codeInsight.c.a.q.a(q.java:75)
        at com.intellij.codeInsight.c.a.q.a(q.java:222)
        at com.intellij.codeInsight.c.a.g.a(g.java:3)
        at com.intellij.editor.b.t.a(t.java:826)
        at com.intellij.editor.b.t.a(t.java:774)
        at com.intellij.editor.b.t.a(t.java:372)
        at com.intellij.editor.b.c.keyPressed(c.java:6)
        at java.awt.Component.processKeyEvent(Component.java:3677)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2014)
        at java.awt.Component.processEvent(Component.java:3553)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:926)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)

On Fri, 08 February 2002, "Mike Aizatsky" wrote:

> 
> Michael,
> 
> The simplest way to see this feature in action is to type "List list = "
> and press Ctrl+Shift+Space. 
> 
> In brief it works as follows: on Ctrl+Shift+Space IDEA scans all
> templates, which are assigned to SmartType code completion, and decides,
> whether the templates form the expression of the suitable type. If it
> suites, it suggests it to you.
> 
> We use this feature for fetching some standard components from IDEA
> automatically. E.g. if you have some class com.foo.MyComponent in your
> project and you often fetch it like:
> (com.foo.MyComponent)Application.getComponent(com.foo.MyComponent.class)
> , than you might enter this text as a template and IDEA will
> automatically suggest it to you after typing "MyComponent c = " +
> Ctrl+Shift+Space.
> 
> Best regards,
> Mike Aizatsky.
> ------------------------------
> IntelliJ Software, "Develop with pleasure!" http://www.intellij.com
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> On
> > Behalf Of [EMAIL PROTECTED]
> > Sent: Friday, February 08, 2002 6:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Eap-list] suggest live templates by SmartType code
> completion
> > 
> > > - Ability to suggest live templates by SmartType code completion
> > 
> > what is this / how does it work?
> > 
> > Michael
> > ________________________________________________________________
> > Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
> > Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
> > 
> > 
> > 
> > _______________________________________________
> > Eap-list mailing list
> > [EMAIL PROTECTED]
> > http://www.intellij.com/mailman/listinfo/eap-list
> 
> 
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to