mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Implementing the UI support of the detail panel.
This commit is contained in:
parent
152f3b0dc3
commit
8b18e0f709
3 changed files with 45 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2003-06-04 Mikhail Khodjaiants
|
||||||
|
Implementing the UI support of the detail panel.
|
||||||
|
* CDTDebugModelPresentation.java
|
||||||
|
* CDTValueDetailProvider.java: new
|
||||||
|
|
||||||
2003-06-04 Mikhail Khodjaiants
|
2003-06-04 Mikhail Khodjaiants
|
||||||
The presentation of the new types.
|
The presentation of the new types.
|
||||||
* CDTDebugModelPresentation.java
|
* CDTDebugModelPresentation.java
|
||||||
|
|
|
@ -132,6 +132,7 @@ public class CDTDebugModelPresentation extends LabelProvider
|
||||||
*/
|
*/
|
||||||
public void computeDetail( IValue value, IValueDetailListener listener )
|
public void computeDetail( IValue value, IValueDetailListener listener )
|
||||||
{
|
{
|
||||||
|
CDTValueDetailProvider.getDefault().computeDetail( value, listener );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
/*
|
||||||
|
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||||
|
* All Rights Reserved.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.eclipse.cdt.debug.internal.ui;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.debug.core.model.ICValue;
|
||||||
|
import org.eclipse.debug.core.model.IValue;
|
||||||
|
import org.eclipse.debug.ui.IValueDetailListener;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enter type comment.
|
||||||
|
*
|
||||||
|
* @since Jun 4, 2003
|
||||||
|
*/
|
||||||
|
public class CDTValueDetailProvider
|
||||||
|
{
|
||||||
|
//The shared instance.
|
||||||
|
private static CDTValueDetailProvider fInstance = null;
|
||||||
|
|
||||||
|
public static CDTValueDetailProvider getDefault()
|
||||||
|
{
|
||||||
|
if ( fInstance == null )
|
||||||
|
{
|
||||||
|
fInstance = new CDTValueDetailProvider();
|
||||||
|
}
|
||||||
|
return fInstance;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void computeDetail( IValue value, IValueDetailListener listener )
|
||||||
|
{
|
||||||
|
if ( value instanceof ICValue )
|
||||||
|
{
|
||||||
|
listener.detailComputed( value, ((ICValue)value).computeDetail() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue