1 11 package org.eclipse.ui.actions; 12 13 import org.eclipse.jface.viewers.ISelection; 14 15 24 public class ActionContext { 25 26 29 private ISelection selection; 30 31 34 private Object input; 35 36 39 public ActionContext(ISelection selection) { 40 setSelection(selection); 41 } 42 43 46 public ISelection getSelection() { 47 return selection; 48 } 49 50 53 public void setSelection(ISelection selection) { 54 this.selection = selection; 55 } 56 57 60 public Object getInput() { 61 return input; 62 } 63 64 69 public void setInput(Object input) { 70 this.input = input; 71 } 72 } 73 | Popular Tags |