diff dwtx/jface/action/SubMenuManager.d @ 70:46a6e0e6ccd4

Merge with d-fied sources of 3.4M7
author Frank Benoit <benoit@tionex.de>
date Thu, 22 May 2008 01:36:46 +0200
parents ea8ff534f622
children 04b47443bb01
line wrap: on
line diff
--- a/dwtx/jface/action/SubMenuManager.d	Mon May 19 13:41:06 2008 +0200
+++ b/dwtx/jface/action/SubMenuManager.d	Thu May 22 01:36:46 2008 +0200
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * Copyright (c) 2000, 2007 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -114,7 +114,7 @@
         if (menuListener !is null) {
             getParentMenuManager().removeMenuListener(menuListener);
             menuListener = null;
-            clearListenerList(menuListeners);
+            menuListeners.clear();
         }
         // Dispose wrapped menus in addition to removing them.
         // See bugs 64024 and 73715 for details.
@@ -132,20 +132,6 @@
         super.disposeManager();
     }
 
-    /**
-     * Clears all of the listeners in a listener list. TODO Bug 117519 Remove
-     * this method when fixed.
-     *
-     * @param list
-     *            The list to be clear; must not be <code>null</code>.
-     */
-    private final void clearListenerList(ListenerList list) {
-        Object[] listeners = list.getListeners();
-        for (int i = 0; i < listeners.length; i++) {
-            list.remove(cast(Object)listeners[i]);
-        }
-    }
-
     /* (non-Javadoc)
      * @see dwtx.jface.action.IContributionItem#fill(dwt.widgets.Composite)
      */