which class/interface uses TreeSpeedSearch

Now, I've installed a speed search on the Tree, but I'm getting a
ClassCastException that I can't resolve in code that is not part of the
OpenAPI - what is the interface that a custom NodeObject needs to
implement in order to participate in a tree speed search...?

O

java.lang.ClassCastException: com.insyne.raven.model.NodeObject
at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java)
at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java:1)
at com.intellij.ui.TreeSpeedSearch.getElementText(TreeSpeedSearch.java:23)
at com.intellij.ui.SpeedSearchBase.isMatchingElement(SpeedSearchBase.java:83)
at com.intellij.ui.SpeedSearchBase.c(SpeedSearchBase.java:119)
at com.intellij.ui.SpeedSearchBase.access$400(SpeedSearchBase.java:16)
at
com.intellij.ui.SpeedSearchBase$SearchPopup$1.insertString(SpeedSearchBase.java:1)
at

javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
at javax.swing.text.JTextComponent.setText(JTextComponent.java:1441)
at com.intellij.ui.SpeedSearchBase$SearchPopup.]]>(SpeedSearchBase.java:35)
at com.intellij.ui.SpeedSearchBase.a(SpeedSearchBase.java:0)
at com.intellij.ui.SpeedSearchBase.access$200(SpeedSearchBase.java:90)
at com.intellij.ui.SpeedSearchBase$2.keyTyped(SpeedSearchBase.java:4)

2 comments

Hello Oliver,

Now TreeSpeadSearch works with JTree build from DefaultMutableTreeNodes only.
Thank you.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Now, I've installed a speed search on the Tree, but I'm getting a
ClassCastException that I can't resolve in code that is not part of
the OpenAPI - what is the interface that a custom NodeObject needs to
implement in order to participate in a tree speed search...?

O

java.lang.ClassCastException: com.insyne.raven.model.NodeObject
at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java)
at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java:1)
at
com.intellij.ui.TreeSpeedSearch.getElementText(TreeSpeedSearch.java:23
)
at
com.intellij.ui.SpeedSearchBase.isMatchingElement(SpeedSearchBase.java
:83)
at com.intellij.ui.SpeedSearchBase.c(SpeedSearchBase.java:119)
at
com.intellij.ui.SpeedSearchBase.access$400(SpeedSearchBase.java:16)
at
com.intellij.ui.SpeedSearchBase$SearchPopup$1.insertString(SpeedSearch
Base.java:1)
at
javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
at javax.swing.text.JTextComponent.setText(JTextComponent.java:1441)
at
com.intellij.ui.SpeedSearchBase$SearchPopup.<init>(SpeedSearchBase.jav
a:35)
at com.intellij.ui.SpeedSearchBase.a(SpeedSearchBase.java:0)
at
com.intellij.ui.SpeedSearchBase.access$200(SpeedSearchBase.java:90)
at com.intellij.ui.SpeedSearchBase$2.keyTyped(SpeedSearchBase.java:4)



0

that was quick - great, thanks - works!

O

On 2005-12-19 08:57:21 +0100, Anna Kozlova <Anna.Kozlova@jetbrains.com > said:

Hello Oliver,

Now TreeSpeadSearch works with JTree build from DefaultMutableTreeNodes only.
Thank you.

---------------------
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

>> Now, I've installed a speed search on the Tree, but I'm getting a
>> ClassCastException that I can't resolve in code that is not part of
>> the OpenAPI - what is the interface that a custom NodeObject needs to
>> implement in order to participate in a tree speed search...?
>>
>> O
>>
>> java.lang.ClassCastException: com.insyne.raven.model.NodeObject
>> at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java)
>> at com.intellij.ui.TreeSpeedSearch$1.convert(TreeSpeedSearch.java:1)
>> at
>> com.intellij.ui.TreeSpeedSearch.getElementText(TreeSpeedSearch.java:23
>> )
>> at
>> com.intellij.ui.SpeedSearchBase.isMatchingElement(SpeedSearchBase.java
>> :83)
>> at com.intellij.ui.SpeedSearchBase.c(SpeedSearchBase.java:119)
>> at
>> com.intellij.ui.SpeedSearchBase.access$400(SpeedSearchBase.java:16)
>> at
>> com.intellij.ui.SpeedSearchBase$SearchPopup$1.insertString(SpeedSearch
>> Base.java:1)
>> at
>> javax.swing.text.AbstractDocument.replace(AbstractDocument.java:673)
>> at javax.swing.text.JTextComponent.setText(JTextComponent.java:1441)
>> at
>> com.intellij.ui.SpeedSearchBase$SearchPopup.(SpeedSearchBase.jav >> a:35) >> at com.intellij.ui.SpeedSearchBase.a(SpeedSearchBase.java:0) >> at >> com.intellij.ui.SpeedSearchBase.access$200(SpeedSearchBase.java:90) >>]]> at com.intellij.ui.SpeedSearchBase$2.keyTyped(SpeedSearchBase.java:4)


0

Please sign in to leave a comment.