void processMousePressed(MouseEvent e) {
		requestFocusInWindow();
		removeHighlights();
		if (asApplet)
			return;
		if (ModelerUtilities.isRightClick(e)) {
			Point p = new Point(e.getX(), e.getY());
			String link = isHyperlinked(p);
			if (link != null) {
				setCaretPosition(viewToModel(p));
				linkPopupMenu.setName(link);
				linkPopupMenu.show(this, p.x, p.y);
			} else {
				Icon image = isIcon(p);
				if (image instanceof ImageIcon) {
					imagePopupMenu.setImage((ImageIcon) image);
					imagePopupMenu.putClientProperty("copy disabled", Boolean.FALSE);
					imagePopupMenu.putClientProperty("image", null);
					imagePopupMenu.setImage((ImageIcon) image);
					imagePopupMenu.show(this, p.x, p.y);
				} else if (image instanceof LineIcon) {
					colorBarPopupMenu.setColorBar((LineIcon) image);
					colorBarPopupMenu.show(this, p.x, p.y);
				} else {
					if (!containedInEmbeddedComponent(p)) {
						popupMenu.show(this, p.x, p.y);
					}
				}
			}
		}
	}