1 11 12 package org.eclipse.ui.statushandlers; 13 14 import java.util.Map ; 15 16 import org.eclipse.ui.application.WorkbenchAdvisor; 17 18 57 public abstract class AbstractStatusHandler { 58 59 private Map params; 60 61 private String id; 62 63 77 public abstract void handle(StatusAdapter statusAdapter, int style); 78 79 84 public Map getParams() { 85 return params; 86 } 87 88 97 public Object getParam(Object key) { 98 if (params != null) { 99 return params.get(key); 100 } 101 102 return null; 103 } 104 105 115 public void setParams(Map params) { 116 this.params = params; 117 } 118 119 124 public String getId() { 125 return id; 126 } 127 128 136 public void setId(String id) { 137 this.id = id; 138 } 139 } 140 | Popular Tags |