1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

[212841] Changed the IViewerUpdate interface implementations to work with platform 3.4 M4 milestone.

This commit is contained in:
Pawel Piech 2008-01-04 03:46:52 +00:00
parent a4c2cc234f
commit e2aa815c7c
3 changed files with 3 additions and 7 deletions

View file

@ -444,12 +444,7 @@ abstract public class AbstractVMLayoutNode implements IVMLayoutNode {
fTreePath = path;
}
public Object getElement(TreePath path) {
// If not asking for root, just return the last segment in path.
if (path.getSegmentCount() > 0) {
return path.getLastSegment();
}
// Calculate the root of the viewer.
public Object getViewerInput() {
return getVMProvider().getRootElement();
}

View file

@ -498,7 +498,7 @@ abstract public class AbstractVMProvider implements IVMProvider
* @see IViewerInputProvider
*/
public void update(IViewerInputUpdate update) {
update.setViewerInput(update.getElement());
update.setInputElement(update.getElement());
update.done();
}

View file

@ -35,6 +35,7 @@ public class VMViewerUpdate implements IViewerUpdate {
fClientUpdate = clientUpdate;
}
public Object getViewerInput() { return fClientUpdate.getViewerInput(); }
public Object getElement() { return fClientUpdate.getElement(); }
public TreePath getElementPath() { return fClientUpdate.getElementPath(); }
public IPresentationContext getPresentationContext() { return fClientUpdate.getPresentationContext(); }