From: <ju...@us...> - 2007-06-11 00:11:54
|
Revision: 4281 http://svn.sourceforge.net/smartfrog/?rev=4281&view=rev Author: julgui Date: 2007-06-10 17:11:53 -0700 (Sun, 10 Jun 2007) Log Message: ----------- Improvement: tag editing. SFOS-155 Modified Paths: -------------- trunk/core/smartfrog/src/org/smartfrog/services/management/PopUpTree.java trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/PrimImpl.java Modified: trunk/core/smartfrog/src/org/smartfrog/services/management/PopUpTree.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/services/management/PopUpTree.java 2007-06-10 23:45:00 UTC (rev 4280) +++ trunk/core/smartfrog/src/org/smartfrog/services/management/PopUpTree.java 2007-06-11 00:11:53 UTC (rev 4281) @@ -549,7 +549,7 @@ } } catch (Exception ex){ String msg = "Problem when trying to edit tags on Component "+name; - if (sfLog().isErrorEnabled()) sfLog().error (msg); + if (sfLog().isErrorEnabled()) sfLog().error (msg,ex); WindowUtilities.showError(this, msg +"'. \n"+ex.toString()); } } else if (obj instanceof ComponentDescription){ @@ -564,7 +564,7 @@ } } catch (Exception ex){ String msg = "Problem when trying to edit tags on ComponentDescription "+name; - if (sfLog().isErrorEnabled()) sfLog().error (msg); + if (sfLog().isErrorEnabled()) sfLog().error (msg,ex); WindowUtilities.showError(this, msg +"'. \n"+ex.toString()); } } else { Modified: trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/PrimImpl.java =================================================================== --- trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/PrimImpl.java 2007-06-10 23:45:00 UTC (rev 4280) +++ trunk/core/smartfrog/src/org/smartfrog/sfcore/prim/PrimImpl.java 2007-06-11 00:11:53 UTC (rev 4281) @@ -1821,11 +1821,11 @@ Object key = null; if (sfParent!=null) { key = sfParent.sfAttributeKeyFor(this); - sfParent.sfSetTags(tags); + sfParent.sfSetTags(key,tags); } else { Prim parent = SFProcess.getProcessCompound(); key = parent.sfAttributeKeyFor(this); - parent.sfSetTags(tags); + parent.sfSetTags(key, tags); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |