parentObject.getContext().getDebugObject().addEntity();
	public JPopupMenu getContextMenu() {		JPopupMenu contextMenu = new JPopupMenu();		JMenuItem generateEvent = new JMenuItem();				// ##### Generate normal signal ########		generateEvent.setText("Generate.");		generateEvent.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(java.awt.event.ActionEvent evt) {				try {					Signal signal = new Signal(thisEvent) ;					int signalId = signal.getSignalId().intValue() ;					parentObject.addSignal(signal) ;					JOptionPane.showMessageDialog( frame , "Signal " + signalId + " Was generated to the object", "Success!",							JOptionPane.INFORMATION_MESSAGE );									} catch(LemRuntimeException e) {					//todo : open a JOptionPane saying this is invalid for osme reason.					JOptionPane.showMessageDialog( frame , "LemRuntimeException happened: " + e.getMessage() , "Failed!",							JOptionPane.INFORMATION_MESSAGE );									}			}		});				contextMenu.add(generateEvent);		// ##### Generate self signal ########		JMenuItem generateSelfEvent = new JMenuItem();		generateSelfEvent.setText("Generate to Self.");		generateSelfEvent.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(java.awt.event.ActionEvent evt) {				try {					Signal signal = new Signal(thisEvent) ;					int signalId = signal.getSignalId().intValue() ;					parentObject.addSignal(signal) ;					JOptionPane.showMessageDialog( frame , "Self Signal " + signalId + " Was generated to the object", "Success!",							JOptionPane.INFORMATION_MESSAGE );									} catch ( LemRuntimeException e) {					// todo : open a JOptionPane saying this is invalid					JOptionPane.showMessageDialog( frame , "LemRuntimeException happened: " + e.getMessage() , "Failed!",							JOptionPane.INFORMATION_MESSAGE );									}			}		});		contextMenu.add(generateSelfEvent);		// ##### Generate delayed signal ########		JMenuItem generateDelayedEvent = new JMenuItem();		generateDelayedEvent.setText("Generate Delayed Signal.");		generateDelayedEvent.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(java.awt.event.ActionEvent evt) {								String input = JOptionPane.showInputDialog( frame , "Delay in milisecconds", "Amount of Delay",						JOptionPane.QUESTION_MESSAGE );				if ( input != null ) {					try {						DelayedSignal delayedSignal = new DelayedSignal(thisEvent, parentObject , new BigDecimal(Integer.parseInt(input)));						parentObject.addDelayedSignal(delayedSignal) ;						int signalId = delayedSignal.getSignalId().intValue() ;						JOptionPane.showMessageDialog( frame , "Delayed Self Signal " + signalId + " Was generated to the object", "Success!",								JOptionPane.INFORMATION_MESSAGE );					} catch( Exception e) {						JOptionPane.showMessageDialog( frame , "Exception Happened : " + e.getMessage() , "Success!",								JOptionPane.ERROR_MESSAGE );					}				}			}		});		contextMenu.add(generateDelayedEvent);		// ##### Generate delayed self signal ########		JMenuItem generateDelayedSelfEvent = new JMenuItem();		generateDelayedSelfEvent.setText("Generate Delayed Self Signal.");		generateDelayedSelfEvent.addActionListener(new java.awt.event.ActionListener() {			public void actionPerformed(java.awt.event.ActionEvent evt) {								String input = JOptionPane.showInputDialog( frame , "Delay in milisecconds", "Amount of Delay",						JOptionPane.QUESTION_MESSAGE );				if ( input != null ) {					try {						DelayedSignal delayedSelfSignal = new DelayedSignal(thisEvent, parentObject , new BigDecimal(Integer.parseInt(input)));						parentObject.addDelayedSignalSelf(delayedSelfSignal) ;						int signalId = delayedSelfSignal.getSignalId().intValue() ;						JOptionPane.showMessageDialog( frame , "Delayed Self Signal " + signalId + " Was generated to the object", "Success!",								JOptionPane.INFORMATION_MESSAGE );					} catch( Exception e) {						JOptionPane.showMessageDialog( frame , "Exception Happened : " + e.getMessage() , "Success!",								JOptionPane.ERROR_MESSAGE );					}				}			}		});		contextMenu.add(generateDelayedSelfEvent);						return contextMenu;	}