From: Olivier G. <og...@us...> - 2006-01-11 21:27:13
|
Update of /cvsroot/osmose-dev/osmose/src/osmose/application/documenteditor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6289/src/osmose/application/documenteditor Modified Files: OSMTreeEditorPanel.java Log Message: Shift + mouse clic unselects the element in the tree editor (feature request #1359727) Index: OSMTreeEditorPanel.java =================================================================== RCS file: /cvsroot/osmose-dev/osmose/src/osmose/application/documenteditor/OSMTreeEditorPanel.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OSMTreeEditorPanel.java 13 Dec 2005 22:08:35 -0000 1.2 --- OSMTreeEditorPanel.java 11 Jan 2006 21:27:05 -0000 1.3 *************** *** 723,729 **** public void onComponentSelection(OSMElementComponent compo, boolean add) { if(add) { ! if(m_selectedComponents.contains(compo) == false) m_selectedComponents.add(compo); ! compo.select(); if(compo != this.m_lastSelectedComponent) this.m_Notifier.notifyComponentSelected(this, null); --- 723,733 ---- public void onComponentSelection(OSMElementComponent compo, boolean add) { if(add) { ! if(m_selectedComponents.contains(compo) == false) { m_selectedComponents.add(compo); ! compo.select(); ! } else { ! m_selectedComponents.remove(compo); ! compo.unselect(); ! } if(compo != this.m_lastSelectedComponent) this.m_Notifier.notifyComponentSelected(this, null); |