1 11 package org.eclipse.debug.internal.ui.views.expression; 12 13 import org.eclipse.debug.internal.ui.views.RemoteTreeViewer; 14 import org.eclipse.debug.internal.ui.views.variables.VariablesView; 15 import org.eclipse.jface.viewers.Viewer; 16 import org.eclipse.ui.IWorkbenchPartSite; 17 18 19 public class ExpressionPopupContentProvider extends RemoteExpressionsContentProvider { 20 21 private Object input = null; 22 23 public ExpressionPopupContentProvider(RemoteTreeViewer viewer, IWorkbenchPartSite site, VariablesView view) { 24 super(viewer, site, view); 25 } 26 27 28 31 public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { 32 super.inputChanged(viewer, oldInput, newInput); 33 input = newInput; 34 } 35 38 public Object [] getElements(Object parent) { 39 if (parent == input) { 40 return (Object []) input; 41 } 42 return super.getElements(parent); 43 } 44 } 45 | Popular Tags |