1 11 12 package org.eclipse.ui.internal.commands; 13 14 import java.util.HashMap ; 15 import java.util.Map ; 16 17 import org.eclipse.ui.commands.IElementReference; 18 import org.eclipse.ui.menus.UIElement; 19 20 26 public class ElementReference implements IElementReference { 27 28 private String commandId; 29 private UIElement element; 30 private HashMap parameters; 31 32 42 public ElementReference(String id, UIElement adapt, Map parms) { 43 commandId = id; 44 element = adapt; 45 if (parms == null) { 46 parameters = new HashMap (); 47 } else { 48 parameters = new HashMap (parms); 49 } 50 } 51 52 57 public UIElement getElement() { 58 return element; 59 } 60 61 64 public String getCommandId() { 65 return commandId; 66 } 67 68 71 public Map getParameters() { 72 return parameters; 73 } 74 } 75 | Popular Tags |