com.cosylab.vdct.vdb.VDBRecordData rec = ((com.cosylab.vdct.graphics.objects.Record)obj).getRecordData();
VDBRecordData rec = ((Record)obj).getRecordData();
public void actionPerformed(ActionEvent event){	if (plugin!=null)	{		if (PluginDebugManager.getDebugPlugin()!=null)			DebugStopMenuItem.stopDebugging();				DebugPlugin debugPlugin = (DebugPlugin)plugin.getPlugin();		PluginDebugManager.setDebugPlugin(debugPlugin);		PluginDebugManager.setDebugState(true);		debugPlugin.startDebugging();		/// !!! to be reimplemented		/// for the time being ALL (only VAL) fields in the current group are registered		/// all new (or deleted) filed are not updated		com.cosylab.vdct.graphics.objects.Group group = com.cosylab.vdct.graphics.DrawingSurface.getInstance().getViewGroup();		Enumeration e = group.getSubObjectsV().elements();		while (e.hasMoreElements())		{			Object obj = e.nextElement();			if (obj instanceof com.cosylab.vdct.graphics.objects.Record)			{				/*com.cosylab.vdct.vdb.VDBFieldData field = ((com.cosylab.vdct.graphics.objects.Record)obj).getRecordData().getField("VAL");				if (field!=null)					debugPlugin.registerMonitor(field);*/				com.cosylab.vdct.vdb.VDBRecordData rec = ((com.cosylab.vdct.graphics.objects.Record)obj).getRecordData();				Enumeration e2 = rec.getFieldsV().elements();				while (e2.hasMoreElements())					debugPlugin.registerMonitor((com.cosylab.vdct.graphics.objects.Debuggable)e2.nextElement());								}		}	}}