/// <summary>
        /// Execute the actual functions
        /// </summary>
        /// <param name="Repository">the repository</param>
        /// <param name="Location">menu location</param>
        /// <param name="MenuName">menu name</param>
        /// <param name="ItemName">option clicked</param>
        public override void EA_MenuClick(global::EA.Repository Repository,
                                          String Location,
                                          String MenuName, String ItemName)
        {
            switch (ItemName)
            {
            case menuFQN:
                this.selectFQN();
                break;

            case menuGUID:
                this.selectGUID();
                break;

            case menuAbout:
                new AboutWindow().ShowDialog();
                break;

            case menuSettings:
                new NavigatorSettingsForm(this.settings).ShowDialog();
                //we need to set the toolbar in case that setting was changed
                if (this.navigatorControl != null)
                {
                    this.navigatorControl.toolbarVisible = this.settings.toolbarVisible;
                }
                break;

            case menuOpenInNavigator:
                this.navigate();
                break;

            default:
                UML.UMLItem selectedItem = this.model.selectedItem;
                if (selectedItem != null)
                {
                    List <UML.UMLItem> elementsToNavigate = this.getElementsToNavigate(ItemName, selectedItem);
                    if (elementsToNavigate.Count == 1)
                    {
                        elementsToNavigate[0].open();
                    }
                    else if (elementsToNavigate.Count > 1)
                    {
                        NavigatorList dialog = new NavigatorList(elementsToNavigate, selectedItem);
                        dialog.Show();
                    }
                    else
                    {
                        string message = selectedItem.name + " does not have any " + ItemName.Replace("&", string.Empty);
                        MessageBox.Show(message, "Nothing to navigate", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    }
                }
                break;
            }
        }
	/// <summary>
	/// Execute the actual functions
	/// </summary>
	/// <param name="Repository">the repository</param>
	/// <param name="Location">menu location</param>
	/// <param name="MenuName">menu name</param>
	/// <param name="ItemName">option clicked</param>
    public override void EA_MenuClick( global::EA.Repository Repository, 
                              String Location, 
                              String MenuName, String ItemName )
    {
		
      switch(ItemName) {

	       case menuFQN:
	        	this.selectFQN();
	        	break;
	       case menuGUID:
	        	this.selectGUID();
	        	break;
	       case menuAbout :
	            new AboutWindow().ShowDialog();
	            break;
	       case menuSettings:
	            new NavigatorSettingsForm(this.settings).ShowDialog();
				//we need to set the toolbar in case that setting was changed
				if (this.navigatorControl != null)
				{
					this.navigatorControl.toolbarVisible = this.settings.toolbarVisible;
				}
				break;
			case menuOpenInNavigator:
				this.navigate();
				break;
           default:
	            UML.UMLItem selectedItem = this.model.selectedItem;
	            if (selectedItem != null)
	            {
		            List<UML.UMLItem> elementsToNavigate = this.getElementsToNavigate(ItemName,selectedItem);
		            if (elementsToNavigate.Count == 1)
		            {
		            	elementsToNavigate[0].open();
		            }
		            else if (elementsToNavigate.Count > 1)
		            {
		            	NavigatorList dialog = new NavigatorList(elementsToNavigate,selectedItem);
		        		dialog.Show();
		            }
		            else
		            {
		            	string message = selectedItem.name + " does not have any " + ItemName.Replace("&",string.Empty);
		            	MessageBox.Show(message,"Nothing to navigate",MessageBoxButtons.OK,MessageBoxIcon.Warning);
		            }
	            }
            break;
            
      }
    }