|
|
@ -12,21 +12,16 @@ using DebuggerLibrary; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.SharpDevelop.Gui.Pads |
|
|
|
namespace ICSharpCode.SharpDevelop.Gui.Pads |
|
|
|
{ |
|
|
|
{ |
|
|
|
class BaseClassItem: VariableListItem |
|
|
|
class BaseClassItem: VariableItem |
|
|
|
{ |
|
|
|
{ |
|
|
|
ObjectVariable variable; |
|
|
|
public BaseClassItem(Variable uncastedVariable) |
|
|
|
|
|
|
|
|
|
|
|
public override bool IsValid { |
|
|
|
|
|
|
|
get { |
|
|
|
|
|
|
|
return variable != null && |
|
|
|
|
|
|
|
variable.HasBaseClass && |
|
|
|
|
|
|
|
variable.BaseClass.Type != "System.Object"; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BaseClassItem(Variable baseClassOfVariable): base() |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
this.variable = baseClassOfVariable as ObjectVariable; |
|
|
|
ObjectVariable variable = uncastedVariable as ObjectVariable; |
|
|
|
|
|
|
|
if (variable != null && variable.HasBaseClass && variable.BaseClass.Type != "System.Object") { |
|
|
|
|
|
|
|
this.Variable = variable.BaseClass; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.Variable = null; |
|
|
|
|
|
|
|
} |
|
|
|
Refresh(); |
|
|
|
Refresh(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -37,14 +32,18 @@ namespace ICSharpCode.SharpDevelop.Gui.Pads |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
SetTexts("<Base class>", |
|
|
|
SetTexts("<Base class>", |
|
|
|
variable.BaseClass.Value.ToString(), |
|
|
|
Variable.Value.ToString(), |
|
|
|
variable.BaseClass.Type); |
|
|
|
Variable.Type); |
|
|
|
|
|
|
|
|
|
|
|
ImageIndex = 0; // Class
|
|
|
|
ImageIndex = 0; // Class
|
|
|
|
|
|
|
|
|
|
|
|
if (variable.BaseClass.MayHaveSubVariables) { // Always true
|
|
|
|
if (IsExpanded) { |
|
|
|
|
|
|
|
UpdateSubVariables(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
if (Variable.MayHaveSubVariables) { // Always true
|
|
|
|
Items.Add(new PlaceHolderItem()); // Show plus icon
|
|
|
|
Items.Add(new PlaceHolderItem()); // Show plus icon
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|