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:
parent
a4c2cc234f
commit
e2aa815c7c
3 changed files with 3 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue