mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
Warning cleanup.
This commit is contained in:
parent
1a7f7403db
commit
199a42471d
1 changed files with 18 additions and 7 deletions
|
@ -66,7 +66,7 @@ class VariableEventListener implements ICDIEventListener {
|
||||||
public void handleDebugEvents(ICDIEvent[] events) {
|
public void handleDebugEvents(ICDIEvent[] events) {
|
||||||
fVar.handleDebugEvents(events);
|
fVar.handleDebugEvents(events);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a variable in the CDI model.
|
* Represents a variable in the CDI model.
|
||||||
|
@ -570,14 +570,22 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
||||||
return !isOK();
|
return !isOK();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setChanged( boolean changed ) {
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#setChanged(boolean)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void setChanged( boolean changed ) {
|
||||||
IInternalVariable iv = getCurrentInternalVariable();
|
IInternalVariable iv = getCurrentInternalVariable();
|
||||||
if ( iv != null ) {
|
if ( iv != null ) {
|
||||||
iv.setChanged( changed );
|
iv.setChanged( changed );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void resetValue() {
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#resetValue()
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
protected void resetValue() {
|
||||||
IInternalVariable iv = getCurrentInternalVariable();
|
IInternalVariable iv = getCurrentInternalVariable();
|
||||||
if ( iv != null ) {
|
if ( iv != null ) {
|
||||||
resetStatus();
|
resetStatus();
|
||||||
|
@ -593,7 +601,8 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#dispose()
|
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#dispose()
|
||||||
*/
|
*/
|
||||||
public void dispose() {
|
@Override
|
||||||
|
public void dispose() {
|
||||||
// Hack: do not destroy local variables
|
// Hack: do not destroy local variables
|
||||||
internalDispose( false );
|
internalDispose( false );
|
||||||
setDisposed( true );
|
setDisposed( true );
|
||||||
|
@ -608,7 +617,8 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
||||||
* Compares the original internal variables.
|
* Compares the original internal variables.
|
||||||
* @see java.lang.Object#equals(java.lang.Object)
|
* @see java.lang.Object#equals(java.lang.Object)
|
||||||
*/
|
*/
|
||||||
public boolean equals( Object obj ) {
|
@Override
|
||||||
|
public boolean equals( Object obj ) {
|
||||||
if ( obj instanceof CVariable ) {
|
if ( obj instanceof CVariable ) {
|
||||||
// A disposed copy can be stored in the viewer.
|
// A disposed copy can be stored in the viewer.
|
||||||
// false should be returned to force the viewer to
|
// false should be returned to force the viewer to
|
||||||
|
@ -641,7 +651,8 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#preserve()
|
* @see org.eclipse.cdt.debug.internal.core.model.AbstractCVariable#preserve()
|
||||||
*/
|
*/
|
||||||
protected void preserve() {
|
@Override
|
||||||
|
protected void preserve() {
|
||||||
resetStatus();
|
resetStatus();
|
||||||
IInternalVariable iv = getCurrentInternalVariable();
|
IInternalVariable iv = getCurrentInternalVariable();
|
||||||
if ( iv != null )
|
if ( iv != null )
|
||||||
|
@ -707,7 +718,7 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
||||||
/**
|
/**
|
||||||
* suffix used to identify cast to array settings
|
* suffix used to identify cast to array settings
|
||||||
*/
|
*/
|
||||||
private final static String CAST_TO_ARRAY_SUFFIX = NAME_PART_SEPARATOR + "(cast_to_array)";
|
private final static String CAST_TO_ARRAY_SUFFIX = NAME_PART_SEPARATOR + "(cast_to_array)"; //$NON-NLS-1$
|
||||||
|
|
||||||
/** retrieve the identification for this variable.
|
/** retrieve the identification for this variable.
|
||||||
* @return a string identifying this variable, to be used to store settings
|
* @return a string identifying this variable, to be used to store settings
|
||||||
|
|
Loading…
Add table
Reference in a new issue