public void mouseReleased(MouseEvent e) {
				if (popupTrigger || e.isPopupTrigger()) {
					if (dropToolPopupMenu == null) {
						dropToolPopupMenu = new DropToolPopupMenu(view);
					}
					dropToolPopupMenu.setStateID(view.getActionID());
					dropToolPopupMenu.show((AbstractButton) e.getSource(), 5, 5);
				}
				else {
					AbstractButton b = (AbstractButton) e.getSource();
					b.doClick();
					if (view.isAddingAtomMode()) {
						if (elementSelectionPanel == null) {
							elementSelectionPanel = new ElementSelectionPanel(view);
						}
						elementSelectionPanel.showPopup(b);
					}
					else if (view.isAddingMoleculeMode()) {
						if (moleculeSelectionPanel == null) {
							moleculeSelectionPanel = new MoleculeSelectionPanel(view);
						}
						moleculeSelectionPanel.showPopup(b);
					}
				}
			}