public Object getValue(Object element, String property) { if (element instanceof Item) element = ((Item) element).getData(); PathMapRule a = (PathMapRule) element; Object o = a.getProperties().get(property); if (o == null) return ""; return o.toString(); }
public void modify(Object element, String property, Object value) { if (element instanceof Item) element = ((Item) element).getData(); PathMapRule a = (PathMapRule) element; if ("".equals(value)) a.getProperties().remove(property); else a.getProperties().put(property, value); viewer.update(element, new String[] {property}); updateLaunchConfigurationDialog(); }
public String getColumnText(Object element, int column) { PathMapRule e = (PathMapRule) element; Object o = e.getProperties().get(column_ids[column]); if (o == null) return ""; return o.toString(); }
public void performApply(ILaunchConfigurationWorkingCopy config) { StringBuffer bf = new StringBuffer(); for (PathMapRule m : map) bf.append(m.toString()); if (bf.length() == 0) config.removeAttribute(TCFLaunchDelegate.ATTR_PATH_MAP); else config.setAttribute(TCFLaunchDelegate.ATTR_PATH_MAP, bf.toString()); }