Revision: 282 http://svn.sourceforge.net/cishell/?rev=282&view=rev Author: bh2 Date: 2006-10-16 12:33:28 -0700 (Mon, 16 Oct 2006) Log Message: ----------- if a data object is added to the data manager and the parent data object isn't in the gui then it will parent the added data object to the root Modified Paths: -------------- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/AbstractDataManagerView.java Modified: trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/AbstractDataManagerView.java =================================================================== --- trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/AbstractDataManagerView.java 2006-10-16 17:13:55 UTC (rev 281) +++ trunk/clients/gui/org.cishell.reference.gui.datamanager/src/org/cishell/reference/gui/datamanager/AbstractDataManagerView.java 2006-10-16 19:33:28 UTC (rev 282) @@ -190,6 +190,11 @@ } else { // otherwise find the associated DataModelGUIItem for the parent parentItem = (DataGUIItem) dataToDataGUIItemMap.get(parent); + + //The parent may not be in the GUI. If its not, then use root item + if (parentItem == null) { + parentItem = rootItem; + } } // create the new DataModelGUIItem This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |