mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Bugzilla 218654. This commit shows some files contain errors. This is because they are being compiled against M4. I will rebuild against M5 shortly. I did a diff of the files and the changes are exactly what I wanted. They will compile against HEAD and M5 when that is resolved.
This commit is contained in:
parent
6321552cfe
commit
c7f6460147
4 changed files with 14 additions and 7 deletions
|
@ -34,7 +34,6 @@ import org.eclipse.dd.dsf.service.IDsfService;
|
|||
import org.eclipse.dd.dsf.ui.viewmodel.IVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.VMDelta;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext;
|
||||
import org.eclipse.debug.core.model.IExpression;
|
||||
import org.eclipse.debug.internal.ui.DebugPluginImages;
|
||||
|
@ -134,7 +133,7 @@ public class RegisterGroupVMNode extends AbstractExpressionVMNode
|
|||
@Override
|
||||
protected void updateElementsInSessionThread(final IChildrenUpdate update) {
|
||||
getServicesTracker().getService(IRegisters.class).getRegisterGroups(
|
||||
new CompositeDMVMContext(update),
|
||||
createCompositeDMVMContext(update),
|
||||
new DataRequestMonitor<IRegisterGroupDMContext[]>(getSession().getExecutor(), null) {
|
||||
@Override
|
||||
public void handleCompleted() {
|
||||
|
|
|
@ -39,7 +39,6 @@ import org.eclipse.dd.dsf.service.IDsfService;
|
|||
import org.eclipse.dd.dsf.ui.viewmodel.IVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.VMDelta;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext;
|
||||
import org.eclipse.debug.core.model.IExpression;
|
||||
import org.eclipse.debug.internal.ui.DebugPluginImages;
|
||||
|
@ -364,7 +363,7 @@ public class RegisterVMNode extends AbstractExpressionVMNode
|
|||
@Override
|
||||
protected void updateElementsInSessionThread(final IChildrenUpdate update) {
|
||||
getServicesTracker().getService(IRegisters.class).getRegisters(
|
||||
new CompositeDMVMContext(update),
|
||||
createCompositeDMVMContext(update),
|
||||
new DataRequestMonitor<IRegisterDMContext[]>(getSession().getExecutor(), null) {
|
||||
@Override
|
||||
public void handleCompleted() {
|
||||
|
|
|
@ -46,7 +46,6 @@ import org.eclipse.dd.dsf.service.IDsfService;
|
|||
import org.eclipse.dd.dsf.ui.viewmodel.IVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.VMDelta;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.AbstractDMVMProvider;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.CompositeDMVMContext;
|
||||
import org.eclipse.dd.dsf.ui.viewmodel.dm.IDMVMContext;
|
||||
import org.eclipse.debug.core.model.IExpression;
|
||||
import org.eclipse.debug.internal.ui.DebugUIPlugin;
|
||||
|
@ -458,7 +457,7 @@ public class VariableVMNode extends AbstractExpressionVMNode
|
|||
final IExpressions expressionService = getServicesTracker().getService(IExpressions.class);
|
||||
if (expressionService != null) {
|
||||
IExpressionDMContext expressionDMC = expressionService.createExpression(
|
||||
new CompositeDMVMContext(update),
|
||||
createCompositeDMVMContext(update),
|
||||
update.getExpression().getExpressionText());
|
||||
VariableExpressionVMC variableVmc = new VariableExpressionVMC(expressionDMC);
|
||||
variableVmc.setExpression(update.getExpression());
|
||||
|
|
|
@ -297,6 +297,16 @@ abstract public class AbstractDMVMNode extends AbstractVMNode implements IVMNode
|
|||
return new DMVMContext(dmc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a default CompositeDMVMContext which represents the selection.
|
||||
* This can be overridden by view model providers which for their own purposes.
|
||||
* @param update defines the selection to be updated to
|
||||
* @return DM Context which represent the current selection
|
||||
*/
|
||||
protected IDMContext createCompositeDMVMContext(IViewerUpdate update) {
|
||||
return new CompositeDMVMContext(update);
|
||||
}
|
||||
|
||||
/**
|
||||
* Searches for a DMC of given type in the tree patch contained in given
|
||||
* VMC. Only a DMC in the same session will be returned.
|
||||
|
@ -305,7 +315,7 @@ abstract public class AbstractDMVMNode extends AbstractVMNode implements IVMNode
|
|||
* @param dmcType Class object for matching the type.
|
||||
* @return DMC, or null if not found.
|
||||
*/
|
||||
public <T extends IDMContext> T findDmcInPath(Object inputObject, TreePath path, Class<T> dmcType) {
|
||||
protected <T extends IDMContext> T findDmcInPath(Object inputObject, TreePath path, Class<T> dmcType) {
|
||||
T retVal = null;
|
||||
for (int i = path.getSegmentCount() - 1; i >= 0; i--) {
|
||||
if (path.getSegment(i) instanceof IDMVMContext) {
|
||||
|
|
Loading…
Add table
Reference in a new issue