mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-09 01:05:38 +02:00
Bug 93856: Variable View: Should disable change value options if selected item is not changeable.
This commit is contained in:
parent
dd8c9f0af7
commit
2f3a82c13c
2 changed files with 21 additions and 1 deletions
|
@ -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
|
2005-06-17 Mikhail Khodjaiants
|
||||||
Bug 99217: NPE thrown when fetching deffered children.
|
Bug 99217: NPE thrown when fetching deffered children.
|
||||||
* CExpression.java
|
* CExpression.java
|
||||||
|
|
|
@ -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.
|
* Compares the underlying variable objects.
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
* @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()
|
* @see org.eclipse.debug.core.model.IValueModification#supportsValueModification()
|
||||||
*/
|
*/
|
||||||
public boolean supportsValueModification() {
|
public boolean supportsValueModification() {
|
||||||
return true;
|
try {
|
||||||
|
return getCurrentInternalVariable().isEditable();
|
||||||
|
}
|
||||||
|
catch( DebugException e ) {
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue