title = "";
}
AdvancedFavorite favorite = new AdvancedFavorite(title);
Window parent = UiUtilities
.getLastModalChildOf(MainFrame.getInstance());
EditFavoriteDialog dlg = new EditFavoriteDialog(parent, favorite);
UiUtilities.centerAndShow(dlg);
if (dlg.getOkWasPressed()) {
FavoriteTreeModel.getInstance().addFavorite(favorite, mParentNode);
FavoritesPlugin.getInstance().updateRootNode(true);
if(ManageFavoritesDialog.getInstance() != null) {
ManageFavoritesDialog.getInstance().addFavorite(favorite, false);