|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.netbeans.spi.debugger.jpda.EditorContext
Defines bridge to editor and src hierarchy. It allows to use different source viewer for debugger (like some UML view).
| Field Summary | |
static String |
BREAKPOINT_ANNOTATION_TYPE
Annotation type constant. |
static String |
CALL_STACK_FRAME_ANNOTATION_TYPE
Annotation type constant. |
static String |
CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
Annotation type constant. |
static String |
CURRENT_LINE_ANNOTATION_TYPE
Annotation type constant. |
static String |
DISABLED_BREAKPOINT_ANNOTATION_TYPE
Annotation type constant. |
static String |
DISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
Annotation type constant. |
static String |
PROP_LINE_NUMBER
Property name constant. |
| Constructor Summary | |
EditorContext()
|
|
| Method Summary | |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a property change listener. |
abstract void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
Adds a property change listener. |
abstract Object |
annotate(String url,
int lineNumber,
String annotationType,
Object timeStamp)
Adds annotation to given url on given line. |
abstract void |
createTimeStamp(Object timeStamp)
Creates a new time stamp. |
abstract void |
disposeTimeStamp(Object timeStamp)
Disposes given time stamp. |
abstract String |
getClassName(String url,
int lineNumber)
Returns class name for given url and line number or null. |
abstract String |
getCurrentClassName()
Returns name of class currently selected in editor or empty string. |
abstract String |
getCurrentFieldName()
Returns name of field currently selected in editor or null. |
abstract int |
getCurrentLineNumber()
Returns number of line currently selected in editor or -1. |
abstract String |
getCurrentMethodName()
Returns name of method currently selected in editor or empty string. |
abstract String |
getCurrentURL()
Returns URL of source currently selected in editor or empty string. |
abstract int |
getFieldLineNumber(String url,
String className,
String fieldName)
Returns line number of given field in given class. |
abstract String[] |
getImports(String url)
Returns list of imports for given source url. |
abstract int |
getLineNumber(Object annotation,
Object timeStamp)
Returns line number given annotation is associated with. |
abstract String |
getSelectedIdentifier()
Returns identifier currently selected in editor or null. |
abstract String |
getSelectedMethodName()
Returns method name currently selected in editor or empty string. |
abstract void |
removeAnnotation(Object annotation)
Removes given annotation. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a property change listener. |
abstract void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
Removes a property change listener. |
abstract boolean |
showSource(String url,
int lineNumber,
Object timeStamp)
Shows source with given url on given line number. |
abstract void |
updateTimeStamp(Object timeStamp,
String url)
Updates timeStamp for gived url. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String BREAKPOINT_ANNOTATION_TYPE
public static final String DISABLED_BREAKPOINT_ANNOTATION_TYPE
public static final String CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
public static final String DISABLED_CONDITIONAL_BREAKPOINT_ANNOTATION_TYPE
public static final String CURRENT_LINE_ANNOTATION_TYPE
public static final String CALL_STACK_FRAME_ANNOTATION_TYPE
public static final String PROP_LINE_NUMBER
| Constructor Detail |
public EditorContext()
| Method Detail |
public abstract boolean showSource(String url, int lineNumber, Object timeStamp)
url - a url of source to be shownlineNumber - a number of line to be showntimeStamp - a time stamp to be usedpublic abstract void createTimeStamp(Object timeStamp)
timeStamp - a new time stamppublic abstract void disposeTimeStamp(Object timeStamp)
timeStamp - a time stamp to be disposedpublic abstract void updateTimeStamp(Object timeStamp, String url)
timeStamp - time stamp to be updatedurl - an urlpublic abstract Object annotate(String url, int lineNumber, String annotationType, Object timeStamp)
url - a url of source annotation should be set intolineNumber - a number of line annotation should be set intoannotationType - a type of annotation to be settimeStamp - a time stamp to be used
null, when the annotation can not be
created at the given URL or line number.public abstract int getLineNumber(Object annotation, Object timeStamp)
annotation - a annotationtimeStamp - a time stamp to be used
public abstract void removeAnnotation(Object annotation)
public abstract int getCurrentLineNumber()
-1.
-1public abstract String getCurrentClassName()
public abstract String getCurrentURL()
public abstract String getCurrentMethodName()
public abstract String getCurrentFieldName()
null.
nullpublic abstract String getSelectedIdentifier()
null.
nullpublic abstract String getSelectedMethodName()
public abstract int getFieldLineNumber(String url, String className, String fieldName)
url - the url of file the class is deined inclassName - the name of class (or innerclass) the field is
defined infieldName - the name of field
public abstract String getClassName(String url, int lineNumber)
url - a urllineNumber - a line number
public abstract String[] getImports(String url)
url - the url of source file
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l - the listener to addpublic abstract void removePropertyChangeListener(PropertyChangeListener l)
l - the listener to removepublic abstract void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName - the name of propertyl - the listener to addpublic abstract void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName - the name of propertyl - the listener to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||