package com.github.aureliano.edocs.app.gui.menu.file;

import javax.swing.JMenu;
import javax.swing.JSeparator;

import com.github.aureliano.edocs.common.locale.EdocsLocale;

public class FileMenu extends JMenu {

	private static final long serialVersionUID = -662548298147505185L;

	private CloseTabMenuItem closeTabMenuItem;
	private CloseAllTabsMenuItem closeAllTabsMenuItem;
	private ExitMenuItem exitMenuItem;
	
	public FileMenu() {
		super.setText(EdocsLocale.instance().getMessage("gui.menubar.file"));
		this.addMenuItems();
	}

	private void addMenuItems() {
		this.closeTabMenuItem = new CloseTabMenuItem();
		this.closeAllTabsMenuItem = new CloseAllTabsMenuItem();
		this.exitMenuItem = new ExitMenuItem();
		
		super.add(this.closeTabMenuItem);
		super.add(this.closeAllTabsMenuItem);
		
		super.add(new JSeparator());
		
		super.add(this.exitMenuItem);
	}
}
@@ -276,16 +276,58 @@
 5185L;%0A%0A
+%09private ConnectMenuItem connectMenuItem;%0A
 %09private
@@ -354,32 +354,32 @@
 oseTabMenuItem;%0A
-
 %09private CloseAl
@@ -603,16 +603,64 @@
 ems() %7B%0A
+%09%09this.connectMenuItem = new ConnectMenuItem();%0A
 %09%09this.c
@@ -755,24 +755,24 @@
 MenuItem();%0A
-
 %09%09this.exitM
@@ -800,24 +800,96 @@
 uItem();%0A%09%09%0A
+%09%09super.add(this.connectMenuItem);%0A%09%09%0A%09%09super.add(new JSeparator());%0A%09%09%0A
 %09%09super.add(

Add connect menu item to file menu.