System.err.println("mouse pressed on "+e.getPickedNode()); if (wasDoubleClick == true) { System.err.println("just came from double click.."); wasDoubleClick = false; return; }
	public void mousePressed(PInputEvent e) {				if (e.isPopupTrigger()) {			//System.err.println("mouse pressed..");			evaluatePopup(e);			return;		}				super.mousePressed(e);		PNode node = e.getPickedNode();				//System.err.println("mouse pressed on "+node+", state "+linkState);				// clear off what was selected.		if (selectedLink != null && linkState != LINK_CHANGING_POINT) {		//	System.err.println("setting selected link to not be selected, in mousePressed");			selectedLink.setSelected(false);			selectedLink = null;		}		if (selectedModule != null) {			selectedModule.removeHandles();			selectedModule = null;		}		if (selectionTarget != null) {			selectionTarget.getLink().setSelected(false);			selectionTarget = null;		}				//first do things based on types of nodes		// then do based on state		if (node instanceof LinkSelectionTarget)			mousePressedSelectionTarget(node);		else if (node instanceof Link)			mousePressedLink(node);		else if (node instanceof ModuleView)			mousePressedModule(node);		if (linkState == LINKING_PARAMS)			mousePressedLinkingParams(node,e);		else if (linkState == LINKING_MODULES)			mousePressedLinkingModules(node,e);		else if (linkState == NOT_LINKING) 			mousePressedNotLinking(node,e);				else if (linkState == LINK_CHANGING_POINT)			mousePressedChangingPoint(node,e);		else			linkState = NOT_LINKING;	}