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