1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 93856: Variable View: Should disable change value options if selected item is not changeable.

This commit is contained in:
Mikhail Khodjaiants 2005-06-20 19:39:53 +00:00
parent dd8c9f0af7
commit 2f3a82c13c
2 changed files with 21 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-06-20 Mikhail Khodjaiants
Bug 93856: Variable View: Should disable change value options if selected item is not changeable.
* CVariable.java
2005-06-17 Mikhail Khodjaiants
Bug 99217: NPE thrown when fetching deffered children.
* CExpression.java

View file

@ -294,6 +294,17 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
}
}
boolean isEditable() throws DebugException {
ICDIVariable var = getCDIVariable();
if ( var != null ) {
try {
return var.isEditable();
}
catch( CDIException e ) {
}
}
return false;
}
/**
* Compares the underlying variable objects.
* @see java.lang.Object#equals(java.lang.Object)
@ -556,7 +567,12 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
* @see org.eclipse.debug.core.model.IValueModification#supportsValueModification()
*/
public boolean supportsValueModification() {
return true;
try {
return getCurrentInternalVariable().isEditable();
}
catch( DebugException e ) {
}
return false;
}
/*