From 9a2b7fab9d523ff7867840d43cc6739de7c5ee4d Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 03 Nov 2008 10:40:33 +0000
Subject: [PATCH] Modify the MainMenuBar and MainActionsPane so that they can be extended. Fix a problem with the ControlPanelLog class: now when it is extended only one log file is created.
---
opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
index 74387a1..b7057f0 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/ui/MainMenuBar.java
@@ -62,6 +62,20 @@
{
super(info);
+ addMenus();
+
+ if (Utilities.isMacOS())
+ {
+ setMacOSQuitHandler();
+ }
+ }
+
+ /**
+ * Method that can be overwritten to set specific menus.
+ *
+ */
+ protected void addMenus()
+ {
JMenu menu;
JMenuItem menuItem;
@@ -86,11 +100,6 @@
add(menu);
}
add(createHelpMenuBar());
-
- if (Utilities.isMacOS())
- {
- setMacOSQuitHandler();
- }
}
/**
--
Gitblit v1.10.0