if (macros!=null) macrosV.removeElement(macro);
if (macro==null) return;  macrosV.removeElement(macro);
public void removeMacro(String name){	VDBMacro macro = (VDBMacro)macros.remove(name);	if (macros!=null)		macrosV.removeElement(macro);	ComposedAction ca = new ComposedAction();	// remove visible rep.	VisibleObject macroVisibleObj = macro.getVisibleObject();	if (macroVisibleObj!=null)	{		macroVisibleObj.destroy();		ca.addAction(new com.cosylab.vdct.undo.DeleteAction(macroVisibleObj));		com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace");	}	ca.addAction(new DeleteTemplateMacroAction(this, macro));		UndoManager.getInstance().addAction(ca);		regenerateMacrosID();			InspectorManager.getInstance().updateObject(this);/*	updateTemplateFields();	unconditionalValidation();	com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace");*/}