Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 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());
 }