Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] IJavaVariable hierarchy API


I propose adding IJavaField, which extends IJavaVariable, rather than exposing the implementation hierarchy. You should have almost everything you need is IJavaField implements #getDeclaringType()

Darin



Jared Burns <jared-eclipse@xxxxxxxxx>
Sent by: jdt-debug-dev-admin@xxxxxxxxxxx

03/06/2002 02:36 PM
Please respond to jdt-debug-dev

       
        To:        jdt-debug-dev@xxxxxxxxxxx
        cc:        
        Subject:        [jdt-debug-dev] IJavaVariable hierarchy API


We should add an interface hierarchy below IJavaVariable that mirrors the JDIVariable implementation hierarchy.

An instance of where this would be useful is Bug 9501
(http://bugs.eclipse.org/bugs/show_bug.cgi?id=9501), where we'd like to add
the AddWatchpoint action to fields in the variables view. With the current
API, I can only tell that I have an IJavaVariable. I can't tell if it's a
field or a local, though the implementation makes this distinction.

The implementation hierarchy look like so:
JDIVariable
 JDIArrayPartition
 JDIModificationVariable
   JDIArrayEntryVariable
   JDIFieldVariable
   JDILocalVariable
 JDIThisVariable

Thoughts?

- Jared
_______________________________________________
jdt-debug-dev mailing list
jdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-debug-dev



Back to the top