/** * Remove a property. * @param propname Name of the property. */ public void removeProperty(String propname) { if (properties != null) properties.removeKey(propname); }
public void actionPerformed(ActionEvent e) { stopEditing(paramtable); int[] ind = paramtable.getSelectedRows(); Arrays.sort(ind); IndexMap<String, MProperty> props = getMEventProperties(); for (int i = ind.length - 1; i >= 0; --i) { MProperty prop = parametercache.remove(ind[i]); props.removeKey(prop.getName()); ((ParameterTableModel) paramtable.getModel()).fireTableRowsDeleted(ind[i], ind[i]); } modelcontainer.setDirty(true); } };
/** * Deregister a component description. * @throws RuntimeException when the component is not registered. */ public IFuture<Void> deregister(IDFComponentDescription cdesc) { Future<Void> ret = new Future<Void>(); if(!components.containsKey(cdesc.getName())) { //throw new RuntimeException("Component not registered: "+adesc.getName()); ret.setException(new RuntimeException("Component not registered: "+cdesc.getName())); } else { components.removeKey(cdesc.getName()); ret.setResult(null); //System.out.println("deregistered: "+adesc.getName()); } return ret; }
/** * Deregister a component description. * @throws RuntimeException when the component is not registered. */ public IFuture<Void> deregister(IDFComponentDescription cdesc) { Future<Void> ret = new Future<Void>(); if(!components.containsKey(cdesc.getName())) { //throw new RuntimeException("Component not registered: "+adesc.getName()); ret.setException(new RuntimeException("Component not registered: "+cdesc.getName())); } else { components.removeKey(cdesc.getName()); ret.setResult(null); //System.out.println("deregistered: "+adesc.getName()); } return ret; }
/** * Deregister a component description. * @throws RuntimeException when the component is not registered. */ public IFuture<Void> deregister(IDFComponentDescription cdesc) { Future<Void> ret = new Future<Void>(); synchronized(components) { if(!components.containsKey(cdesc.getName())) { //throw new RuntimeException("Component not registered: "+adesc.getName()); ret.setException(new RuntimeException("Component not registered: "+cdesc.getName())); } else { components.removeKey(cdesc.getName()); ret.setResult(null); //System.out.println("deregistered: "+adesc.getName()); } } return ret; }
if(!value.equals(getValueAt(rowIndex, columnIndex))) getMEvent().getProperties().removeKey(prop.getName()); prop.setName(createFreeName((String)value, new CollectionContains(getMEvent().getProperties().keySet()))); getMEvent().addProperty(prop);
CachedParameter param = (CachedParameter) paramcche.removeKey(paramname);