|[AGR] ClassCastException in Verification Hook [message #94299]
||Wed, 28 March 2007 11:34
Originally posted by: Christopher.Schick.gmx.de|
I'm using the AGR to record a couple of user interactions with a custom
plug-in and test the result through Verification Hooks.
Recording works fine as well as creation of the Verification Hook code
However, inside the Hook method I want to access the properties of a
selected view. To achieve this I need to typecast arg0 (IViewPart) to the
type of the selected view (e.g. CustomView).
As soon as I try to cast arg0 to one of our custom view classes, I get a
Funny enough, when writing the class name to the console via
it returns: "class com.voiceobjects.CustomView"
Now when trying to do the cast it fails: "com.voiceobjects.CustomView CV =
Any insight ?
P.S.: Type hierarchy for CustomView is WorkbenchPart => ViewPart => VOView
Powered by FUDForum
. Page generated in 0.02238 seconds