mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Removed state validation from CDebugElement.
This commit is contained in:
parent
a2b60dcd5b
commit
dbb919826d
2 changed files with 4 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-07-21 Mikhail Khodjaiants
|
||||||
|
Removed state validation from CDebugElement.
|
||||||
|
* CDebugTarget.java
|
||||||
|
|
||||||
2004-07-20 Mikhail Khodjaiants
|
2004-07-20 Mikhail Khodjaiants
|
||||||
Added new state - "STEPPED".
|
Added new state - "STEPPED".
|
||||||
* CDebugElementState.java
|
* CDebugElementState.java
|
||||||
|
|
|
@ -336,14 +336,7 @@ abstract public class CDebugElement extends PlatformObject implements ICDebugEle
|
||||||
return fState;
|
return fState;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isValidState( CDebugElementState state ) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void setState( CDebugElementState state ) throws IllegalArgumentException {
|
protected void setState( CDebugElementState state ) throws IllegalArgumentException {
|
||||||
if ( !isValidState( state ) ) {
|
|
||||||
throw new IllegalArgumentException( state.toString() );
|
|
||||||
}
|
|
||||||
fState = state;
|
fState = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue