1 11 package org.eclipse.debug.internal.ui.viewers.model; 12 13 import org.eclipse.debug.internal.ui.viewers.model.provisional.IElementMementoRequest; 14 import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext; 15 import org.eclipse.debug.internal.ui.viewers.model.provisional.ModelDelta; 16 import org.eclipse.jface.viewers.TreePath; 17 import org.eclipse.ui.IMemento; 18 19 22 class ElementMementoRequest extends MementoUpdate implements IElementMementoRequest { 23 24 private IMementoManager fManager; 25 private ModelDelta fDelta; 26 27 32 public ElementMementoRequest(ModelContentProvider provider, IMementoManager manager, IPresentationContext context, Object element, TreePath elementPath, IMemento memento, ModelDelta delta) { 33 super(provider, context, element, elementPath, memento); 34 fManager = manager; 35 fDelta = delta; 36 } 37 38 41 public void done() { 42 if (!isCanceled() && (getStatus() == null || getStatus().isOK())) { 43 fDelta.setElement(getMemento()); 45 } 46 fManager.requestComplete(this); 47 } 48 49 } 50 | Popular Tags |