提交 71e1b0f2 编写于 作者: A Alexander Fedorov

#2556 show variable details

上级 f5841dd9
......@@ -52,7 +52,7 @@ public class DatabaseVariable extends DatabaseDebugElement implements IVariable
@Override
public String getName() throws DebugException {
return dbgVariable.toString();
return dbgVariable.getName();
}
@Override
......
......@@ -57,6 +57,23 @@
<detailFactories
class="org.jkiss.dbeaver.debug.ui.details.DatabaseDetailPaneFactory"
id="org.jkiss.dbeaver.debug.ui.detailPaneFactories.detailFactories.database">
<enablement>
<with
variable="selection">
<count
value="1">
</count>
<iterate
operator="or">
<instanceof
value="org.jkiss.dbeaver.debug.core.breakpoints.IDatabaseBreakpoint">
</instanceof>
</iterate>
<iterate
operator="or">
</iterate>
</with>
</enablement>
</detailFactories>
</extension>
......
......@@ -17,9 +17,13 @@
*/
package org.jkiss.dbeaver.debug.internal.ui;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IValue;
import org.eclipse.debug.ui.IValueDetailListener;
import org.eclipse.osgi.util.NLS;
import org.eclipse.ui.IEditorInput;
import org.jkiss.dbeaver.debug.core.DebugCore;
import org.jkiss.dbeaver.debug.ui.DatabaseDebugModelPresentation;
public class ProcedureDebugModelPresentation extends DatabaseDebugModelPresentation {
......@@ -41,8 +45,15 @@ public class ProcedureDebugModelPresentation extends DatabaseDebugModelPresentat
@Override
public void computeDetail(IValue value, IValueDetailListener listener)
{
// TODO Auto-generated method stub
try {
String valueString = value.getValueString();
listener.detailComputed(value, valueString);
} catch (DebugException e) {
String message = NLS.bind("Unable to compute valie for {0}", value);
IStatus status = DebugCore.newErrorStatus(message, e);
DebugCore.log(status);
listener.detailComputed(value, e.getMessage());
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册