rem: if(selection.type == "Bookmark" || selection.type == "Livemark") { 
add:  var predicate = bookmarksTree.db.ArcLabelsIn(bookmarksTree.currentResource).getNext(); if(predicate instanceof Components.interfaces.nsIRDFResource) { var parent = bookmarksTree.db.GetSource(predicate, bookmarksTree.currentResource, true); } var parentType = BookmarksUtils.getProperty(parent, RDF_NS + "type", bookmarksTree.db);  if((selection.type == "Bookmark" && parentType != NC_NS + "Livemark") || selection.type == "Livemark") { 
context: function createTreeContextMenu2(aEvent) {	var popup = aEvent.target;	if(popup.localName != "menupopup") return;	var selection = bookmarksTree._selection;	var itemId = selection.item[0].Value;	var cmdSrc = "";	var tempMenuItem;	if(selection.type == "Bookmark" || selection.type == "Livemark") {		cmdSrc = "GetRssTitle.getRssTitle('" + itemId + "')";		tempMenuItem = document.createElement("menuitem");		tempMenuItem.setAttribute("label", strRes.getString("GET_RSS_TITLE"));		tempMenuItem.setAttribute("oncommand", cmdSrc);		popup.appendChild(document.createElement("menuseparator"));		popup.appendChild(tempMenuItem);	} else if(selection.type == "Folder") {		cmdSrc = "updateCheck('" + itemId + "')";		tempMenuItem = document.createElement("menuitem");		tempMenuItem.setAttribute("label", strRes.getString("CHECK_UPDATE"));		tempMenuItem.setAttribute("oncommand", cmdSrc);		popup.appendChild(document.createElement("menuseparator"));		popup.appendChild(tempMenuItem);	}}
meta: 359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/359/b029ad249567e19c24522852e8f18036fa564810/sage.js/clean/src/sage/content/sage.js