1 11 package org.eclipse.debug.internal.ui.viewers.model; 12 13 import org.eclipse.debug.internal.core.commands.Request; 14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate; 16 import org.eclipse.jface.viewers.TreePath; 17 import org.eclipse.ui.IMemento; 18 19 22 abstract class MementoUpdate extends Request implements IViewerUpdate { 23 24 private IPresentationContext fContext; 25 private Object fElement; 26 private TreePath fElementPath; 27 private IMemento fMemento; 28 protected ModelContentProvider fProvider; 29 30 37 public MementoUpdate(ModelContentProvider provider, IPresentationContext context, Object element, TreePath elementPath, IMemento memento) { 38 fContext = context; 39 fElement = element; 40 fElementPath = elementPath; 41 fMemento = memento; 42 fProvider = provider; 43 } 44 45 48 public IPresentationContext getPresentationContext() { 49 return fContext; 50 } 51 52 public Object getElement() { 53 return fElement; 54 } 55 56 public TreePath getElementPath() { 57 return fElementPath; 58 } 59 60 public IMemento getMemento() { 61 return fMemento; 62 } 63 64 public ModelContentProvider getContentProvider() { 65 return fProvider; 66 } 67 68 public Object getElement(TreePath path) { 69 return fProvider.getElement(path); 70 } 71 72 } 73 | Popular Tags |