}
}else selectedNode = (CTreeNode) ((CTree)getModel()).getRoot();;
		public void mouseReleased(MouseEvent me) {			TreePath pathClicked = getPathForLocation(me.getX(),me.getY());			//DefaultMutableTreeNode node = (DefaultMutableTreeNode)getLastSelectedPathComponent();						int selRow = getRowForLocation(me.getX(), me.getY());								if(selRow != -1 && me.getClickCount()==1){					me.consume();					selectedNode = (CTreeNode)pathClicked.getLastPathComponent();				}					//getSelectionModel().addSelectionPath(new TreePath(node.getPath()));						if ((SwingUtilities.isLeftMouseButton(me))&&(!isPathSelected(pathClicked))) {												clearSelection();			} 						if (selectedNode.isProject())			{				try {					if ((XAGDOP.getInstance()).getUser().isPManager(selectedNode.getName()))					{						XAGDOP.getInstance().delProject.setEnabled(true);						XAGDOP.getInstance().equipe.setEnabled(true);						XAGDOP.getInstance().menuProjetTeam.setEnabled(true);											}else						XAGDOP.getInstance().delProject.setEnabled(false);				} catch (Exception e) {					//System.out.println("Management");					ErrorManager.getInstance().display();				}			}			else			{					XAGDOP.getInstance().delProject.setEnabled(true);					XAGDOP.getInstance().equipe.setEnabled(false);					XAGDOP.getInstance().menuProjetTeam.setEnabled(false);			}												//changement du noeud courrant			if(!selectedNode.isRoot())				//rechargement de larbre en memoire								try {					DependenciesParser.getInstance().setFile(selectedNode.getProject().getName());				} catch (NullPointerException e) {					e.printStackTrace();					ErrorManager.getInstance().display();				} catch (Exception e) {					e.printStackTrace();					ErrorManager.getInstance().display();				}										if ((SwingUtilities.isRightMouseButton(me))&&(isPathSelected(pathClicked))) {							popup.show(me.getComponent(), me.getX(), me.getY());							} 		}