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

Cleanup. Removed the 'reset' and 'getQualifiedName' methods from the 'ICVaraible' interface.

This commit is contained in:
Mikhail Khodjaiants 2003-07-28 17:25:01 +00:00
parent d84488d695
commit 87128db4da
5 changed files with 18 additions and 13 deletions

View file

@ -1,3 +1,8 @@
2003-07-28 Mikhail Khodjaiants
Cleanup. Removed the 'reset' and 'getQualifiedName' methods from the 'ICVaraible' interface.
* ICVariable.java
* CVariable.java
2003-07-24 Mikhail Khodjaiants 2003-07-24 Mikhail Khodjaiants
Fix for PR 40696. If the project contains the reference to a project that is Fix for PR 40696. If the project contains the reference to a project that is
deleted from the workspace the source locator tries to get the location of deleted project. deleted from the workspace the source locator tries to get the location of deleted project.

View file

@ -20,16 +20,12 @@ public interface ICVariable extends IVariable
void setFormat( int format ) throws DebugException; void setFormat( int format ) throws DebugException;
void reset() throws DebugException;
ICType getType() throws DebugException; ICType getType() throws DebugException;
boolean isEditable(); boolean isEditable();
boolean hasChildren(); boolean hasChildren();
String getQualifiedName() throws DebugException;
boolean isEnabled(); boolean isEnabled();
void setEnabled( boolean enabled ) throws DebugException; void setEnabled( boolean enabled ) throws DebugException;

View file

@ -151,6 +151,7 @@ public abstract class CVariable extends CDebugElement
return fException; return fException;
} }
} }
class InternalVariable class InternalVariable
{ {
private ICDIVariableObject fCDIVariableObject; private ICDIVariableObject fCDIVariableObject;
@ -632,14 +633,17 @@ public abstract class CVariable extends CDebugElement
* @see org.eclipse.cdt.debug.core.model.ICVariable#setFormat(int) * @see org.eclipse.cdt.debug.core.model.ICVariable#setFormat(int)
*/ */
public void setFormat( int format ) throws DebugException public void setFormat( int format ) throws DebugException
{
doSetFormat( format );
reset();
}
protected void doSetFormat( int format )
{ {
fFormat = format; fFormat = format;
} }
/** protected void reset() throws DebugException
* @see org.eclipse.cdt.debug.core.model.ICVariable#reset()
*/
public void reset() throws DebugException
{ {
((CValue)getValue()).reset(); ((CValue)getValue()).reset();
fireChangeEvent( DebugEvent.STATE ); fireChangeEvent( DebugEvent.STATE );
@ -824,10 +828,7 @@ public abstract class CVariable extends CDebugElement
return result; return result;
} }
/* (non-Javadoc) protected String getQualifiedName() throws DebugException
* @see org.eclipse.cdt.debug.core.model.ICVariable#getQualifiedName()
*/
public String getQualifiedName() throws DebugException
{ {
if ( fQualifiedName == null ) if ( fQualifiedName == null )
{ {

View file

@ -1,3 +1,7 @@
2003-07-28 Mikhail Khodjaiants
Cleanup. Removed the 'reset' method from the 'ICVaraible' interface.
* VariableFormatActionDelegate.java
2003-07-24 Mikhail Khodjaiants 2003-07-24 Mikhail Khodjaiants
New icon for closed projects. New icon for closed projects.
* icons/full/obj16/cproject_obj.gif: new * icons/full/obj16/cproject_obj.gif: new

View file

@ -128,6 +128,5 @@ public class VariableFormatActionDelegate implements IObjectActionDelegate
protected void doAction( ICVariable var ) throws DebugException protected void doAction( ICVariable var ) throws DebugException
{ {
var.setFormat( fFormat ); var.setFormat( fFormat );
var.reset();
} }
} }